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

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: address Pawel's review comments Created 6 years, 3 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 1ea26001de46d161bebc0cf9a1c6853c55eb84d7..1b6b349bc7d3b19bf22f21941877524f55353c64 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -240,7 +240,11 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// Returns the number of bytes per row for the given plane, format, and width.
// The width may be aligned to format requirements.
- static int RowBytes(size_t plane, Format format, int width);
+ static size_t 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 size_t Rows(size_t plane, Format format, int height);
Format format() const { return format_; }

Powered by Google App Engine
This is Rietveld 408576698