Chromium Code Reviews| Index: media/base/video_frame.h |
| diff --git a/media/base/video_frame.h b/media/base/video_frame.h |
| index 2588e46e99d96b6dd8156feee0da1450e241ca90..e66ffffafc8a6bd5a6f950536e3f7e96cd8679bc 100644 |
| --- a/media/base/video_frame.h |
| +++ b/media/base/video_frame.h |
| @@ -286,6 +286,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
| // given coded size and format. |
| static size_t AllocationSize(Format format, const gfx::Size& coded_size); |
| + // Returns the actual allocation size for a YUV frame that is created by |
| + // CreateFrame() method. |
| + static size_t AlignedAllocationSize(const scoped_refptr<VideoFrame>& frame); |
|
miu
2015/07/09 23:31:34
How is this any different from frame->coded_size()
emircan
2015/07/10 00:22:53
VideoFrame::AllocateYUV() is using constants kFram
|
| + |
| // Returns the plane gfx::Size (in bytes) for a plane of the given coded size |
| // and format. |
| static gfx::Size PlaneSize(Format format, |