diff options
author | Torne (Richard Coles) <torne@google.com> | 2013-05-09 18:35:53 +0100 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2013-05-13 13:57:14 +0100 |
commit | c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d (patch) | |
tree | 1dbdbb0624cc869ab25ee7f46971984c6fee3e7a /media/base/video_util.h | |
parent | 2d519ce2457219605d4f472da8d2ffd469796035 (diff) | |
download | chromium_org-c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d.tar.gz |
Merge from Chromium at DEPS revision r198571
This commit was generated by merge_to_master.py.
Change-Id: I951118a03836157090561764dd2627f0add8118f
Diffstat (limited to 'media/base/video_util.h')
-rw-r--r-- | media/base/video_util.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/media/base/video_util.h b/media/base/video_util.h index 27156fab7a..05e5927ec6 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); |