Index: media/base/video_frame.h |
diff --git a/media/base/video_frame.h b/media/base/video_frame.h |
index 9ad9a3d937229756340ac5d0371a9dac832cd81c..c2b6c53f96b77ff324d148ba6781e3a8c6b49f53 100644 |
--- a/media/base/video_frame.h |
+++ b/media/base/video_frame.h |
@@ -223,6 +223,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
// The width may be aligned to format requirements. |
static int RowBytes(size_t plane, Format format, int width); |
+ // Returns the number of rows for the given plane, format, and height. |
+ // The height may be aligned to format requirements. |
+ static int Rows(size_t plane, Format format, int height); |
Tom Sepez
2014/09/02 16:57:15
nit: could the result be negative? If not, why ar
|
+ |
Format format() const { return format_; } |
const gfx::Size& coded_size() const { return coded_size_; } |