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

Unified Diff: content/common/gpu/media/omx_video_decode_accelerator.h

Issue 10808058: Add support for VP8 decode to OmxVideoDecodeAccelerator, for HW that supports it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: content/common/gpu/media/omx_video_decode_accelerator.h
diff --git a/content/common/gpu/media/omx_video_decode_accelerator.h b/content/common/gpu/media/omx_video_decode_accelerator.h
index 1c186a2921ef803cd1d1d1fa2c8d324419a69221..9bfb8862aa3f9a6a2f8f1c558ebf69ea0ed92fd6 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.h
+++ b/content/common/gpu/media/omx_video_decode_accelerator.h
@@ -70,6 +70,14 @@ class CONTENT_EXPORT OmxVideoDecodeAccelerator :
ERRORING, // Trumps all other transitions; no recovery is possible.
};
+ // Add codecs as we get HW that supports them (and which are supported by SW
+ // decode!).
+ enum Codec {
+ UNKNOWN,
+ H264,
+ VP8
+ };
+
// Helper struct for keeping track of the relationship between an OMX output
// buffer and the PictureBuffer it points to.
struct OutputPicture {
@@ -196,8 +204,8 @@ class CONTENT_EXPORT OmxVideoDecodeAccelerator :
scoped_ptr<Gles2TextureToEglImageTranslator> texture_to_egl_image_translator_;
// These members are only used during Initialization.
- // OMX_AVCProfile requested during Initialization.
- uint32 profile_;
+ Codec codec_;
+ uint32 h264_profile_; // OMX_AVCProfile requested during Initialization.
bool component_name_is_nvidia_h264ext_;
// Method to handle events

Powered by Google App Engine
This is Rietveld 408576698