summaryrefslogtreecommitdiffstats
path: root/media/base/video_util.h
diff options
context:
space:
mode:
authortomfinegan@chromium.org <tomfinegan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 22:19:15 +0000
committertomfinegan@chromium.org <tomfinegan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 22:19:15 +0000
commit4e8d20a5e0c0e29b9f7235f0d01c926316e778e4 (patch)
tree43c1b73db1f77aff7b6a53bf3fffe3b0a17e53af /media/base/video_util.h
parentd674f6e23dc4d4e8944df74074e06c1b5c18a7f1 (diff)
downloadchromium_src-4e8d20a5e0c0e29b9f7235f0d01c926316e778e4.zip
chromium_src-4e8d20a5e0c0e29b9f7235f0d01c926316e778e4.tar.gz
chromium_src-4e8d20a5e0c0e29b9f7235f0d01c926316e778e4.tar.bz2
media: Add support for playback for VP8 Alpha video streams.
BUG=147355 TEST=VP8 Alpha video streams play Review URL: https://codereview.chromium.org/12263013 Patch from Vignesh Venkatasubramanian <vigneshv@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/video_util.h')
-rw-r--r--media/base/video_util.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/media/base/video_util.h b/media/base/video_util.h
index 27156fa..05e5927 100644
--- a/media/base/video_util.h
+++ b/media/base/video_util.h
@@ -19,7 +19,7 @@ MEDIA_EXPORT gfx::Size GetNaturalSize(const gfx::Size& visible_size,
int aspect_ratio_numerator,
int aspect_ratio_denominator);
-// Copies a plane of YUV source into a VideoFrame object, taking into account
+// Copies a plane of YUV(A) source into a VideoFrame object, taking into account
// source and destinations dimensions.
//
// NOTE: rows is *not* the same as height!
@@ -29,8 +29,14 @@ MEDIA_EXPORT void CopyUPlane(const uint8* source, int stride, int rows,
VideoFrame* frame);
MEDIA_EXPORT void CopyVPlane(const uint8* source, int stride, int rows,
VideoFrame* frame);
+MEDIA_EXPORT void CopyAPlane(const uint8* source, int stride, int rows,
+ VideoFrame* frame);
+
+// Sets alpha plane values to be completely opaque (all 255's).
+MEDIA_EXPORT void MakeOpaqueAPlane(int stride, int rows, VideoFrame* frame);
+
// |plane| is one of VideoFrame::kYPlane, VideoFrame::kUPlane,
-// or VideoFrame::kVPlane.
+// VideoFrame::kVPlane or VideoFrame::kAPlane
MEDIA_EXPORT void CopyPlane(size_t plane, const uint8* source, int stride,
int rows, VideoFrame* frame);