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

Unified Diff: ppapi/c/ppb_video_decoder.h

Issue 703753002: Pepper: Expose visible_rect to PPB_VideoDecoder.GetPicture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/ppb_video_decoder.h
diff --git a/ppapi/c/ppb_video_decoder.h b/ppapi/c/ppb_video_decoder.h
index 2fd633df22e4e6e6d3fba5ef245dafd2e537ddc3..a5d4657c39b7237a102a961951063a415c570b24 100644
--- a/ppapi/c/ppb_video_decoder.h
+++ b/ppapi/c/ppb_video_decoder.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_video_decoder.idl modified Mon Sep 8 16:40:15 2014. */
+/* From ppb_video_decoder.idl modified Tue Nov 4 13:25:47 2014. */
#ifndef PPAPI_C_PPB_VIDEO_DECODER_H_
#define PPAPI_C_PPB_VIDEO_DECODER_H_
@@ -13,13 +13,16 @@
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_point.h"
+#include "ppapi/c/pp_rect.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_size.h"
#include "ppapi/c/pp_stdint.h"
#define PPB_VIDEODECODER_INTERFACE_0_1 "PPB_VideoDecoder;0.1"
#define PPB_VIDEODECODER_INTERFACE_0_2 "PPB_VideoDecoder;0.2"
-#define PPB_VIDEODECODER_INTERFACE PPB_VIDEODECODER_INTERFACE_0_2
+#define PPB_VIDEODECODER_INTERFACE_0_3 "PPB_VideoDecoder;0.3"
+#define PPB_VIDEODECODER_INTERFACE PPB_VIDEODECODER_INTERFACE_0_3
/**
* @file
@@ -54,7 +57,7 @@
* Chrome and ChromeOS: aac, h264.
* ChromeOS: mpeg4.
*/
-struct PPB_VideoDecoder_0_2 {
+struct PPB_VideoDecoder_0_3 {
/**
* Creates a new video decoder resource.
*
@@ -149,6 +152,9 @@ struct PPB_VideoDecoder_0_2 {
* decoder.
* @param[out] picture A <code>PP_VideoPicture</code> to hold the decoded
* picture.
+ * @param[out] visible_rect A <code>PP_Rect</code> to hold the visible
+ * subrectangle of the picture. The plugin should only display the visible
+ * area of the picture.
* @param[in] callback A <code>PP_CompletionCallback</code> to be called on
* completion.
*
@@ -161,6 +167,7 @@ struct PPB_VideoDecoder_0_2 {
*/
int32_t (*GetPicture)(PP_Resource video_decoder,
struct PP_VideoPicture* picture,
+ struct PP_Rect* visible_rect,
struct PP_CompletionCallback callback);
/**
* Recycles a picture that the plugin has received from the decoder.
@@ -217,7 +224,7 @@ struct PPB_VideoDecoder_0_2 {
struct PP_CompletionCallback callback);
};
-typedef struct PPB_VideoDecoder_0_2 PPB_VideoDecoder;
+typedef struct PPB_VideoDecoder_0_3 PPB_VideoDecoder;
struct PPB_VideoDecoder_0_1 {
PP_Resource (*Create)(PP_Instance instance);
@@ -242,6 +249,30 @@ struct PPB_VideoDecoder_0_1 {
int32_t (*Reset)(PP_Resource video_decoder,
struct PP_CompletionCallback callback);
};
+
+struct PPB_VideoDecoder_0_2 {
+ PP_Resource (*Create)(PP_Instance instance);
+ PP_Bool (*IsVideoDecoder)(PP_Resource resource);
+ int32_t (*Initialize)(PP_Resource video_decoder,
+ PP_Resource graphics3d_context,
+ PP_VideoProfile profile,
+ PP_HardwareAcceleration acceleration,
+ struct PP_CompletionCallback callback);
+ int32_t (*Decode)(PP_Resource video_decoder,
+ uint32_t decode_id,
+ uint32_t size,
+ const void* buffer,
+ struct PP_CompletionCallback callback);
+ int32_t (*GetPicture)(PP_Resource video_decoder,
+ struct PP_VideoPicture* picture,
+ struct PP_CompletionCallback callback);
+ void (*RecyclePicture)(PP_Resource video_decoder,
+ const struct PP_VideoPicture* picture);
+ int32_t (*Flush)(PP_Resource video_decoder,
+ struct PP_CompletionCallback callback);
+ int32_t (*Reset)(PP_Resource video_decoder,
+ struct PP_CompletionCallback callback);
+};
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698