| 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_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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual ~FFmpegVideoDecoder(); | 25 virtual ~FFmpegVideoDecoder(); |
| 26 | 26 |
| 27 // Filter implementation. | 27 // Filter implementation. |
| 28 virtual void Stop(const base::Closure& callback) OVERRIDE; | 28 virtual void Stop(const base::Closure& callback) OVERRIDE; |
| 29 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb) OVERRIDE; | 29 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb) OVERRIDE; |
| 30 virtual void Pause(const base::Closure& callback) OVERRIDE; | 30 virtual void Pause(const base::Closure& callback) OVERRIDE; |
| 31 virtual void Flush(const base::Closure& callback) OVERRIDE; | 31 virtual void Flush(const base::Closure& callback) OVERRIDE; |
| 32 | 32 |
| 33 // VideoDecoder implementation. | 33 // VideoDecoder implementation. |
| 34 virtual void Initialize(DemuxerStream* demuxer_stream, | 34 virtual void Initialize(DemuxerStream* demuxer_stream, |
| 35 const base::Closure& callback, | 35 const PipelineStatusCB& callback, |
| 36 const StatisticsCallback& stats_callback) OVERRIDE; | 36 const StatisticsCallback& stats_callback) OVERRIDE; |
| 37 virtual void Read(const ReadCB& callback) OVERRIDE; | 37 virtual void Read(const ReadCB& callback) OVERRIDE; |
| 38 virtual const gfx::Size& natural_size() OVERRIDE; | 38 virtual const gfx::Size& natural_size() OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 enum DecoderState { | 41 enum DecoderState { |
| 42 kUninitialized, | 42 kUninitialized, |
| 43 kNormal, | 43 kNormal, |
| 44 kFlushCodec, | 44 kFlushCodec, |
| 45 kDecodeFinished, | 45 kDecodeFinished, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Pointer to the demuxer stream that will feed us compressed buffers. | 92 // Pointer to the demuxer stream that will feed us compressed buffers. |
| 93 scoped_refptr<DemuxerStream> demuxer_stream_; | 93 scoped_refptr<DemuxerStream> demuxer_stream_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); | 95 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace media | 98 } // namespace media |
| 99 | 99 |
| 100 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 100 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| OLD | NEW |