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

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

Issue 6901036: Update VideoDecode PPAPI structs to be consistent with media structures, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing a few parameter types Created 9 years, 8 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
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 1aed02db44c1aee4b424e917e0ee0ff3ddc44df0..ecb72d5be5be1893c1d7995780b5837a7c7e84fd 100644
--- a/ppapi/c/dev/ppb_video_decoder_dev.h
+++ b/ppapi/c/dev/ppb_video_decoder_dev.h
@@ -9,8 +9,8 @@
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_var.h"
-#define PPB_VIDEODECODER_DEV_INTERFACE_0_5 "PPB_VideoDecoder(Dev);0.5"
-#define PPB_VIDEODECODER_DEV_INTERFACE PPB_VIDEODECODER_DEV_INTERFACE_0_5
+#define PPB_VIDEODECODER_DEV_INTERFACE_0_6 "PPB_VideoDecoder(Dev);0.6"
+#define PPB_VIDEODECODER_DEV_INTERFACE PPB_VIDEODECODER_DEV_INTERFACE_0_6
Ami GONE FROM CHROMIUM 2011/04/29 18:40:34 ??
vrk (LEFT CHROMIUM) 2011/05/03 18:19:58 Talked offline.
// Video decoder interface.
//
@@ -70,10 +70,10 @@ struct PPB_VideoDecoder_Dev {
//
// Returns PP_TRUE on success, PP_FALSE otherwise.
PP_Bool (*GetConfigs)(PP_Instance instance,
- struct PP_VideoDecoderConfig_Dev* proto_config,
- struct PP_VideoDecoderConfig_Dev* matching_configs,
- int32_t matching_configs_size,
- int32_t* num_of_matching_configs);
+ PP_VideoConfigElement* proto_config,
+ PP_VideoConfigElement* matching_configs,
+ uint32_t matching_configs_size,
+ uint32_t* num_of_matching_configs);
// Creates a video decoder with requested |decoder_config|.
// |input_format| in |decoder_config| specifies the format of input access
@@ -88,7 +88,7 @@ struct PPB_VideoDecoder_Dev {
//
// The created decoder is returned as PP_Resource. NULL means failure.
PP_Resource (*Create)(PP_Instance instance,
- struct PP_VideoDecoderConfig_Dev* dec_config);
+ PP_VideoConfigElement* dec_config);
// Tests whether |resource| is a video decoder created through Create
// function of this interface.
@@ -144,7 +144,7 @@ struct PPB_VideoDecoder_Dev {
// processed.
void (*AssignPictureBuffer)(PP_Resource video_decoder,
uint32_t no_of_buffers,
- union PP_PictureData_Dev* picture_buffer);
+ struct PP_PictureBuffer_Dev* picture_buffers);
// Tells the decoder to reuse given picture buffer. Typical use of this
// function is to call from PictureReady callback to recycle picture buffer
@@ -164,7 +164,7 @@ struct PPB_VideoDecoder_Dev {
// |picture_buffer| contains the reference to the picture buffer that was
// processed.
void (*ReusePictureBuffer)(PP_Resource video_decoder,
- union PP_PictureData_Dev* picture_buffer);
+ int32_t picture_buffer_id);
// Dispatches flushing request to the decoder to flush both input and output
// buffers. Successful flushing will result in output of the pictures and

Powered by Google App Engine
This is Rietveld 408576698