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

Unified Diff: media/filters/omx_video_decoder.h

Issue 5612004: Web media player pipeline: implemented feature to choose proper... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years 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
« no previous file with comments | « media/filters/ffmpeg_video_decoder.cc ('k') | media/filters/omx_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/omx_video_decoder.h
===================================================================
--- media/filters/omx_video_decoder.h (revision 68165)
+++ media/filters/omx_video_decoder.h (working copy)
@@ -11,6 +11,7 @@
#include "media/base/media_format.h"
#include "media/video/video_decode_context.h"
#include "media/video/video_decode_engine.h"
+#include "media/ffmpeg/ffmpeg_common.h"
class MessageLoop;
@@ -35,6 +36,21 @@
virtual bool ProvidesBuffer();
virtual const MediaFormat& media_format() { return media_format_; }
+ virtual const char* filter_name() { return "OmxVideoDecoder"; }
+ virtual bool supports_codec_id(int codec_id) {
+ switch (codec_id) {
+ case CODEC_ID_VC1:
+ case CODEC_ID_H264:
+ case CODEC_ID_THEORA:
+ case CODEC_ID_MPEG2VIDEO:
+ case CODEC_ID_MPEG4:
+ return true;
+ default:
+ return false;
+ }
+ return false;
+ }
+
private:
// VideoDecodeEngine::EventHandler interface.
virtual void OnInitializeComplete(const VideoCodecInfo& info);
« no previous file with comments | « media/filters/ffmpeg_video_decoder.cc ('k') | media/filters/omx_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698