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

Unified Diff: ppapi/api/dev/ppb_video_decoder_dev.idl

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 | « media/video/video_decode_accelerator.h ('k') | ppapi/c/dev/ppb_video_decoder_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppb_video_decoder_dev.idl
diff --git a/ppapi/api/dev/ppb_video_decoder_dev.idl b/ppapi/api/dev/ppb_video_decoder_dev.idl
index 5b1a94eaa1dbe88dff1f7a8bb8e013e4e1f64b52..bf41c4ffe843984f5913fcbc0a2e76c4a68247a6 100644
--- a/ppapi/api/dev/ppb_video_decoder_dev.idl
+++ b/ppapi/api/dev/ppb_video_decoder_dev.idl
@@ -7,7 +7,7 @@
* This file defines the <code>PPB_VideoDecoder_Dev</code> interface.
*/
label Chrome {
- M14 = 0.16
+ M21 = 0.17
};
/**
@@ -37,13 +37,22 @@ interface PPB_VideoDecoder_Dev {
* |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(
[in] PP_Instance instance,
[in] PP_Resource context,
- [in] PP_VideoDecoder_Profile profile);
+ [in] PP_VideoDecoder_Profile profile,
+ [in] PP_Size frame_size,
+ [in, size_as=extra_data_size] uint8_t[] extra_data,
+ [in] uint32_t extra_data_size);
/**
* Tests whether |resource| is a video decoder created through Create
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | ppapi/c/dev/ppb_video_decoder_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698