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

Issue 17402002: Reconnect support for DirectShow video capture devices in parallel to MediaFoundation ones. (Closed)

Created:
7 years, 6 months ago by mcasas
Modified:
7 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Reconnect support for DirectShow video capture devices in parallel to MediaFoundation ones. Implemented merging device driver type for capture devices either Media Foundation or DirectShow. Added a static (but local namespace) map indexed by unique id having the appropriate type. This is used in Create() to, well, create the appropriate driver fron unique_id. Merged MF and DS devices lists, for this added operator== and operator< to VideoCaptureDevice struct; also accepted UYVY and ARGB colorspaces from video capture device caps list. BUG=https://code.google.com/p/chromium/issues/detail?id=144465 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210280

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : Addressed comments. Removed static map. #

Patch Set 4 : removed empty added line - relaunch bots #

Patch Set 5 : retry patch #

Total comments: 2

Patch Set 6 : following cl 17846002 #

Patch Set 7 : #

Patch Set 8 : Rebased again - previous patch failed for all win bots =-0 #

Patch Set 9 : Corrected comments and error messages #

Patch Set 10 : Corrected silly mistake in function call #

Total comments: 12

Patch Set 11 : CaptureApiType wrapped into a CaptureApiClass for default value. #

Total comments: 6

Patch Set 12 : unittests sorted out #

Patch Set 13 : comments addressed #

Patch Set 14 : Added check for Windows version in unittests, Capture Driver Api is DS if Windows version < 7 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -10 lines) Patch
M media/video/capture/video_capture_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +39 lines, -0 lines 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +11 lines, -2 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +24 lines, -7 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
mcasas
Hi Magnus, a heads up: I'm trying to get an all-green trybot set for this ...
7 years, 6 months ago (2013-06-18 15:23:01 UTC) #1
mcasas
7 years, 6 months ago (2013-06-24 10:26:22 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/17402002/diff/3001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/17402002/diff/3001/media/video/capture/video_capture_device.h#newcode35 media/video/capture/video_capture_device.h:35: friend bool operator==(const Name& left, const Name& right) { ...
7 years, 6 months ago (2013-06-24 11:09:27 UTC) #3
mcasas
Addressed your comments as per our conversations. No global map but retrieves list of MF ...
7 years, 6 months ago (2013-06-25 07:04:36 UTC) #4
tommi (sloooow) - chröme
FYI - I started a new CL to make adding the enum to the Name ...
7 years, 6 months ago (2013-06-26 09:53:21 UTC) #5
tommi (sloooow) - chröme
https://codereview.chromium.org/17402002/diff/36002/media/video/capture/win/video_capture_device_win.cc File media/video/capture/win/video_capture_device_win.cc (right): https://codereview.chromium.org/17402002/diff/36002/media/video/capture/win/video_capture_device_win.cc#newcode175 media/video/capture/win/video_capture_device_win.cc:175: Names::iterator it; you shouldn't need to do any enumeration ...
7 years, 6 months ago (2013-06-26 09:57:27 UTC) #6
mcasas
following cl 17846002
7 years, 5 months ago (2013-06-27 15:47:53 UTC) #7
mcasas
Rebaselined with some difficulty and cleaned up. https://codereview.chromium.org/17402002/diff/36002/media/video/capture/win/video_capture_device_win.cc File media/video/capture/win/video_capture_device_win.cc (right): https://codereview.chromium.org/17402002/diff/36002/media/video/capture/win/video_capture_device_win.cc#newcode175 media/video/capture/win/video_capture_device_win.cc:175: Names::iterator it; ...
7 years, 5 months ago (2013-07-02 12:28:11 UTC) #8
mcasas
We seem to be ready again for review :)
7 years, 5 months ago (2013-07-03 09:40:08 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/17402002/diff/71001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/17402002/diff/71001/media/video/capture/video_capture_device.h#newcode62 media/video/capture/video_capture_device.h:62: }; nit: empty line after this one https://codereview.chromium.org/17402002/diff/71001/media/video/capture/video_capture_device.h#newcode64 media/video/capture/video_capture_device.h:64: ...
7 years, 5 months ago (2013-07-03 12:06:51 UTC) #10
mcasas
Addressed comments, new patch coming. https://codereview.chromium.org/17402002/diff/71001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/17402002/diff/71001/media/video/capture/video_capture_device.h#newcode62 media/video/capture/video_capture_device.h:62: }; On 2013/07/03 12:06:51, ...
7 years, 5 months ago (2013-07-03 12:41:10 UTC) #11
mcasas
Refactored a bit more Names::CaptureApiType, I added a class to wrap the type, so the ...
7 years, 5 months ago (2013-07-03 13:18:40 UTC) #12
tommi (sloooow) - chröme
lgtm with a few minor requests https://codereview.chromium.org/17402002/diff/80001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/17402002/diff/80001/media/video/capture/video_capture_device.h#newcode91 media/video/capture/video_capture_device.h:91: DCHECK(capture_api_type_ != API_TYPE_UNKNOWN); ...
7 years, 5 months ago (2013-07-03 15:27:26 UTC) #13
mcasas
Needed small adaptation of VideoCaptureDeviceTest, to take into account that in Windows platforms, creation of ...
7 years, 5 months ago (2013-07-04 08:58:15 UTC) #14
mcasas
Comments addressed and unittests corrected. https://codereview.chromium.org/17402002/diff/80001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/17402002/diff/80001/media/video/capture/video_capture_device.h#newcode91 media/video/capture/video_capture_device.h:91: DCHECK(capture_api_type_ != API_TYPE_UNKNOWN); On ...
7 years, 5 months ago (2013-07-04 10:40:42 UTC) #15
tommi (sloooow) - chröme
lgtm
7 years, 5 months ago (2013-07-04 12:43:25 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/17402002/92001
7 years, 5 months ago (2013-07-04 18:52:08 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=145925
7 years, 5 months ago (2013-07-04 20:08:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/17402002/92001
7 years, 5 months ago (2013-07-05 08:21:29 UTC) #19
commit-bot: I haz the power
Change committed as 210280
7 years, 5 months ago (2013-07-05 08:35:58 UTC) #20
mcasas
After XP test VideoCaptureDeviceTest.OpenInvalidDevice force patch reverted
7 years, 5 months ago (2013-07-05 11:43:00 UTC) #21
mcasas
7 years, 5 months ago (2013-07-05 11:45:45 UTC) #22
Message was sent while issue was closed.
Ooops by default the patch was added to the original CL... Anyway the change is
small: I added a check for Windows version in
VideoCaptureDeviceTest.OpenInvalidDevice, Capture Driver Api is DS if Windows
version < 7 and MF otherwise. This made a DCHECK fail for XP.

Powered by Google App Engine
This is Rietveld 408576698