Chromium Code Reviews| Index: media/base/video_util.cc |
| diff --git a/media/base/video_util.cc b/media/base/video_util.cc |
| index 4bef0adc88b1e92a17ff0e3e9fe3543ac646fce9..46f9e147057c200ce9281dfa540ed07d1a4131d2 100644 |
| --- a/media/base/video_util.cc |
| +++ b/media/base/video_util.cc |
| @@ -61,6 +61,16 @@ void CopyVPlane(const uint8* source, int stride, int rows, VideoFrame* frame) { |
| CopyPlane(VideoFrame::kVPlane, source, stride, rows, frame); |
| } |
| +void CopyAPlane(const uint8* source, int stride, int rows, VideoFrame* frame) { |
| + CopyPlane(VideoFrame::kAPlane, source, stride, rows, frame); |
| +} |
| + |
| +void MakeOpaqueAPlane(int stride, int rows, VideoFrame *frame) { |
|
scherkus (not reviewing)
2013/02/27 07:28:26
pointers go with types
VideoFrame* frame
vignesh
2013/03/28 21:45:12
Done.
|
| + int rows_to_clear = std::min(frame->rows(VideoFrame::kAPlane), rows); |
| + memset(frame->data(VideoFrame::kAPlane), 255, |
| + frame->stride(VideoFrame::kAPlane) * rows_to_clear); |
| +} |
| + |
| void FillYUV(VideoFrame* frame, uint8 y, uint8 u, uint8 v) { |
| // Fill the Y plane. |
| uint8* y_plane = frame->data(VideoFrame::kYPlane); |