Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: media/filters/android/media_codec_audio_decoder.h

Issue 1708963002: Ensure ADTS for AAC for MediaCodecAudioDecoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_
6 #define MEDIA_FILTERS_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_ 6 #define MEDIA_FILTERS_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // AudioDecoder implementation. 106 // AudioDecoder implementation.
107 std::string GetDisplayName() const override; 107 std::string GetDisplayName() const override;
108 void Initialize(const AudioDecoderConfig& config, 108 void Initialize(const AudioDecoderConfig& config,
109 CdmContext* cdm_context, 109 CdmContext* cdm_context,
110 const InitCB& init_cb, 110 const InitCB& init_cb,
111 const OutputCB& output_cb) override; 111 const OutputCB& output_cb) override;
112 void Decode(const scoped_refptr<DecoderBuffer>& buffer, 112 void Decode(const scoped_refptr<DecoderBuffer>& buffer,
113 const DecodeCB& decode_cb) override; 113 const DecodeCB& decode_cb) override;
114 void Reset(const base::Closure& closure) override; 114 void Reset(const base::Closure& closure) override;
115 bool NeedsBitstreamConversion() const override;
115 116
116 private: 117 private:
117 // Possible states. 118 // Possible states.
118 enum State { 119 enum State {
119 STATE_UNINITIALIZED, 120 STATE_UNINITIALIZED,
120 STATE_READY, 121 STATE_READY,
121 STATE_WAITING_FOR_KEY, 122 STATE_WAITING_FOR_KEY,
122 STATE_DRAINING, 123 STATE_DRAINING,
123 STATE_DRAINED, 124 STATE_DRAINED,
124 STATE_ERROR, 125 STATE_ERROR,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Such buffer appears in MEDIA_CODEC_NO_KEY processing. The -1 value means 232 // Such buffer appears in MEDIA_CODEC_NO_KEY processing. The -1 value means
232 // there is no such buffer. 233 // there is no such buffer.
233 int pending_input_buf_index_; 234 int pending_input_buf_index_;
234 235
235 DISALLOW_COPY_AND_ASSIGN(MediaCodecAudioDecoder); 236 DISALLOW_COPY_AND_ASSIGN(MediaCodecAudioDecoder);
236 }; 237 };
237 238
238 } // namespace media 239 } // namespace media
239 240
240 #endif // MEDIA_FILTERS_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_ 241 #endif // MEDIA_FILTERS_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698