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

Unified Diff: media/base/video_util.h

Issue 10830110: Remove VideoDecoderConfig::aspect_ratio_xxx methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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_util.h
diff --git a/media/base/video_util.h b/media/base/video_util.h
index 3d21c8c1e39707ee48f48ae6cca59b1ddd2b97c6..408534d2a1791bdeef33267870afbbb8f4d7b828 100644
--- a/media/base/video_util.h
+++ b/media/base/video_util.h
@@ -7,11 +7,17 @@
#include "base/basictypes.h"
#include "media/base/media_export.h"
+#include "ui/gfx/rect.h"
namespace media {
class VideoFrame;
+// Computes the size of |visible_rect| for a given aspect ratio.
+MEDIA_EXPORT gfx::Size GetNaturalSize(const gfx::Rect& visible_rect,
+ int aspect_ratio_numerator,
+ int aspect_ratio_denominator);
+
// Copies a plane of YUV source into a VideoFrame object, taking into account
// source and destinations dimensions.
//

Powered by Google App Engine
This is Rietveld 408576698