Chromium Code Reviews| Index: media/filters/opus_audio_decoder.h |
| diff --git a/media/filters/opus_audio_decoder.h b/media/filters/opus_audio_decoder.h |
| index 2faacedd83b34856a815b3525e94d319e12d0319..16ec982002ef96d7d5895d52290feee77995c831 100644 |
| --- a/media/filters/opus_audio_decoder.h |
| +++ b/media/filters/opus_audio_decoder.h |
| @@ -32,10 +32,10 @@ class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder { |
| virtual ~OpusAudioDecoder(); |
| // AudioDecoder implementation. |
| - virtual void Initialize(DemuxerStream* stream, |
| - const PipelineStatusCB& status_cb, |
| - const StatisticsCB& statistics_cb) OVERRIDE; |
| - virtual void Read(const ReadCB& read_cb) OVERRIDE; |
| + virtual void Initialize(const AudioDecoderConfig& config, |
| + const PipelineStatusCB& status_cb) OVERRIDE; |
| + virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, |
| + const DecodeCB& decode_cb) OVERRIDE; |
| virtual int bits_per_channel() OVERRIDE; |
| virtual ChannelLayout channel_layout() OVERRIDE; |
| virtual int samples_per_second() OVERRIDE; |
| @@ -48,8 +48,8 @@ class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder { |
| // Reads from the demuxer stream with corresponding callback method. |
| void ReadFromDemuxerStream(); |
| - void BufferReady(DemuxerStream::Status status, |
| - const scoped_refptr<DecoderBuffer>& input); |
| + void DecodeBuffer(const scoped_refptr<DecoderBuffer>& input, |
| + const DecodeCB& decode_cb); |
| bool ConfigureDecoder(); |
| void CloseDecoder(); |
| @@ -61,8 +61,7 @@ class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder { |
| base::WeakPtrFactory<OpusAudioDecoder> weak_factory_; |
| base::WeakPtr<OpusAudioDecoder> weak_this_; |
| - DemuxerStream* demuxer_stream_; |
| - StatisticsCB statistics_cb_; |
| + AudioDecoderConfig config_; |
| OpusMSDecoder* opus_decoder_; |
| // Decoded audio format. |
| @@ -75,10 +74,6 @@ class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder { |
| scoped_ptr<AudioTimestampHelper> output_timestamp_helper_; |
| base::TimeDelta last_input_timestamp_; |
| - ReadCB read_cb_; |
|
rileya (GONE FROM CHROMIUM)
2014/03/04 00:14:27
As with FFmpeg the removal of DemuxerStream readin
|
| - base::Closure reset_cb_; |
| - base::Closure stop_cb_; |
| - |
| // Number of frames to be discarded from the start of the packet. This value |
| // is respected for all packets except for the first one in the stream. For |
| // the first packet in the stream, |frame_delay_at_start_| is used. This is |