OLD | NEW |
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 Loading... |
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 Loading... |
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 | |
OLD | NEW |