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

Unified Diff: media/filters/decoder_stream_traits.h

Issue 2712843002: media: Add DecoderConfigType in DecoderStreamTraits (Closed)
Patch Set: Created 3 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 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 477d36449f0fb3d77e72e72b4cd59a1623e69ef1..e00de2f22e2012c4c02ad65d08aceb9c9d14f79a 100644
--- a/media/filters/decoder_stream_traits.h
+++ b/media/filters/decoder_stream_traits.h
@@ -17,11 +17,13 @@ namespace media {
class AudioBuffer;
class AudioDecoder;
+class AudioDecoderConfig;
class CdmContext;
class DecryptingAudioDecoder;
class DecryptingVideoDecoder;
class DemuxerStream;
class VideoDecoder;
+class VideoDecoderConfig;
class VideoFrame;
template <DemuxerStream::Type StreamType>
@@ -32,6 +34,7 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::AUDIO> {
public:
typedef AudioBuffer OutputType;
typedef AudioDecoder DecoderType;
+ typedef AudioDecoderConfig DecoderConfigType;
typedef DecryptingAudioDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success)> InitCB;
typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
@@ -39,12 +42,14 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::AUDIO> {
static std::string ToString();
static bool NeedsBitstreamConversion(DecoderType* decoder);
static scoped_refptr<OutputType> CreateEOSOutput();
+ static DecoderConfigType GetDecoderConfig(DemuxerStream* stream);
explicit DecoderStreamTraits(const scoped_refptr<MediaLog>& media_log);
void ReportStatistics(const StatisticsCB& statistics_cb, int bytes_decoded);
void InitializeDecoder(DecoderType* decoder,
- DemuxerStream* stream,
+ const DecoderConfigType& config,
+ bool low_delay,
CdmContext* cdm_context,
const InitCB& init_cb,
const OutputCB& output_cb);
@@ -66,6 +71,7 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::VIDEO> {
public:
typedef VideoFrame OutputType;
typedef VideoDecoder DecoderType;
+ typedef VideoDecoderConfig DecoderConfigType;
typedef DecryptingVideoDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success)> InitCB;
typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
@@ -73,12 +79,14 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::VIDEO> {
static std::string ToString();
static bool NeedsBitstreamConversion(DecoderType* decoder);
static scoped_refptr<OutputType> CreateEOSOutput();
+ static DecoderConfigType GetDecoderConfig(DemuxerStream* stream);
explicit DecoderStreamTraits(const scoped_refptr<MediaLog>& media_log);
void ReportStatistics(const StatisticsCB& statistics_cb, int bytes_decoded);
void InitializeDecoder(DecoderType* decoder,
- DemuxerStream* stream,
+ const DecoderConfigType& config,
+ bool low_delay,
CdmContext* cdm_context,
const InitCB& init_cb,
const OutputCB& output_cb);
« 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