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

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: Addressed comments & rebased 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
« no previous file with comments | « media/base/video_decoder_config.cc ('k') | media/base/video_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_util.h
diff --git a/media/base/video_util.h b/media/base/video_util.h
index 3d21c8c1e39707ee48f48ae6cca59b1ddd2b97c6..562ad7d86ccae39af852ae8d4ece09dba94a9889 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/size.h"
namespace media {
class VideoFrame;
+// Computes the size of |visible_size| for a given aspect ratio.
+MEDIA_EXPORT gfx::Size GetNaturalSize(const gfx::Size& visible_size,
+ 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.
//
« no previous file with comments | « media/base/video_decoder_config.cc ('k') | media/base/video_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698