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

Unified Diff: ppapi/api/pp_codecs.idl

Issue 842293003: Pepper: Define PPB_VideoEncoder API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add |acceleration| field to PP_SupportedVideoProfile. Created 5 years, 11 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/api/pp_codecs.idl
diff --git a/ppapi/api/pp_codecs.idl b/ppapi/api/pp_codecs.idl
index 5a93ff1063f054a130ee0a797280c491138f1d5a..d3ac262be2b33fcae22eca81214dcced0f5cf79a 100644
--- a/ppapi/api/pp_codecs.idl
+++ b/ppapi/api/pp_codecs.idl
@@ -115,3 +115,56 @@ struct PP_VideoPicture_0_1 {
*/
PP_Size texture_size;
};
+
+/**
+ * Supported video profile information. See the PPB_VideoEncoder function
+ * GetSupportedProfiles() for more details.
+ */
+struct PP_SupportedVideoProfile {
+ /**
+ * The codec profile.
+ */
+ PP_VideoProfile profile;
+
+ /**
+ * Dimensions of the maximum resolution of video frames, in pixels.
+ */
+ PP_Size max_resolution;
+
+ /**
+ * The numerator of the maximum frame rate.
+ */
+ uint32_t max_framerate_numerator;
dmichael (off chromium) 2015/02/03 23:26:07 Why a fraction? Would a float or double suffice?
bbudge 2015/02/04 13:56:40 This is copied from the VEA interface. I think it'
+
+ /**
+ * The denominator of the maximum frame rate.
+ */
+ uint32_t max_framerate_denominator;
+
+ /**
+ * A value indicating if the profile is available in hardware, software, or
+ * both.
+ */
+ PP_HardwareAcceleration acceleration;
+};
+
+/**
+ * Struct describing a bitstream buffer.
+ */
+struct PP_BitstreamBuffer {
+ /**
+ * The size, in bytes, of the bitstream data.
+ */
+ uint32_t size;
+
+ /**
+ * The base address of the bitstream data.
+ */
+ mem_t buffer;
+
+ /**
+ * Whether the buffer represents a key frame.
+ */
+ PP_Bool key_frame;
+};
+

Powered by Google App Engine
This is Rietveld 408576698