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

Unified Diff: media/base/video_frame.h

Issue 10704175: Add config change support to FFmpegVideoDecoder (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
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | media/filters/ffmpeg_video_decoder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 55d4cd566ac0e702e59330e383f051a1043d6310..e15f4a1ebd5e2e66348a6cc890413ad7cc2bef5e 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -46,6 +46,15 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
base::TimeDelta timestamp,
base::TimeDelta duration);
+ static scoped_refptr<VideoFrame> CreateFrame(
+ Format format,
+ size_t width,
+ size_t height,
+ size_t natural_width,
Ami GONE FROM CHROMIUM 2012/07/13 00:59:05 You need serious commentary about how the "natural
+ size_t natural_height,
+ base::TimeDelta timestamp,
+ base::TimeDelta duration);
+
// Call prior to CreateFrame to ensure validity of frame configuration. Called
// automatically by VideoDecoderConfig::IsValidConfig().
// TODO(scherkus): VideoDecoderConfig shouldn't call this method
@@ -61,6 +70,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
uint32 texture_target,
size_t width,
size_t height,
+ size_t natural_width,
+ size_t natural_height,
base::TimeDelta timestamp,
base::TimeDelta duration,
const base::Closure& no_longer_needed);
@@ -79,6 +90,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
size_t height() const { return height_; }
+ size_t natural_width() const { return natural_width_; }
+
+ size_t natural_height() const { return natural_height_; }
+
int stride(size_t plane) const;
// Returns the number of bytes per row and number of rows for a given plane.
@@ -126,6 +141,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
VideoFrame(Format format,
size_t video_width,
size_t video_height,
+ size_t natural_width,
+ size_t natural_height,
base::TimeDelta timestamp,
base::TimeDelta duration);
virtual ~VideoFrame();
@@ -144,6 +161,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
size_t width_;
size_t height_;
+ // Aspect corrected width and height.
+ size_t natural_width_;
+ size_t natural_height_;
+
// Array of strides for each plane, typically greater or equal to the width
// of the surface divided by the horizontal sampling period. Note that
// strides can be negative.
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | media/filters/ffmpeg_video_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698