| 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 10 matching lines...) Expand all Loading... |
| 21 namespace media { | 21 namespace media { |
| 22 | 22 |
| 23 class VideoDecodeEngine; | 23 class VideoDecodeEngine; |
| 24 | 24 |
| 25 class FFmpegVideoDecoder : public VideoDecoder, | 25 class FFmpegVideoDecoder : public VideoDecoder, |
| 26 public VideoDecodeEngine::EventHandler { | 26 public VideoDecodeEngine::EventHandler { |
| 27 public: | 27 public: |
| 28 explicit FFmpegVideoDecoder(VideoDecodeContext* decode_context); | 28 explicit FFmpegVideoDecoder(VideoDecodeContext* decode_context); |
| 29 virtual ~FFmpegVideoDecoder(); | 29 virtual ~FFmpegVideoDecoder(); |
| 30 | 30 |
| 31 // MediaFilter 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() { return media_format_; } |
| 41 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> video_frame); | 41 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> video_frame); |
| (...skipping 89 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 |