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

Unified Diff: media/base/decoder_buffer.h

Issue 12157002: Adding YUVA support for enabling Alpha Playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moving VP8 Alpha Playback behind its own flag Created 7 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
Index: media/base/decoder_buffer.h
diff --git a/media/base/decoder_buffer.h b/media/base/decoder_buffer.h
index c23e88f5fcc85820c9c322b9475955329b31711d..b3d7b01949136dc8bb061602db03b2605cad4a9a 100644
--- a/media/base/decoder_buffer.h
+++ b/media/base/decoder_buffer.h
@@ -64,6 +64,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);
@@ -73,6 +76,9 @@ class MEDIA_EXPORT DecoderBuffer
// Returns a human-readable string describing |*this|.
std::string AsHumanReadableString();
+ // Allocate memory and copy side data. Padded and aligned as necessary
+ virtual void SetSideData(const uint8* data, int size);
+
protected:
friend class base::RefCountedThreadSafe<DecoderBuffer>;
@@ -88,6 +94,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.

Powered by Google App Engine
This is Rietveld 408576698