Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1218)

Unified Diff: media/base/video_frame.h

Issue 430583005: Make VEA test support videos with different coded size and visible size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use scope_ptr for MemoryMappedFile object Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_; }

Powered by Google App Engine
This is Rietveld 408576698