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

Issue 2164473002: ImageCapture: wire PhotoCapabilities' ISO, width, height and PhotoSettings' width and height (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, ben+mojo_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, haraken, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: wire PhotoCapabilities' ISO, width, height and PhotoSettings' width and height This CL continues implementing ImageCapture: - adds |iso|, |imageHeight| and |imageWidth| to PhotoCapabilities (each is a MediaSettingsRange). - adds |imageHeight| and |imageWidth| to PhotoSettings. - extends image_capture.mojom to support all the previous new fields - wires Android's "old" and "new" Camera API to provide the capabilities and listen to the Settings (seems like the "old" does not reliably support ISO). - extends the FakeVideoCaptureDeviceTest and the LayoutTests for these new features. Note that setOptions() is not synchronous with takePhoto(), so VideoCaptureDeviceAndroid holds on to the latest, if any, requested capture resolution. BUG=518807 Committed: https://crrev.com/5c7ce5d4d50500a169efaf836510703d1fd11b30 Cr-Commit-Position: refs/heads/master@{#407298}

Patch Set 1 #

Total comments: 4

Patch Set 2 : reillyg@ comment #

Total comments: 4

Patch Set 3 : foolip@ comments. Rebase #

Total comments: 10

Patch Set 4 : dcheng@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -39 lines) Patch
M media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java View 2 chunks +66 lines, -1 line 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCapture.java View 1 chunk +1 line, -1 line 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java View 4 chunks +54 lines, -3 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java View 6 chunks +68 lines, -17 lines 0 comments Download
M media/capture/video/android/photo_capabilities.h View 1 chunk +9 lines, -0 lines 0 comments Download
M media/capture/video/android/photo_capabilities.cc View 1 chunk +52 lines, -0 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.h View 1 chunk +2 lines, -0 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.cc View 1 2 3 4 chunks +28 lines, -1 line 0 comments Download
M media/capture/video/fake_video_capture_device.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M media/mojo/interfaces/image_capture.mojom View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html View 1 chunk +25 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js View 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/setoptions.html View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h View 1 2 3 1 chunk +15 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp View 1 2 3 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoSettings.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
mcasas
dcheng@: image_capture.mojom and its ramifications plz reillyg@ PTAL
4 years, 5 months ago (2016-07-20 02:29:00 UTC) #9
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2164473002/diff/90001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java File media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java (right): https://codereview.chromium.org/2164473002/diff/90001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java#newcode385 media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java:385: + ((height > 0) ? Math.abs(size.height - height) : ...
4 years, 5 months ago (2016-07-20 15:03:09 UTC) #13
mcasas
PTAL https://codereview.chromium.org/2164473002/diff/90001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java File media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java (right): https://codereview.chromium.org/2164473002/diff/90001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java#newcode385 media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java:385: + ((height > 0) ? Math.abs(size.height - height) ...
4 years, 5 months ago (2016-07-20 23:35:25 UTC) #14
Reilly Grant (use Gerrit)
lgtm
4 years, 5 months ago (2016-07-21 21:10:10 UTC) #15
mcasas
foolip@ PTAL at WebKit files' changes.
4 years, 5 months ago (2016-07-21 23:08:33 UTC) #17
foolip
No third_party/WebKit/Source/modules/imagecapture/OWNERS? Maybe emircan@? I can do rubberstamping of trivial things, but this code needs ...
4 years, 5 months ago (2016-07-22 01:23:56 UTC) #18
foolip
https://codereview.chromium.org/2164473002/diff/110001/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl File third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl (right): https://codereview.chromium.org/2164473002/diff/110001/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl#newcode16 third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl:16: readonly attribute MediaSettingsRange iso; Filed https://github.com/w3c/mediacapture-image/issues/29, if it's not ...
4 years, 5 months ago (2016-07-22 01:33:20 UTC) #19
foolip
lgtm https://codereview.chromium.org/2164473002/diff/110001/third_party/WebKit/LayoutTests/imagecapture/setoptions.html File third_party/WebKit/LayoutTests/imagecapture/setoptions.html (right): https://codereview.chromium.org/2164473002/diff/110001/third_party/WebKit/LayoutTests/imagecapture/setoptions.html#newcode35 third_party/WebKit/LayoutTests/imagecapture/setoptions.html:35: assert_equals(true, theMock.options().has_zoom, 'has_zoom must be true'); assert_true instead?
4 years, 5 months ago (2016-07-22 01:42:34 UTC) #20
mcasas
dcheng@ ping https://codereview.chromium.org/2164473002/diff/110001/third_party/WebKit/LayoutTests/imagecapture/setoptions.html File third_party/WebKit/LayoutTests/imagecapture/setoptions.html (right): https://codereview.chromium.org/2164473002/diff/110001/third_party/WebKit/LayoutTests/imagecapture/setoptions.html#newcode35 third_party/WebKit/LayoutTests/imagecapture/setoptions.html:35: assert_equals(true, theMock.options().has_zoom, 'has_zoom must be true'); On ...
4 years, 5 months ago (2016-07-22 02:00:04 UTC) #21
dcheng
https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc File media/capture/video/android/video_capture_device_android.cc (right): https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc#newcode205 media/capture/video/android/video_capture_device_android.cc:205: next_photo_resolution_.set_width(settings->width); What happens if settings->width overflows int? https://codereview.chromium.org/2164473002/diff/130001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp File ...
4 years, 5 months ago (2016-07-22 04:45:29 UTC) #22
mcasas
dcheng@ PTAL https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc File media/capture/video/android/video_capture_device_android.cc (right): https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc#newcode205 media/capture/video/android/video_capture_device_android.cc:205: next_photo_resolution_.set_width(settings->width); On 2016/07/22 04:45:29, dcheng wrote: > ...
4 years, 5 months ago (2016-07-22 16:46:32 UTC) #23
dcheng
lgtm with nits addressed https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc File media/capture/video/android/video_capture_device_android.cc (right): https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc#newcode205 media/capture/video/android/video_capture_device_android.cc:205: next_photo_resolution_.set_width(settings->width); On 2016/07/22 16:46:32, mcasas ...
4 years, 5 months ago (2016-07-22 18:07:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2164473002/170001
4 years, 5 months ago (2016-07-22 22:08:15 UTC) #28
mcasas
https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc File media/capture/video/android/video_capture_device_android.cc (right): https://codereview.chromium.org/2164473002/diff/130001/media/capture/video/android/video_capture_device_android.cc#newcode205 media/capture/video/android/video_capture_device_android.cc:205: next_photo_resolution_.set_width(settings->width); On 2016/07/22 18:07:23, dcheng wrote: > On 2016/07/22 ...
4 years, 5 months ago (2016-07-22 23:16:27 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/5c7ce5d4d50500a169efaf836510703d1fd11b30 Cr-Commit-Position: refs/heads/master@{#407298}
4 years, 5 months ago (2016-07-22 23:33:45 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 23:34:01 UTC) #32
Message was sent while issue was closed.
Failed to apply the patch.

Powered by Google App Engine
This is Rietveld 408576698