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

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

Issue 9724030: Description: Video decode in hardware on ARM platform. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 9 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
===================================================================
--- content/common/gpu/media/omx_video_decode_accelerator.h (revision 127422)
+++ content/common/gpu/media/omx_video_decode_accelerator.h (working copy)
@@ -25,6 +25,8 @@
#include "third_party/openmax/il/OMX_Core.h"
#include "third_party/openmax/il/OMX_Video.h"
+class Gles2TextureToEglImageTranslator;
+
// Class to wrap OpenMAX IL accelerator behind VideoDecodeAccelerator interface.
// The implementation assumes an OpenMAX IL 1.1.2 implementation conforming to
// http://www.khronos.org/registry/omxil/specs/OpenMAX_IL_1_1_2_Specification.pdf
@@ -87,6 +89,7 @@
bool CreateComponent();
// Buffer allocation/free methods for input and output buffers.
bool AllocateInputBuffers();
+ bool AllocateFakeOutputBuffers();
bool AllocateOutputBuffers();
void FreeInputBuffers();
void FreeOutputBuffers();
@@ -148,6 +151,8 @@
OMX_U32 output_port_;
int output_buffers_at_component_;
+ gfx::Size last_requested_picture_buffer_dimensions_;
+
// NOTE: someday there may be multiple contexts for a single decoder. But not
// today.
// TODO(fischman,vrk): handle lost contexts?
@@ -179,7 +184,9 @@
// NOTE: all calls to this object *MUST* be executed in message_loop_.
Client* client_;
- // These two members are only used during Initialization.
+ scoped_ptr<Gles2TextureToEglImageTranslator> texture_to_egl_image_translator_;
+
+ // These members are only used during Initialization.
// OMX_AVCProfile requested during Initialization.
uint32 profile_;
bool component_name_is_nvidia_h264ext_;

Powered by Google App Engine
This is Rietveld 408576698