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

Unified Diff: media/filters/decoder_stream_traits.h

Issue 141243003: Add AudioBufferStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decoderstream_rebased
Patch Set: Rebase! Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/decoder_stream.cc ('k') | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream_traits.h
diff --git a/media/filters/decoder_stream_traits.h b/media/filters/decoder_stream_traits.h
index cb39ee6ef74f5927f0fad50dfde6dfcf6d948a44..8bcfa45cc301189fd683d339d3df06076e969775 100644
--- a/media/filters/decoder_stream_traits.h
+++ b/media/filters/decoder_stream_traits.h
@@ -25,14 +25,23 @@ template <>
struct DecoderStreamTraits<DemuxerStream::AUDIO> {
typedef AudioBuffer OutputType;
typedef AudioDecoder DecoderType;
+ typedef AudioDecoderConfig DecoderConfigType;
typedef DecryptingAudioDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success)> StreamInitCB;
+
+ static bool FinishInitialization(const StreamInitCB& init_cb,
+ DecoderType* decoder,
+ DemuxerStream* stream);
+ static void ReportStatistics(const StatisticsCB& statistics_cb,
+ int bytes_decoded);
+ static DecoderConfigType GetDecoderConfig(DemuxerStream& stream);
};
template <>
struct DecoderStreamTraits<DemuxerStream::VIDEO> {
typedef VideoFrame OutputType;
typedef VideoDecoder DecoderType;
+ typedef VideoDecoderConfig DecoderConfigType;
typedef DecryptingVideoDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success, bool has_alpha)> StreamInitCB;
@@ -41,6 +50,7 @@ struct DecoderStreamTraits<DemuxerStream::VIDEO> {
DemuxerStream* stream);
static void ReportStatistics(const StatisticsCB& statistics_cb,
int bytes_decoded);
+ static DecoderConfigType GetDecoderConfig(DemuxerStream& stream);
};
} // namespace media
« no previous file with comments | « media/filters/decoder_stream.cc ('k') | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698