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

Issue 2129733004: ImageCapture: Implement takePhoto() for Mac AVFoundation (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+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: Implement takePhoto() for Mac AVFoundation By pulling the necessary symbols out of AVFoundation and using them; most notably (Cr)AVCaptureStillImageOutput. TakePhoto is already implemented for Android (both APIs). Also adding VideoCaptureDeviceTest::MAYBE_TakePhoto test case, enabled only for Mac. BUG=518807 TEST=Run build with flag --enable-blink-features=ImageCapture, navigate to [1] and push buttons - Open Camera ... - Create ImageCapturer - takePhoto() (N times!) --> profit [1] https://rawgit.com/Miguelao/demos/master/imagecapture.html Committed: https://crrev.com/ad75c34fbb7940127a99be04ed6019ab09d73880 Cr-Commit-Position: refs/heads/master@{#404832}

Patch Set 1 #

Patch Set 2 : General cleanup and added VideoCaptureDeviceTest::TakePhoto #

Total comments: 12

Patch Set 3 : Rebased _unittests.cc and rsesek@ comments #

Total comments: 6

Patch Set 4 : rsesek@ and emircan@s comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -36 lines) Patch
M media/base/mac/avfoundation_glue.h View 1 2 5 chunks +19 lines, -6 lines 0 comments Download
M media/base/mac/avfoundation_glue.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/mac/coremedia_glue.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/capture/video/mac/video_capture_device_avfoundation_mac.h View 1 4 chunks +10 lines, -2 lines 0 comments Download
M media/capture/video/mac/video_capture_device_avfoundation_mac.mm View 1 2 3 6 chunks +72 lines, -13 lines 0 comments Download
M media/capture/video/mac/video_capture_device_mac.h View 1 2 3 chunks +13 lines, -1 line 0 comments Download
M media/capture/video/mac/video_capture_device_mac.mm View 1 2 3 3 chunks +31 lines, -2 lines 2 comments Download
M media/capture/video/video_capture_device_unittest.cc View 1 2 3 10 chunks +74 lines, -12 lines 0 comments Download

Messages

Total messages: 33 (16 generated)
mcasas
rsesek@ PTAL at all files minus _unittest.cc emircan@ PTAL at the unittest.cc (the others too ...
4 years, 5 months ago (2016-07-08 18:45:42 UTC) #11
Robert Sesek
https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h File media/base/mac/avfoundation_glue.h (right): https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h#newcode5 media/base/mac/avfoundation_glue.h:5: // AVFoundation API is only introduced in Mac OS ...
4 years, 5 months ago (2016-07-08 19:31:04 UTC) #12
mcasas
PTAL https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h File media/base/mac/avfoundation_glue.h (right): https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h#newcode5 media/base/mac/avfoundation_glue.h:5: // AVFoundation API is only introduced in Mac ...
4 years, 5 months ago (2016-07-08 21:39:28 UTC) #13
Robert Sesek
https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h File media/base/mac/avfoundation_glue.h (right): https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h#newcode5 media/base/mac/avfoundation_glue.h:5: // AVFoundation API is only introduced in Mac OS ...
4 years, 5 months ago (2016-07-11 15:20:44 UTC) #15
emircan
lgtm % nits. https://codereview.chromium.org/2129733004/diff/200001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm File media/capture/video/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/2129733004/diff/200001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm#newcode124 media/capture/video/mac/video_capture_device_avfoundation_mac.mm:124: length, base_address); We should check that ...
4 years, 5 months ago (2016-07-11 21:23:08 UTC) #16
mcasas
rsesek@ PTAL https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h File media/base/mac/avfoundation_glue.h (right): https://codereview.chromium.org/2129733004/diff/160001/media/base/mac/avfoundation_glue.h#newcode5 media/base/mac/avfoundation_glue.h:5: // AVFoundation API is only introduced in ...
4 years, 5 months ago (2016-07-11 23:30:00 UTC) #17
Robert Sesek
Last comment https://codereview.chromium.org/2129733004/diff/220001/media/capture/video/mac/video_capture_device_mac.mm File media/capture/video/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/2129733004/diff/220001/media/capture/video/mac/video_capture_device_mac.mm#newcode448 media/capture/video/mac/video_capture_device_mac.mm:448: mojo::Array<uint8_t>(std::vector<uint8_t>( This needs to be std::move to ...
4 years, 5 months ago (2016-07-12 12:29:47 UTC) #18
Robert Sesek
Last comment https://codereview.chromium.org/2129733004/diff/220001/media/capture/video/mac/video_capture_device_mac.mm File media/capture/video/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/2129733004/diff/220001/media/capture/video/mac/video_capture_device_mac.mm#newcode448 media/capture/video/mac/video_capture_device_mac.mm:448: mojo::Array<uint8_t>(std::vector<uint8_t>( This needs to be std::move to ...
4 years, 5 months ago (2016-07-12 12:29:47 UTC) #19
mcasas
https://codereview.chromium.org/2129733004/diff/220001/media/capture/video/mac/video_capture_device_mac.mm File media/capture/video/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/2129733004/diff/220001/media/capture/video/mac/video_capture_device_mac.mm#newcode448 media/capture/video/mac/video_capture_device_mac.mm:448: mojo::Array<uint8_t>(std::vector<uint8_t>( On 2016/07/12 12:29:47, Robert Sesek wrote: > This ...
4 years, 5 months ago (2016-07-12 13:35:00 UTC) #20
Robert Sesek
Ah, TIL! LGTM
4 years, 5 months ago (2016-07-12 13:41:37 UTC) #21
mcasas
sandersd@ RS media/base/mac/*glue* plz
4 years, 5 months ago (2016-07-12 14:38:03 UTC) #23
sandersd (OOO until July 31)
lgtm
4 years, 5 months ago (2016-07-12 18:46:31 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/2129733004/220001
4 years, 5 months ago (2016-07-12 18:48:11 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:220001)
4 years, 5 months ago (2016-07-12 20:44:26 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/ad75c34fbb7940127a99be04ed6019ab09d73880 Cr-Commit-Position: refs/heads/master@{#404832}
4 years, 5 months ago (2016-07-12 20:45:49 UTC) #31
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-12 20:46:10 UTC) #32
henrika (OOO until Aug 14)
4 years, 5 months ago (2016-07-13 07:33:57 UTC) #33
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:220001) has been created in
https://codereview.chromium.org/2147873002/ by henrika@chromium.org.

The reason for reverting is: Most likely breaks
WebRtcWebcamBrowserTests/WebRtcWebcamBrowserTest.MANUAL_TestAcquiringAndReacquiringWebcam/0
on the WebRTC in Chrome bots.

See
https://build.chromium.org/p/chromium.webrtc/builders/Mac%20Tester/builds/568...
for details..

Powered by Google App Engine
This is Rietveld 408576698