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

Unified Diff: media/filters/android/media_codec_audio_decoder.h

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Improve CastMediaClient::IsSupportedPassthroughAudio() Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/android/media_codec_audio_decoder.h
diff --git a/media/filters/android/media_codec_audio_decoder.h b/media/filters/android/media_codec_audio_decoder.h
index 9e08d73807493c4e51e000d25ad47fa48e245b22..16c7bf09e8ee44e383a5eec8bdf1d2cef1ca0a44 100644
--- a/media/filters/android/media_codec_audio_decoder.h
+++ b/media/filters/android/media_codec_audio_decoder.h
@@ -165,9 +165,18 @@ class MEDIA_EXPORT MediaCodecAudioDecoder : public AudioDecoder,
using InputQueue = std::deque<BufferCBPair>;
InputQueue input_queue_;
+ // The queue for PTS and duration pair, which helps to bring duration
+ // information to decoded frames.
+ using PtsDurationPair = std::pair<base::TimeDelta, base::TimeDelta>;
+ using DurationQueue = std::deque<PtsDurationPair>;
+ DurationQueue duration_queue_;
+
// Cached decoder config.
AudioDecoderConfig config_;
+ // Indication to use passthrough decoder or not.
+ bool is_passthrough_;
+
// Actual channel count that comes from decoder may be different than config.
int channel_count_;
ChannelLayout channel_layout_;

Powered by Google App Engine
This is Rietveld 408576698