| Index: ppapi/c/dev/ppb_video_decoder_dev.h
|
| diff --git a/ppapi/c/dev/ppb_video_decoder_dev.h b/ppapi/c/dev/ppb_video_decoder_dev.h
|
| index fa57fd42ec0c215b6919c56bf4df3e2c122a6756..f943a1a9e6d79903e4c104ed768698e6218b9214 100644
|
| --- a/ppapi/c/dev/ppb_video_decoder_dev.h
|
| +++ b/ppapi/c/dev/ppb_video_decoder_dev.h
|
| @@ -3,7 +3,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -/* From dev/ppb_video_decoder_dev.idl modified Wed Dec 14 18:08:00 2011. */
|
| +/* From dev/ppb_video_decoder_dev.idl modified Wed May 16 18:52:55 2012. */
|
|
|
| #ifndef PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_
|
| #define PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_
|
| @@ -17,8 +17,8 @@
|
| #include "ppapi/c/pp_size.h"
|
| #include "ppapi/c/pp_stdint.h"
|
|
|
| -#define PPB_VIDEODECODER_DEV_INTERFACE_0_16 "PPB_VideoDecoder(Dev);0.16"
|
| -#define PPB_VIDEODECODER_DEV_INTERFACE PPB_VIDEODECODER_DEV_INTERFACE_0_16
|
| +#define PPB_VIDEODECODER_DEV_INTERFACE_0_17 "PPB_VideoDecoder(Dev);0.17"
|
| +#define PPB_VIDEODECODER_DEV_INTERFACE PPB_VIDEODECODER_DEV_INTERFACE_0_17
|
|
|
| /**
|
| * @file
|
| @@ -49,7 +49,7 @@
|
| * See PPP_VideoDecoder_Dev for the notifications the decoder may send the
|
| * plugin.
|
| */
|
| -struct PPB_VideoDecoder_Dev_0_16 {
|
| +struct PPB_VideoDecoder_Dev_0_17 {
|
| /**
|
| * Creates & initializes a video decoder.
|
| *
|
| @@ -57,12 +57,21 @@ struct PPB_VideoDecoder_Dev_0_16 {
|
| * |instance| pointer to the plugin instance.
|
| * |context| a PPB_Graphics3D resource in which decoding will happen.
|
| * |profile| the video stream's format profile.
|
| + * |frame_size| the width and height of the video frame. This parameter is
|
| + * optional and can be set to 0,0.
|
| + * |extra_data| is the byte data required to initialize video decoders, for
|
| + * example the H.264 AAVC data. This parameter is optional and can be set
|
| + * to an empty array.
|
| + * |extra_data_size| the size of the extra_data array.
|
| *
|
| * The created decoder is returned as PP_Resource. 0 means failure.
|
| */
|
| PP_Resource (*Create)(PP_Instance instance,
|
| PP_Resource context,
|
| - PP_VideoDecoder_Profile profile);
|
| + PP_VideoDecoder_Profile profile,
|
| + const struct PP_Size* frame_size,
|
| + const uint8_t extra_data[],
|
| + uint32_t extra_data_size);
|
| /**
|
| * Tests whether |resource| is a video decoder created through Create
|
| * function of this interface.
|
| @@ -158,7 +167,7 @@ struct PPB_VideoDecoder_Dev_0_16 {
|
| void (*Destroy)(PP_Resource video_decoder);
|
| };
|
|
|
| -typedef struct PPB_VideoDecoder_Dev_0_16 PPB_VideoDecoder_Dev;
|
| +typedef struct PPB_VideoDecoder_Dev_0_17 PPB_VideoDecoder_Dev;
|
| /**
|
| * @}
|
| */
|
|
|