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

Unified Diff: media/capture/video/linux/v4l2_capture_delegate.cc

Issue 2868393004: Image Capture: fill in PhotoCapabilities.{height,width} in Linux/CrOs/Mac (Closed)
Patch Set: Created 3 years, 7 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: media/capture/video/linux/v4l2_capture_delegate.cc
diff --git a/media/capture/video/linux/v4l2_capture_delegate.cc b/media/capture/video/linux/v4l2_capture_delegate.cc
index 6c765226b6d8dddc0d88f774853300290a12a413..c16c019d23fe95987f29dcd84d8b0dc6b1a06fcb 100644
--- a/media/capture/video/linux/v4l2_capture_delegate.cc
+++ b/media/capture/video/linux/v4l2_capture_delegate.cc
@@ -621,7 +621,11 @@ void V4L2CaptureDelegate::GetPhotoCapabilities(
photo_capabilities->iso = mojom::Range::New();
photo_capabilities->height = mojom::Range::New();
+ photo_capabilities->height->min = capture_format_.frame_size.height();
+ photo_capabilities->height->max = capture_format_.frame_size.height();
photo_capabilities->width = mojom::Range::New();
+ photo_capabilities->width->min = capture_format_.frame_size.width();
+ photo_capabilities->width->max = capture_format_.frame_size.width();
photo_capabilities->exposure_compensation = mojom::Range::New();
photo_capabilities->red_eye_reduction = mojom::RedEyeReduction::NEVER;
photo_capabilities->torch = false;
« no previous file with comments | « no previous file | media/capture/video/mac/video_capture_device_mac.h » ('j') | media/capture/video/mac/video_capture_device_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698