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

Side by Side Diff: media/filters/omx_video_decoder.h

Issue 5527003: Rename MediaFilter and MediaFilterCollection to Filter and FilterCollection, respectively. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Missed a few more 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/file_data_source.h ('k') | media/filters/video_renderer_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_OMX_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_OMX_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_OMX_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_OMX_VIDEO_DECODER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "media/base/filters.h" 10 #include "media/base/filters.h"
11 #include "media/base/media_format.h" 11 #include "media/base/media_format.h"
12 #include "media/video/video_decode_context.h" 12 #include "media/video/video_decode_context.h"
13 #include "media/video/video_decode_engine.h" 13 #include "media/video/video_decode_engine.h"
14 14
15 class MessageLoop; 15 class MessageLoop;
16 16
17 namespace media { 17 namespace media {
18 18
19 class Buffer; 19 class Buffer;
20 class OmxVideoDecodeEngine; 20 class OmxVideoDecodeEngine;
21 class VideoFrame; 21 class VideoFrame;
22 22
23 class OmxVideoDecoder : public VideoDecoder, 23 class OmxVideoDecoder : public VideoDecoder,
24 public VideoDecodeEngine::EventHandler { 24 public VideoDecodeEngine::EventHandler {
25 public: 25 public:
26 explicit OmxVideoDecoder(VideoDecodeContext* decode_context); 26 explicit OmxVideoDecoder(VideoDecodeContext* decode_context);
27 virtual ~OmxVideoDecoder(); 27 virtual ~OmxVideoDecoder();
28 28
29 // MediaFilter implementations. 29 // Filter implementations.
30 virtual void Initialize(DemuxerStream* stream, FilterCallback* callback); 30 virtual void Initialize(DemuxerStream* stream, FilterCallback* callback);
31 virtual void Stop(FilterCallback* callback); 31 virtual void Stop(FilterCallback* callback);
32 virtual void Flush(FilterCallback* callback); 32 virtual void Flush(FilterCallback* callback);
33 virtual void Seek(base::TimeDelta time, FilterCallback* callback); 33 virtual void Seek(base::TimeDelta time, FilterCallback* callback);
34 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame); 34 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame);
35 virtual bool ProvidesBuffer(); 35 virtual bool ProvidesBuffer();
36 virtual const MediaFormat& media_format() { return media_format_; } 36 virtual const MediaFormat& media_format() { return media_format_; }
37 37
38 private: 38 private:
39 // VideoDecodeEngine::EventHandler interface. 39 // VideoDecodeEngine::EventHandler interface.
(...skipping 24 matching lines...) Expand all
64 scoped_ptr<FilterCallback> seek_callback_; 64 scoped_ptr<FilterCallback> seek_callback_;
65 65
66 VideoCodecInfo info_; 66 VideoCodecInfo info_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(OmxVideoDecoder); 68 DISALLOW_COPY_AND_ASSIGN(OmxVideoDecoder);
69 }; 69 };
70 70
71 } // namespace media 71 } // namespace media
72 72
73 #endif // MEDIA_FILTERS_OMX_VIDEO_DECODER_H_ 73 #endif // MEDIA_FILTERS_OMX_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/filters/file_data_source.h ('k') | media/filters/video_renderer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698