From 95ff808aa05c3de690fed32e92a940a6877cd3ed Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Fri, 13 Nov 2009 22:21:01 +0000 Subject: Test program for OpenMAX video decoding Including gyp file for openmax and the test application. The test application will link against libOmxCore.so which is provided by the target system. Review URL: http://codereview.chromium.org/391030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31957 0039d316-1c4b-4281-b951-d872f2087c98 --- media/omx/omx_video_decoder.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'media/omx/omx_video_decoder.h') diff --git a/media/omx/omx_video_decoder.h b/media/omx/omx_video_decoder.h index 3da80b9..baf3c51 100644 --- a/media/omx/omx_video_decoder.h +++ b/media/omx/omx_video_decoder.h @@ -11,7 +11,7 @@ // // Initialization. // MessageLoop message_loop; // OmxVideoDecoder* decoder = new OmxVideoDecoder(&message_loop); -// decoder->Setup(kCodecH264); +// decoder->Setup(component_name, kCodecH264); // decoder->SetErrorCallback(NewCallback(this, &Client::ErrorCallback)); // // // Start is asynchronous. But we don't need to wait for it to proceed. @@ -104,9 +104,9 @@ class OmxVideoDecoder : public base::RefCountedThreadSafe { OmxVideoDecoder(MessageLoop* message_loop); virtual ~OmxVideoDecoder(); - // Set the input codec format. - // TODO(hclam): Add input format and output format. - void Setup(Codec codec); + // Set the component name and input codec format. + // TODO(hclam): Add input format and output format. Also remove |component|. + void Setup(const char* component, Codec codec); // Set the error callback. In case of error the callback will be called. void SetErrorCallback(Callback* callback); @@ -289,6 +289,8 @@ class OmxVideoDecoder : public base::RefCountedThreadSafe { State state_; State next_state_; + // TODO(hclam): We should keep a list of component names. + const char* component_; Codec codec_; MessageLoop* message_loop_; -- cgit v1.1