Chromium Code Reviews| Index: media/base/video_util.h |
| diff --git a/media/base/video_util.h b/media/base/video_util.h |
| index 27156fab7ab39e8c137a500487535c214699b660..4647fd61879cf2e55294a10e443d74b5a10872df 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) |
|
scherkus (not reviewing)
2013/04/04 22:54:00
nit: comments end w/ periods
vignesh
2013/04/05 19:06:58
Done.
|
| +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); |