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

Issue 11419200: Video capture implementation using the Media Foundation API. (Closed)

Created:
8 years ago by tommi (sloooow) - chröme
Modified:
8 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Video capture implementation using the Media Foundation API. This replaces the DirectShow based implementation for Vista,Win7 and Win8. DirectShow isn't supported in metro mode so once we've landed this, we can revert the workaround we have in place for Win8. The CapabilityList class is mostly moved code from the DS implementation. The difference is that I'm not using a std::map<> since that wasn't really necessary and instead adding one member (via inheritance) to the capability struct on Windows that holds the stream id that is needed. BUG=140545 TEST=All video capture tests in media_unittests now test this new implementation (except on XP). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170912

Patch Set 1 #

Patch Set 2 : ready for review #

Total comments: 8

Patch Set 3 : Address comments #

Patch Set 4 : actually delete the #include line instead of just commenting it out #

Total comments: 4

Patch Set 5 : Add denominator check #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+704 lines, -115 lines) Patch
M chrome/chrome_dll.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M media/media.gyp View 3 chunks +21 lines, -0 lines 0 comments Download
A media/video/capture/win/capability_list_win.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
A media/video/capture/win/capability_list_win.cc View 1 2 1 chunk +114 lines, -0 lines 0 comments Download
A media/video/capture/win/video_capture_device_mf_win.h View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A media/video/capture/win/video_capture_device_mf_win.cc View 1 2 3 4 1 chunk +399 lines, -0 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.h View 4 chunks +4 lines, -3 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 8 chunks +41 lines, -112 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
tommi (sloooow) - chröme
mflodman: Main review. darin: owner (and please review if you have time)
8 years ago (2012-11-28 10:45:50 UTC) #1
darin (slow to review)
The change to add more DLLs seems OK to me. https://codereview.chromium.org/11419200/diff/4001/media/video/capture/win/capability_list_win.cc File media/video/capture/win/capability_list_win.cc (right): https://codereview.chromium.org/11419200/diff/4001/media/video/capture/win/capability_list_win.cc#newcode14 ...
8 years ago (2012-11-29 00:28:05 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/11419200/diff/4001/media/video/capture/win/capability_list_win.cc File media/video/capture/win/capability_list_win.cc (right): https://codereview.chromium.org/11419200/diff/4001/media/video/capture/win/capability_list_win.cc#newcode14 media/video/capture/win/capability_list_win.cc:14: struct ResolutionDiff { On 2012/11/29 00:28:05, darin wrote: > ...
8 years ago (2012-11-29 11:02:58 UTC) #3
mflodman_chromium_OOO
LG. I have a couple of questions regarding MF details, but that might be easier ...
8 years ago (2012-11-29 20:00:02 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/11419200/diff/4003/media/video/capture/win/video_capture_device_mf_win.cc File media/video/capture/win/video_capture_device_mf_win.cc (right): https://codereview.chromium.org/11419200/diff/4003/media/video/capture/win/video_capture_device_mf_win.cc#newcode105 media/video/capture/win/video_capture_device_mf_win.cc:105: *frame_rate = numerator / denominator; On 2012/11/29 20:00:02, mflodman ...
8 years ago (2012-11-30 07:04:06 UTC) #5
mflodman_chromium_OOO
LGTM
8 years ago (2012-11-30 14:31:10 UTC) #6
darin (slow to review)
LGTM https://codereview.chromium.org/11419200/diff/6006/media/video/capture/win/video_capture_device_win.cc File media/video/capture/win/video_capture_device_win.cc (right): https://codereview.chromium.org/11419200/diff/6006/media/video/capture/win/video_capture_device_win.cc#newcode161 media/video/capture/win/video_capture_device_win.cc:161: VideoCaptureDevice* VideoCaptureDevice::Create(const Name& device_name) { nit: might be ...
8 years ago (2012-12-03 18:15:43 UTC) #7
tommi (sloooow) - chröme
On 2012/12/03 18:15:43, darin wrote: > LGTM > > https://codereview.chromium.org/11419200/diff/6006/media/video/capture/win/video_capture_device_win.cc > File media/video/capture/win/video_capture_device_win.cc (right): > ...
8 years ago (2012-12-03 23:23:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/11419200/6006
8 years ago (2012-12-03 23:24:07 UTC) #9
commit-bot: I haz the power
8 years ago (2012-12-03 23:24:12 UTC) #10
Presubmit check for 11419200-6006 failed and returned exit status 1.


Running presubmit commit checks ...

** Presubmit Warnings **
New code should not use wstrings.  If you are calling a cross-platform API that
accepts a wstring, fix the API.
    media/video/capture/win/video_capture_device_mf_win.cc:240

Presubmit checks took 1.9s to calculate.

Powered by Google App Engine
This is Rietveld 408576698