| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ | 6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ |
| 7 | 7 |
| 8 #include "media/filters/decoder_base.h" | 8 #include "media/filters/decoder_base.h" |
| 9 | 9 |
| 10 struct AVCodecContext; | 10 struct AVCodecContext; |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 | 13 |
| 14 // Forward declaration for scoped_ptr_malloc. | 14 // Forward declaration for scoped_ptr_malloc. |
| 15 class ScopedPtrAVFree; | 15 class ScopedPtrAVFree; |
| 16 | 16 |
| 17 class FFmpegAudioDecoder : public DecoderBase<AudioDecoder, Buffer> { | 17 class FFmpegAudioDecoder : public DecoderBase<AudioDecoder, Buffer> { |
| 18 public: | 18 public: |
| 19 FFmpegAudioDecoder(); | 19 explicit FFmpegAudioDecoder(MessageLoop* message_loop); |
| 20 virtual ~FFmpegAudioDecoder(); | 20 virtual ~FFmpegAudioDecoder(); |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 virtual void DoInitialize(DemuxerStream* demuxer_stream, bool* success, | 23 virtual void DoInitialize(DemuxerStream* demuxer_stream, bool* success, |
| 24 Task* done_cb); | 24 Task* done_cb); |
| 25 | 25 |
| 26 virtual void DoSeek(base::TimeDelta time, Task* done_cb); | 26 virtual void DoSeek(base::TimeDelta time, Task* done_cb); |
| 27 | 27 |
| 28 virtual void DoDecode(Buffer* input); | 28 virtual void DoDecode(Buffer* input); |
| 29 | 29 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 scoped_ptr_malloc<uint8, ScopedPtrAVFree> output_buffer_; | 44 scoped_ptr_malloc<uint8, ScopedPtrAVFree> output_buffer_; |
| 45 | 45 |
| 46 static const size_t kOutputBufferSize; | 46 static const size_t kOutputBufferSize; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(FFmpegAudioDecoder); | 48 DISALLOW_COPY_AND_ASSIGN(FFmpegAudioDecoder); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace media | 51 } // namespace media |
| 52 | 52 |
| 53 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ | 53 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ |
| OLD | NEW |