Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: ppapi/c/dev/ppb_video_decoder_dev.h

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/api/dev/ppb_video_decoder_dev.idl ('k') | ppapi/cpp/dev/video_decoder_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
/**
* @}
*/
« no previous file with comments | « ppapi/api/dev/ppb_video_decoder_dev.idl ('k') | ppapi/cpp/dev/video_decoder_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698