Index: content/common/gpu/media/v4l2_video_decode_accelerator.h |
diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.h b/content/common/gpu/media/v4l2_video_decode_accelerator.h |
index 43ab8f1b260ee8a1ea8802e594df36bb48f2613d..5c918918a6ad74d6f42ee53d907ac82b6b4fb829 100644 |
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.h |
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.h |
@@ -248,6 +248,10 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator |
// Create output buffers for the given |format|. |
bool CreateBuffersForFormat(const struct v4l2_format& format); |
+ // Try to get |crop_size|. Return false if cropping is not supported or the |
+ // crop size is not inside |buffer_size|. |
+ bool GetCropSize(const gfx::Size& buffer_size, gfx::Size* crop_size); |
+ |
// |
// Device tasks, to be run on device_poll_thread_. |
// |
@@ -418,6 +422,9 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator |
// Output picture size. |
gfx::Size frame_buffer_size_; |
+ // Output picture visible size. |
+ gfx::Size frame_visible_size_; |
Pawel Osciak
2015/01/29 05:02:04
Please use visible_size_ and rename frame_buffer_s
kcwu
2015/01/29 09:33:11
Done.
|
+ |
// |
// The device polling thread handles notifications of V4L2 device changes. |
// |