OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /** |
| 7 * This file defines the struct used to hold a video frame. |
| 8 */ |
| 9 |
| 10 /** |
| 11 * The <code>PP_Video_Frame</code> struct represents a video frame. |
| 12 */ |
| 13 [assert_size(16)] |
| 14 struct PP_VideoFrame { |
| 15 /** |
| 16 * A timestamp placing the frame in a video stream. |
| 17 */ |
| 18 PP_TimeTicks timestamp; |
| 19 |
| 20 /** |
| 21 * An image data resource to hold the video frame. |
| 22 */ |
| 23 PP_Resource image_data; |
| 24 |
| 25 /** |
| 26 * Ensure that this struct is 16-bytes wide by padding the end. In some |
| 27 * compilers, PP_TimeTicks is 8-byte aligned, so those compilers align this |
| 28 * struct on 8-byte boundaries as well and pad it to 8 bytes even without this |
| 29 * padding attribute. This padding makes its size consistent across |
| 30 * compilers. |
| 31 */ |
| 32 int32_t padding; |
| 33 }; |
| 34 |
OLD | NEW |