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 /* From pp_video_frame.idl modified Tue Apr 2 10:07:49 2013. */ | |
7 | |
8 #ifndef PPAPI_C_PP_VIDEO_FRAME_H_ | |
9 #define PPAPI_C_PP_VIDEO_FRAME_H_ | |
10 | |
11 #include "ppapi/c/pp_macros.h" | |
12 #include "ppapi/c/pp_resource.h" | |
13 #include "ppapi/c/pp_stdint.h" | |
14 #include "ppapi/c/pp_time.h" | |
15 | |
16 /** | |
17 * @file | |
18 * This file defines the struct used to hold a video frame. | |
19 */ | |
20 | |
21 | |
22 /** | |
23 * @addtogroup Structs | |
24 * @{ | |
25 */ | |
26 /** | |
27 * The <code>PP_Video_Frame</code> struct represents a video frame. | |
28 */ | |
29 struct PP_VideoFrame { | |
30 /** | |
31 * A timestamp placing the frame in a video stream. | |
32 */ | |
33 PP_TimeTicks timestamp; | |
34 /** | |
35 * An image data resource to hold the video frame. | |
36 */ | |
37 PP_Resource image_data; | |
38 /** | |
39 * Ensure that this struct is 16-bytes wide by padding the end. In some | |
40 * compilers, PP_TimeTicks is 8-byte aligned, so those compilers align this | |
41 * struct on 8-byte boundaries as well and pad it to 8 bytes even without this | |
42 * padding attribute. This padding makes its size consistent across | |
43 * compilers. | |
44 */ | |
45 int32_t padding; | |
46 }; | |
47 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrame, 16); | |
48 /** | |
49 * @} | |
50 */ | |
51 | |
52 #endif /* PPAPI_C_PP_VIDEO_FRAME_H_ */ | |
53 | |
OLD | NEW |