| Index: media/base/video_frame.h
|
| diff --git a/media/base/video_frame.h b/media/base/video_frame.h
|
| index 3483e9191a91307ebb9bb8253f8fb3becac3ed09..54a387844c97a0c50886d96ecd7af817ec813ebf 100644
|
| --- a/media/base/video_frame.h
|
| +++ b/media/base/video_frame.h
|
| @@ -22,13 +22,14 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
| };
|
|
|
| enum {
|
| - kMaxPlanes = 3,
|
| + kMaxPlanes = 4,
|
|
|
| kRGBPlane = 0,
|
|
|
| kYPlane = 0,
|
| kUPlane = 1,
|
| kVPlane = 2,
|
| + kAPlane = 3,
|
| };
|
|
|
| // Surface formats roughly based on FOURCC labels, see:
|
| @@ -43,6 +44,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
| EMPTY = 9, // An empty frame.
|
| I420 = 11, // 12bpp YVU planar 1x1 Y, 2x2 UV samples.
|
| NATIVE_TEXTURE = 12, // Native texture. Pixel-format agnostic.
|
| + YV12A = 13,// 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples
|
| };
|
|
|
| // Creates a new frame in system memory with given parameters. Buffers for
|
| @@ -165,6 +167,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
| // context. Calls MD5Update with the context and the contents of the frame.
|
| void HashFrameForTesting(base::MD5Context* context);
|
|
|
| + bool HasAlpha() const {
|
| + return IsValidPlane(kAPlane);
|
| + }
|
| +
|
| private:
|
| friend class base::RefCountedThreadSafe<VideoFrame>;
|
| // Clients must use the static CreateFrame() method to create a new frame.
|
|
|