OLD | NEW |
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_FFMPEG_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Filter implementation. | 31 // Filter implementation. |
32 virtual void Stop(FilterCallback* callback); | 32 virtual void Stop(FilterCallback* callback); |
33 virtual void Seek(base::TimeDelta time, FilterCallback* callback); | 33 virtual void Seek(base::TimeDelta time, FilterCallback* callback); |
34 virtual void Pause(FilterCallback* callback); | 34 virtual void Pause(FilterCallback* callback); |
35 virtual void Flush(FilterCallback* callback); | 35 virtual void Flush(FilterCallback* callback); |
36 | 36 |
37 // Decoder implementation. | 37 // Decoder implementation. |
38 virtual void Initialize(DemuxerStream* demuxer_stream, | 38 virtual void Initialize(DemuxerStream* demuxer_stream, |
39 FilterCallback* callback); | 39 FilterCallback* callback); |
40 virtual const MediaFormat& media_format() { return media_format_; } | 40 virtual const MediaFormat& media_format(); |
41 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> video_frame); | 41 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> video_frame); |
42 virtual bool ProvidesBuffer(); | 42 virtual bool ProvidesBuffer(); |
43 | 43 |
44 private: | 44 private: |
45 // VideoDecodeEngine::EventHandler interface. | 45 // VideoDecodeEngine::EventHandler interface. |
46 virtual void OnInitializeComplete(const VideoCodecInfo& info); | 46 virtual void OnInitializeComplete(const VideoCodecInfo& info); |
47 virtual void OnUninitializeComplete(); | 47 virtual void OnUninitializeComplete(); |
48 virtual void OnFlushComplete(); | 48 virtual void OnFlushComplete(); |
49 virtual void OnSeekComplete(); | 49 virtual void OnSeekComplete(); |
50 virtual void OnError(); | 50 virtual void OnError(); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 // Pointer to the demuxer stream that will feed us compressed buffers. | 132 // Pointer to the demuxer stream that will feed us compressed buffers. |
133 scoped_refptr<DemuxerStream> demuxer_stream_; | 133 scoped_refptr<DemuxerStream> demuxer_stream_; |
134 | 134 |
135 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); | 135 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); |
136 }; | 136 }; |
137 | 137 |
138 } // namespace media | 138 } // namespace media |
139 | 139 |
140 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 140 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
OLD | NEW |