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

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: reillyg@ comment 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
« no previous file with comments | « no previous file | media/capture/video/mac/video_capture_device_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..773a425b3f8e75e3eb6812e3c82365ca4229056c 100644
--- a/media/capture/video/linux/v4l2_capture_delegate.cc
+++ b/media/capture/video/linux/v4l2_capture_delegate.cc
@@ -620,8 +620,12 @@ void V4L2CaptureDelegate::GetPhotoCapabilities(
}
photo_capabilities->iso = mojom::Range::New();
- photo_capabilities->height = mojom::Range::New();
- photo_capabilities->width = mojom::Range::New();
+ photo_capabilities->height = mojom::Range::New(
+ capture_format_.frame_size.height(), capture_format_.frame_size.height(),
+ capture_format_.frame_size.height(), 0 /* step */);
+ photo_capabilities->width = mojom::Range::New(
+ capture_format_.frame_size.width(), capture_format_.frame_size.width(),
+ capture_format_.frame_size.width(), 0 /* step */);
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698