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

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: Copy data line by line 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..2de2fc44fde66b9f75dd5e23ede983f114775c0a 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -223,6 +223,9 @@ 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.
+ static int Rows(size_t plane, Format format, int height);
+
Format format() const { return format_; }
const gfx::Size& coded_size() const { return coded_size_; }

Powered by Google App Engine
This is Rietveld 408576698