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

Issue 366593003: Mac VideoCapture: return empty GetModel() for non-USB non-built-in cameras. (Closed)

Created:
6 years, 5 months ago by mcasas
Modified:
6 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, miu+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Mac VideoCapture: return empty GetModel() for non-USB non-built-in cameras. This CL adds support for storage of the camera connection information in the devices' names enumeration and subsequently in the VideoCaptureDevice::Name structure. -[AVCaptureDevice transportType] indicates the connection type to the camera: USB, Built-in, PCI, etc. Note that this info is only available for AVFoundation API and not for QTKit. Chromium style check forces to move complex constructors and destructors from video_capture_device.h to .cc. TEST: Verify that the FaceTime Built-in HD (USB) used in MBA >=2013 does not show incorrect modelID and vendorID in the camera name -- those fields should be empty since they only exist for USB or built-in cameras.. BUG=336651 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282063

Patch Set 1 : #

Total comments: 14

Patch Set 2 : rsesek@ comments #

Total comments: 8

Patch Set 3 : #

Total comments: 4

Patch Set 4 : nits #

Patch Set 5 : Rebased #

Patch Set 6 : FakeVCD and FileVCD specify AVFoundation API type. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -16 lines) Patch
M media/video/capture/fake_video_capture_device_factory.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M media/video/capture/file_video_capture_device_factory.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M media/video/capture/mac/avfoundation_glue.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/video/capture/mac/video_capture_device_avfoundation_mac.mm View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M media/video/capture/mac/video_capture_device_factory_mac.mm View 1 2 3 4 5 4 chunks +14 lines, -4 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.h View 1 2 chunks +25 lines, -0 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 1 2 3 4 5 2 chunks +24 lines, -2 lines 0 comments Download
M media/video/capture/mac/video_capture_device_qtkit_mac.mm View 1 2 1 chunk +9 lines, -3 lines 0 comments Download
M media/video/capture/video_capture_device.h View 1 2 4 chunks +23 lines, -6 lines 0 comments Download
M media/video/capture/video_capture_device.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
mcasas
rsesek@ PTAL.
6 years, 5 months ago (2014-07-01 12:43:24 UTC) #1
Robert Sesek
https://codereview.chromium.org/366593003/diff/10009/media/video/capture/mac/video_capture_device_avfoundation_mac.mm File media/video/capture/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/366593003/diff/10009/media/video/capture/mac/video_capture_device_avfoundation_mac.mm#newcode26 media/video/capture/mac/video_capture_device_avfoundation_mac.mm:26: [deviceNames setObject:[[DeviceNameAndTransportType alloc] This is leaked. I'd also pull ...
6 years, 5 months ago (2014-07-01 14:16:08 UTC) #2
mcasas
rsesek@ PTAL. https://codereview.chromium.org/366593003/diff/10009/media/video/capture/mac/video_capture_device_avfoundation_mac.mm File media/video/capture/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/366593003/diff/10009/media/video/capture/mac/video_capture_device_avfoundation_mac.mm#newcode26 media/video/capture/mac/video_capture_device_avfoundation_mac.mm:26: [deviceNames setObject:[[DeviceNameAndTransportType alloc] On 2014/07/01 14:16:07, rsesek ...
6 years, 5 months ago (2014-07-01 16:06:10 UTC) #3
Robert Sesek
https://codereview.chromium.org/366593003/diff/40001/media/video/capture/mac/video_capture_device_avfoundation_mac.mm File media/video/capture/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/366593003/diff/40001/media/video/capture/mac/video_capture_device_avfoundation_mac.mm#newcode26 media/video/capture/mac/video_capture_device_avfoundation_mac.mm:26: DeviceNameAndTransportType* name_and_transport_type = naming: nameAndTransportType, since this is in ...
6 years, 5 months ago (2014-07-01 16:23:57 UTC) #4
mcasas
rsesek@ PTAL. https://codereview.chromium.org/366593003/diff/40001/media/video/capture/mac/video_capture_device_avfoundation_mac.mm File media/video/capture/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/366593003/diff/40001/media/video/capture/mac/video_capture_device_avfoundation_mac.mm#newcode26 media/video/capture/mac/video_capture_device_avfoundation_mac.mm:26: DeviceNameAndTransportType* name_and_transport_type = On 2014/07/01 16:23:57, rsesek ...
6 years, 5 months ago (2014-07-02 07:37:35 UTC) #5
Robert Sesek
LGTM
6 years, 5 months ago (2014-07-02 15:01:48 UTC) #6
mcasas
tommi@ Owners RS/ PTAL.
6 years, 5 months ago (2014-07-02 15:15:35 UTC) #7
tommi (sloooow) - chröme
rs lgtm https://codereview.chromium.org/366593003/diff/60001/media/video/capture/mac/video_capture_device_factory_mac.mm File media/video/capture/mac/video_capture_device_factory_mac.mm (right): https://codereview.chromium.org/366593003/diff/60001/media/video/capture/mac/video_capture_device_factory_mac.mm#newcode115 media/video/capture/mac/video_capture_device_factory_mac.mm:115: transport_type == kIOAudioDeviceTransportTypeUSB) ? nit: align the ...
6 years, 5 months ago (2014-07-03 10:28:36 UTC) #8
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-03 11:10:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/366593003/80001
6 years, 5 months ago (2014-07-03 11:11:12 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-03 14:08:05 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-03 14:10:00 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/45722)
6 years, 5 months ago (2014-07-03 14:10:01 UTC) #13
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-03 16:08:35 UTC) #14
mcasas
The CQ bit was unchecked by mcasas@chromium.org
6 years, 5 months ago (2014-07-03 16:08:36 UTC) #15
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-03 16:08:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/366593003/80001
6 years, 5 months ago (2014-07-03 16:09:16 UTC) #17
mcasas
Publishing drafts, please ignore. https://codereview.chromium.org/366593003/diff/60001/media/video/capture/mac/video_capture_device_factory_mac.mm File media/video/capture/mac/video_capture_device_factory_mac.mm (right): https://codereview.chromium.org/366593003/diff/60001/media/video/capture/mac/video_capture_device_factory_mac.mm#newcode115 media/video/capture/mac/video_capture_device_factory_mac.mm:115: transport_type == kIOAudioDeviceTransportTypeUSB) ? On ...
6 years, 5 months ago (2014-07-03 16:18:36 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-03 17:48:49 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-03 17:50:21 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/45780)
6 years, 5 months ago (2014-07-03 17:50:23 UTC) #21
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-04 07:00:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/366593003/100001
6 years, 5 months ago (2014-07-04 07:00:21 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 5 months ago (2014-07-04 08:43:21 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-04 10:15:13 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/45895)
6 years, 5 months ago (2014-07-04 10:15:14 UTC) #26
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-04 10:41:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/366593003/100001
6 years, 5 months ago (2014-07-04 10:42:05 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-04 12:01:11 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-04 13:38:06 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/45911)
6 years, 5 months ago (2014-07-04 13:38:07 UTC) #31
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-09 11:58:32 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/366593003/140001
6 years, 5 months ago (2014-07-09 11:59:50 UTC) #33
mcasas
The CQ bit was unchecked by mcasas@chromium.org
6 years, 5 months ago (2014-07-09 13:14:08 UTC) #34
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-09 13:14:58 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/366593003/160001
6 years, 5 months ago (2014-07-09 13:16:32 UTC) #36
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 16:34:16 UTC) #37
Message was sent while issue was closed.
Change committed as 282063

Powered by Google App Engine
This is Rietveld 408576698