summaryrefslogtreecommitdiffstats
path: root/media/base/decoder_buffer.h
diff options
context:
space:
mode:
authorvigneshv@chromium.org <vigneshv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 23:43:32 +0000
committervigneshv@chromium.org <vigneshv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 23:43:32 +0000
commit6ac955b41814da1eebf56244a147f3fad00f5aa7 (patch)
tree9671f7731055aa027d63e56290722d7ec012756f /media/base/decoder_buffer.h
parente69198bfdb89c4658a023c05c4929e9617ac2828 (diff)
downloadchromium_src-6ac955b41814da1eebf56244a147f3fad00f5aa7.zip
chromium_src-6ac955b41814da1eebf56244a147f3fad00f5aa7.tar.gz
chromium_src-6ac955b41814da1eebf56244a147f3fad00f5aa7.tar.bz2
media: Add support for playback of VP8 Alpha video streams
BUG=147355 TEST=VP8 Alpha video streams play TBR=sky Review URL: https://chromiumcodereview.appspot.com/13886011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/decoder_buffer.h')
-rw-r--r--media/base/decoder_buffer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/media/base/decoder_buffer.h b/media/base/decoder_buffer.h
index c23e88f..168ab2c 100644
--- a/media/base/decoder_buffer.h
+++ b/media/base/decoder_buffer.h
@@ -47,6 +47,13 @@ class MEDIA_EXPORT DecoderBuffer
// padded and aligned as necessary. |data| must not be NULL and |size| >= 0.
static scoped_refptr<DecoderBuffer> CopyFrom(const uint8* data, int size);
+ // Create a DecoderBuffer whose |data_| is copied from |data| and |side_data_|
+ // is copied from |side_data|. Buffers will be padded and aligned as necessary
+ // Data pointers must not be NULL and sizes must be >= 0.
+ static scoped_refptr<DecoderBuffer> CopyFrom(const uint8* data, int size,
+ const uint8* side_data,
+ int side_data_size);
+
// Create a DecoderBuffer indicating we've reached end of stream.
//
// Calling any method other than IsEndOfStream() on the resulting buffer
@@ -64,6 +71,9 @@ class MEDIA_EXPORT DecoderBuffer
int GetDataSize() const;
+ const uint8* GetSideData() const;
+ int GetSideDataSize() const;
+
const DecryptConfig* GetDecryptConfig() const;
void SetDecryptConfig(scoped_ptr<DecryptConfig> decrypt_config);
@@ -80,6 +90,8 @@ class MEDIA_EXPORT DecoderBuffer
// will be padded and aligned as necessary. If |data| is NULL then |data_| is
// set to NULL and |buffer_size_| to 0.
DecoderBuffer(const uint8* data, int size);
+ DecoderBuffer(const uint8* data, int size,
+ const uint8* side_data, int side_data_size);
virtual ~DecoderBuffer();
private:
@@ -88,6 +100,8 @@ class MEDIA_EXPORT DecoderBuffer
int size_;
scoped_ptr<uint8, base::ScopedPtrAlignedFree> data_;
+ int side_data_size_;
+ scoped_ptr<uint8, base::ScopedPtrAlignedFree> side_data_;
scoped_ptr<DecryptConfig> decrypt_config_;
// Constructor helper method for memory allocations.