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

Unified Diff: media/video/video_decode_accelerator.h

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 years, 7 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/gpu_video_decoder.cc ('k') | ppapi/api/dev/ppb_video_decoder_dev.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 5fa0d2149348fd07854f14993ab2d3a0988b0c3a..8128094f9cb9defecda86a6818415910d9117bab 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -80,9 +80,15 @@ class MEDIA_EXPORT VideoDecodeAccelerator
// Initializes the video decoder with specific configuration.
// Parameters:
// |profile| is the video stream's format profile.
- //
+ // |frame_size| is the width and height of the video frame. This parameter
+ // is optional and can be set to 0,0.
+ // |extra_data| is the byte data required to initialize video decoders, for
+ // example the H.264 AAVC data. This parameter is optional and can be set
+ // to an empty vector.
// Returns true when command successfully accepted. Otherwise false.
- virtual bool Initialize(VideoCodecProfile profile) = 0;
+ virtual bool Initialize(VideoCodecProfile profile,
+ const gfx::Size& frame_size,
+ const std::vector<uint8_t>& extra_data) = 0;
// Decodes given bitstream buffer. Once decoder is done with processing
// |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | ppapi/api/dev/ppb_video_decoder_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698