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

Unified Diff: media/filters/decoder_stream_traits.h

Issue 297553002: Add callback in VideoDecoder and AudioDecoder to return decoded frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 918f4ac1a28cac889cb3c9d69b05af58267ef956..c0a97777e46be0c304328096643f7c06ab059d62 100644
--- a/media/filters/decoder_stream_traits.h
+++ b/media/filters/decoder_stream_traits.h
@@ -28,12 +28,14 @@ struct DecoderStreamTraits<DemuxerStream::AUDIO> {
typedef AudioDecoderConfig DecoderConfigType;
typedef DecryptingAudioDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success)> StreamInitCB;
+ typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
static std::string ToString();
static void Initialize(DecoderType* decoder,
const DecoderConfigType& config,
bool low_delay,
- const PipelineStatusCB& status_cb);
+ const PipelineStatusCB& status_cb,
+ const OutputCB& output_cb);
static bool FinishInitialization(const StreamInitCB& init_cb,
DecoderType* decoder,
DemuxerStream* stream);
@@ -49,12 +51,14 @@ struct DecoderStreamTraits<DemuxerStream::VIDEO> {
typedef VideoDecoderConfig DecoderConfigType;
typedef DecryptingVideoDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success)> StreamInitCB;
+ typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
static std::string ToString();
static void Initialize(DecoderType* decoder,
const DecoderConfigType& config,
bool low_delay,
- const PipelineStatusCB& status_cb);
+ const PipelineStatusCB& status_cb,
+ const OutputCB& output_cb);
static bool FinishInitialization(const StreamInitCB& init_cb,
DecoderType* decoder,
DemuxerStream* stream);
« 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