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

Issue 2155723002: RELAND 3: ImageCapture: Implement takePhoto() for Mac AVFoundation (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
Reviewers:
rsesek
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

RELAND 3: ImageCapture: Implement takePhoto() for Mac AVFoundation The original patch and the previous relands broke WebRtcWebcamBrowserTests/WebRtcWebcamBrowserTest.MANUAL_TestAcquiringAndReacquiringWebcam/0 in the WebRtc Mac-tester bots, which run using a Logitech C920. The root cause was that for resolutions >= 1280x720p, the code configures the use of MJPEG encoding, and that seems to produce partially invalid JPEG markers, e.g. (Corrupt JPEG data: 10 extraneous bytes before marker 0xd4) that throw the AVCaptureStillImageOutput off. This CL disconnects |stillImageOutput_| in this case. Original 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 TBR=rsesek@chromium.org since the change is trivial. Committed: https://crrev.com/9285b1671f3eab374056de018e337d1ce0c1bf8a Cr-Commit-Position: refs/heads/master@{#405889}

Patch Set 1 : https://codereview.chromium.org/2152023002/ #

Patch Set 2 : Avoid using AVCaptureStillImageOutput if the capture is configured MJPEG (errors). Cleaned up black… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -46 lines) Patch
M media/base/mac/avfoundation_glue.h View 5 chunks +20 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 4 chunks +10 lines, -2 lines 0 comments Download
M media/capture/video/mac/video_capture_device_avfoundation_mac.mm View 1 7 chunks +80 lines, -13 lines 0 comments Download
M media/capture/video/mac/video_capture_device_factory_mac.mm View 1 1 chunk +5 lines, -10 lines 0 comments Download
M media/capture/video/mac/video_capture_device_mac.h View 3 chunks +13 lines, -1 line 0 comments Download
M media/capture/video/mac/video_capture_device_mac.mm View 3 chunks +31 lines, -2 lines 0 comments Download
M media/capture/video/video_capture_device_unittest.cc View 10 chunks +74 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
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/2155723002/20001
4 years, 5 months ago (2016-07-15 21:38:39 UTC) #4
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-15 22:55:59 UTC) #6
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 22:56:13 UTC) #7
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 22:58:42 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9285b1671f3eab374056de018e337d1ce0c1bf8a
Cr-Commit-Position: refs/heads/master@{#405889}

Powered by Google App Engine
This is Rietveld 408576698