summaryrefslogtreecommitdiffstats
path: root/media/base/video_decoder_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/video_decoder_config.h')
-rw-r--r--media/base/video_decoder_config.h29
1 files changed, 12 insertions, 17 deletions
diff --git a/media/base/video_decoder_config.h b/media/base/video_decoder_config.h
index fcfd3e7..360451a 100644
--- a/media/base/video_decoder_config.h
+++ b/media/base/video_decoder_config.h
@@ -8,8 +8,6 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/media_export.h"
-#include "ui/gfx/rect.h"
-#include "ui/gfx/size.h"
namespace media {
@@ -30,17 +28,17 @@ enum VideoCodec {
class MEDIA_EXPORT VideoDecoderConfig {
public:
- VideoDecoderConfig(VideoCodec codec, const gfx::Size& coded_size,
- const gfx::Rect& visible_rect,
- const gfx::Size& natural_size,
+ VideoDecoderConfig(VideoCodec codec, int width, int height,
+ int surface_width, int surface_height,
int frame_rate_numerator, int frame_rate_denominator,
const uint8* extra_data, size_t extra_data_size);
~VideoDecoderConfig();
VideoCodec codec() const;
- gfx::Size coded_size() const;
- gfx::Rect visible_rect() const;
- gfx::Size natural_size() const;
+ int width() const;
+ int height() const;
+ int surface_width() const;
+ int surface_height() const;
int frame_rate_numerator() const;
int frame_rate_denominator() const;
uint8* extra_data() const;
@@ -49,16 +47,13 @@ class MEDIA_EXPORT VideoDecoderConfig {
private:
VideoCodec codec_;
- // Width and height of video frame immediately post-decode. Not all pixels
- // in this region are valid.
- gfx::Size coded_size_;
+ // Container's concept of width and height of this video.
+ int width_;
+ int height_;
- // Region of |coded_size_| that is visible.
- gfx::Rect visible_rect_;
-
- // Natural width and height of the video, i.e. the visible dimensions
- // after aspect ratio is applied.
- gfx::Size natural_size_;
+ // Width and height of the display surface for this video.
+ int surface_width_;
+ int surface_height_;
// Frame rate in seconds expressed as a fraction.
// TODO(scherkus): fairly certain decoders don't require frame rates.