OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OPUS_AUDIO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ |
6 #define MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ | 6 #define MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "media/base/audio_decoder.h" | 10 #include "media/base/audio_decoder.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder { | 27 class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder { |
28 public: | 28 public: |
29 explicit OpusAudioDecoder( | 29 explicit OpusAudioDecoder( |
30 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); | 30 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); |
31 ~OpusAudioDecoder() override; | 31 ~OpusAudioDecoder() override; |
32 | 32 |
33 // AudioDecoder implementation. | 33 // AudioDecoder implementation. |
34 std::string GetDisplayName() const override; | 34 std::string GetDisplayName() const override; |
35 void Initialize(const AudioDecoderConfig& config, | 35 void Initialize(const AudioDecoderConfig& config, |
36 const PipelineStatusCB& status_cb, | 36 const PipelineStatusCB& status_cb, |
37 const OutputCB& output_cb) override; | 37 const OutputCB& output_cb, |
| 38 const base::Closure& waiting_for_encryption_key_cb) override; |
38 void Decode(const scoped_refptr<DecoderBuffer>& buffer, | 39 void Decode(const scoped_refptr<DecoderBuffer>& buffer, |
39 const DecodeCB& decode_cb) override; | 40 const DecodeCB& decode_cb) override; |
40 void Reset(const base::Closure& closure) override; | 41 void Reset(const base::Closure& closure) override; |
41 | 42 |
42 private: | 43 private: |
43 // Reads from the demuxer stream with corresponding callback method. | 44 // Reads from the demuxer stream with corresponding callback method. |
44 void ReadFromDemuxerStream(); | 45 void ReadFromDemuxerStream(); |
45 void DecodeBuffer(const scoped_refptr<DecoderBuffer>& input, | 46 void DecodeBuffer(const scoped_refptr<DecoderBuffer>& input, |
46 const DecodeCB& decode_cb); | 47 const DecodeCB& decode_cb); |
47 | 48 |
(...skipping 14 matching lines...) Expand all Loading... |
62 base::TimeDelta start_input_timestamp_; | 63 base::TimeDelta start_input_timestamp_; |
63 | 64 |
64 scoped_ptr<AudioDiscardHelper> discard_helper_; | 65 scoped_ptr<AudioDiscardHelper> discard_helper_; |
65 | 66 |
66 DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder); | 67 DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace media | 70 } // namespace media |
70 | 71 |
71 #endif // MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ | 72 #endif // MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ |
OLD | NEW |