| OLD | NEW | 
|---|
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_ | 
| 6 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_ | 6 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_ | 
| 7 | 7 | 
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" | 
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" | 
| 10 #include "ppapi/c/pp_macros.h" | 10 #include "ppapi/c/pp_macros.h" | 
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 216   // The buffer is created through PPB_Buffer API. | 216   // The buffer is created through PPB_Buffer API. | 
| 217   // TODO(wjia): would uint8_t* be good, too? | 217   // TODO(wjia): would uint8_t* be good, too? | 
| 218   PP_Resource buffer; | 218   PP_Resource buffer; | 
| 219 | 219 | 
| 220   // number of bytes with real data in the buffer. | 220   // number of bytes with real data in the buffer. | 
| 221   int32_t filled_size; | 221   int32_t filled_size; | 
| 222 | 222 | 
| 223   // Bit mask of PP_VideoFrameInfoFlag. | 223   // Bit mask of PP_VideoFrameInfoFlag. | 
| 224   uint32_t flags; | 224   uint32_t flags; | 
| 225 | 225 | 
|  | 226   // Padding to ensure the PP_Resource is 8-byte aligned relative to the | 
|  | 227   // start of the struct.  This helps ensure PP_VideoFrameBuffer_Dev has | 
|  | 228   // consistent size and alignment across compilers. | 
|  | 229   int32_t padding; | 
|  | 230 | 
| 226   // Time stamp of the frame in microsecond. | 231   // Time stamp of the frame in microsecond. | 
| 227   uint64_t time_stamp_us; | 232   uint64_t time_stamp_us; | 
| 228 }; | 233 }; | 
| 229 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoCompressedDataBuffer_Dev, 24); | 234 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoCompressedDataBuffer_Dev, 24); | 
| 230 | 235 | 
| 231 struct PP_VideoFrameBuffer_Dev { | 236 struct PP_VideoFrameBuffer_Dev { | 
| 232   union { | 237   union { | 
| 233     struct { | 238     struct { | 
| 234       struct { | 239       struct { | 
| 235         int32_t width; | 240         int32_t width; | 
| 236         int32_t height; | 241         int32_t height; | 
| 237         int32_t stride; | 242         int32_t stride; | 
| 238 | 243 | 
| 239         // Padding to ensure the PP_Resource is 8-byte aligned relative to the |  | 
| 240         // start of the struct.  This helps ensure PP_VideoFrameBuffer_Dev has |  | 
| 241         // consistent size and alignment across compilers. |  | 
| 242         int32_t padding; |  | 
| 243 |  | 
| 244         // TODO(wjia): uint8* would be better for some cases. | 244         // TODO(wjia): uint8* would be better for some cases. | 
| 245         PP_Resource buffer; | 245         PP_Resource buffer; | 
| 246       } data_plane[PP_VIDEOFRAMEBUFFER_MAXNUMBERPLANES]; | 246       } data_plane[PP_VIDEOFRAMEBUFFER_MAXNUMBERPLANES]; | 
| 247 | 247 | 
| 248       int32_t planes; | 248       int32_t planes; | 
| 249 | 249 | 
| 250       // This padding makes sure the sys_mem struct's size is a multiple of 8 | 250       // This padding makes sure the sys_mem struct's size is a multiple of 8 | 
| 251       // bytes, ensuring that handle is always 8-byte aligned relative to the | 251       // bytes, ensuring that handle is always 8-byte aligned relative to the | 
| 252       // start of the PP_VideoFrameBuffer_Dev struct. | 252       // start of the PP_VideoFrameBuffer_Dev struct. | 
| 253       int32_t padding; | 253       int32_t padding; | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 328 struct PP_VideoDecoderConfig_Dev { | 328 struct PP_VideoDecoderConfig_Dev { | 
| 329   PP_VideoConfig_Dev input_format; | 329   PP_VideoConfig_Dev input_format; | 
| 330   PP_VideoConfig_Dev output_format; | 330   PP_VideoConfig_Dev output_format; | 
| 331   PP_VideoDecodeOutputCallback_Func_Dev output_callback; | 331   PP_VideoDecodeOutputCallback_Func_Dev output_callback; | 
| 332   PP_VideoDecodeInputCallback_Func_Dev input_callback; | 332   PP_VideoDecodeInputCallback_Func_Dev input_callback; | 
| 333   PP_VideoDecodeEventHandler_Func_Dev event_handler; | 333   PP_VideoDecodeEventHandler_Func_Dev event_handler; | 
| 334 }; | 334 }; | 
| 335 | 335 | 
| 336 #endif  /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ | 336 #endif  /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ | 
| 337 | 337 | 
| OLD | NEW | 
|---|