| 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 13 matching lines...) Expand all Loading... |
| 24 virtual ~FFmpegVideoDecoder(); | 24 virtual ~FFmpegVideoDecoder(); |
| 25 | 25 |
| 26 // Filter implementation. | 26 // Filter implementation. |
| 27 virtual void Stop(const base::Closure& callback) OVERRIDE; | 27 virtual void Stop(const base::Closure& callback) OVERRIDE; |
| 28 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb) OVERRIDE; | 28 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb) OVERRIDE; |
| 29 virtual void Pause(const base::Closure& callback) OVERRIDE; | 29 virtual void Pause(const base::Closure& callback) OVERRIDE; |
| 30 virtual void Flush(const base::Closure& callback) OVERRIDE; | 30 virtual void Flush(const base::Closure& callback) OVERRIDE; |
| 31 | 31 |
| 32 // VideoDecoder implementation. | 32 // VideoDecoder implementation. |
| 33 virtual void Initialize(DemuxerStream* demuxer_stream, | 33 virtual void Initialize(DemuxerStream* demuxer_stream, |
| 34 const base::Closure& callback, | 34 const PipelineStatusCB& callback, |
| 35 const StatisticsCallback& stats_callback) OVERRIDE; | 35 const StatisticsCallback& stats_callback) OVERRIDE; |
| 36 virtual void Read(const ReadCB& callback) OVERRIDE; | 36 virtual void Read(const ReadCB& callback) OVERRIDE; |
| 37 virtual const gfx::Size& natural_size() OVERRIDE; | 37 virtual const gfx::Size& natural_size() OVERRIDE; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 enum DecoderState { | 40 enum DecoderState { |
| 41 kUninitialized, | 41 kUninitialized, |
| 42 kNormal, | 42 kNormal, |
| 43 kFlushCodec, | 43 kFlushCodec, |
| 44 kDecodeFinished, | 44 kDecodeFinished, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 // Pointer to the demuxer stream that will feed us compressed buffers. | 74 // Pointer to the demuxer stream that will feed us compressed buffers. |
| 75 scoped_refptr<DemuxerStream> demuxer_stream_; | 75 scoped_refptr<DemuxerStream> demuxer_stream_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); | 77 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace media | 80 } // namespace media |
| 81 | 81 |
| 82 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 82 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| OLD | NEW |