| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* From ppb_video_frame.idl modified Wed Jan 22 21:25:01 2014. */ | 6 /* From ppb_video_frame.idl modified Tue Feb 11 14:41:52 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_VIDEO_FRAME_H_ | 8 #ifndef PPAPI_C_PPB_VIDEO_FRAME_H_ |
| 9 #define PPAPI_C_PPB_VIDEO_FRAME_H_ | 9 #define PPAPI_C_PPB_VIDEO_FRAME_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
| 14 #include "ppapi/c/pp_size.h" | 14 #include "ppapi/c/pp_size.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_time.h" | 16 #include "ppapi/c/pp_time.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 29 typedef enum { | 29 typedef enum { |
| 30 /** | 30 /** |
| 31 * Unknown format value. | 31 * Unknown format value. |
| 32 */ | 32 */ |
| 33 PP_VIDEOFRAME_FORMAT_UNKNOWN = 0, | 33 PP_VIDEOFRAME_FORMAT_UNKNOWN = 0, |
| 34 /** | 34 /** |
| 35 * 12bpp YVU planar 1x1 Y, 2x2 VU samples. | 35 * 12bpp YVU planar 1x1 Y, 2x2 VU samples. |
| 36 */ | 36 */ |
| 37 PP_VIDEOFRAME_FORMAT_YV12 = 1, | 37 PP_VIDEOFRAME_FORMAT_YV12 = 1, |
| 38 /** | 38 /** |
| 39 * 16bpp YVU planar 1x1 Y, 2x1 VU samples. | 39 * 12bpp YUV planar 1x1 Y, 2x2 UV samples. |
| 40 */ | 40 */ |
| 41 PP_VIDEOFRAME_FORMAT_YV16 = 2, | 41 PP_VIDEOFRAME_FORMAT_I420 = 2, |
| 42 /** | 42 /** |
| 43 * 12bpp YVU planar 1x1 Y, 2x2 UV samples. | 43 * 32bpp BGRA. |
| 44 */ | 44 */ |
| 45 PP_VIDEOFRAME_FORMAT_I420 = 3, | 45 PP_VIDEOFRAME_FORMAT_BGRA = 3, |
| 46 /** | 46 /** |
| 47 * 20bpp YVU planar 1x1 Y, 2x2 VU, 1x1 A samples. | 47 * The last format. |
| 48 */ | 48 */ |
| 49 PP_VIDEOFRAME_FORMAT_YV12A = 4, | 49 PP_VIDEOFRAME_FORMAT_LAST = PP_VIDEOFRAME_FORMAT_BGRA |
| 50 /** | |
| 51 * JPEG color range version of YV12. | |
| 52 */ | |
| 53 PP_VIDEOFRAME_FORMAT_YV12J = 5 | |
| 54 } PP_VideoFrame_Format; | 50 } PP_VideoFrame_Format; |
| 55 /** | 51 /** |
| 56 * @} | 52 * @} |
| 57 */ | 53 */ |
| 58 | 54 |
| 59 /** | 55 /** |
| 60 * @addtogroup Interfaces | 56 * @addtogroup Interfaces |
| 61 * @{ | 57 * @{ |
| 62 */ | 58 */ |
| 63 struct PPB_VideoFrame_0_1 { /* dev */ | 59 struct PPB_VideoFrame_0_1 { /* dev */ |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 * @return The size of the data buffer. | 126 * @return The size of the data buffer. |
| 131 */ | 127 */ |
| 132 uint32_t (*GetDataBufferSize)(PP_Resource frame); | 128 uint32_t (*GetDataBufferSize)(PP_Resource frame); |
| 133 }; | 129 }; |
| 134 /** | 130 /** |
| 135 * @} | 131 * @} |
| 136 */ | 132 */ |
| 137 | 133 |
| 138 #endif /* PPAPI_C_PPB_VIDEO_FRAME_H_ */ | 134 #endif /* PPAPI_C_PPB_VIDEO_FRAME_H_ */ |
| 139 | 135 |
| OLD | NEW |