Index: media/base/video_frame.h |
diff --git a/media/base/video_frame.h b/media/base/video_frame.h |
index 82a08a986de17ce9482f8ff8767fbe3403e21a86..56eb1e57bfd1e4d8830aae163df8053ff5aff5a2 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,11 @@ 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. |
+ 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_; } |