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

Unified Diff: content/common/gpu/media/v4l2_video_decode_accelerator.h

Issue 874083005: Fix visible size for V4L2 VDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: 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.
//

Powered by Google App Engine
This is Rietveld 408576698