Chromium Code Reviews| Index: media/base/video_frame.h |
| diff --git a/media/base/video_frame.h b/media/base/video_frame.h |
| index 82a08a986de17ce9482f8ff8767fbe3403e21a86..0342cb542e3a5d7a52ec42a46b886e0dc6af5254 100644 |
| --- a/media/base/video_frame.h |
| +++ b/media/base/video_frame.h |
| @@ -148,6 +148,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
| const gfx::Rect& visible_rect, |
| const gfx::Size& natural_size, |
| uint8* data, |
| + size_t data_size, |
| base::SharedMemoryHandle handle, |
| base::TimeDelta timestamp, |
| const base::Closure& no_longer_needed_cb); |
| @@ -192,6 +193,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
| static size_t NumPlanes(Format format); |
| + // Returns the required allocation size for a (tightly packed) frame of the |
| + // givencoded size and format. |
|
Ami GONE FROM CHROMIUM
2013/08/26 22:00:23
typo: givencoded
sheu
2013/08/27 22:05:56
Done.
|
| + static size_t AllocationSize(Format format, const gfx::Size& coded_size); |
| + |
| Format format() const { return format_; } |
| const gfx::Size& coded_size() const { return coded_size_; } |