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

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

Issue 6969026: Convert Filter::Seek() to use new callback system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More CR fixes Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/omx_video_decoder.cc ('k') | media/filters/rtc_video_decoder.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RTC_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_RTC_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_RTC_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_RTC_VIDEO_DECODER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 namespace media { 29 namespace media {
30 30
31 class RTCVideoDecoder : public VideoDecoder, 31 class RTCVideoDecoder : public VideoDecoder,
32 public ExternalRenderer { 32 public ExternalRenderer {
33 public: 33 public:
34 RTCVideoDecoder(MessageLoop* message_loop, const std::string& url); 34 RTCVideoDecoder(MessageLoop* message_loop, const std::string& url);
35 virtual ~RTCVideoDecoder(); 35 virtual ~RTCVideoDecoder();
36 36
37 // Filter implementation. 37 // Filter implementation.
38 virtual void Play(FilterCallback* callback); 38 virtual void Play(FilterCallback* callback);
39 virtual void Seek(base::TimeDelta time, FilterCallback* callback); 39 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb);
40 virtual void Pause(FilterCallback* callback); 40 virtual void Pause(FilterCallback* callback);
41 virtual void Stop(FilterCallback* callback); 41 virtual void Stop(FilterCallback* callback);
42 42
43 // Decoder implementation. 43 // Decoder implementation.
44 virtual void Initialize(DemuxerStream* demuxer_stream, 44 virtual void Initialize(DemuxerStream* demuxer_stream,
45 FilterCallback* filter_callback, 45 FilterCallback* filter_callback,
46 StatisticsCallback* stat_callback); 46 StatisticsCallback* stat_callback);
47 virtual const MediaFormat& media_format(); 47 virtual const MediaFormat& media_format();
48 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> video_frame); 48 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> video_frame);
49 virtual bool ProvidesBuffer(); 49 virtual bool ProvidesBuffer();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 std::deque<scoped_refptr<VideoFrame> > frame_queue_available_; 84 std::deque<scoped_refptr<VideoFrame> > frame_queue_available_;
85 // Used for accessing frame queue from another thread. 85 // Used for accessing frame queue from another thread.
86 base::Lock lock_; 86 base::Lock lock_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); 88 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder);
89 }; 89 };
90 90
91 } // namespace media 91 } // namespace media
92 92
93 #endif // MEDIA_FILTERS_RTC_VIDEO_DECODER_H_ 93 #endif // MEDIA_FILTERS_RTC_VIDEO_DECODER_H_
94
OLDNEW
« no previous file with comments | « media/filters/omx_video_decoder.cc ('k') | media/filters/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698