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

Issue 195363002: VideoCapturerDelegate: Retrieve supported/in-use format(s) for constraint negotiation (Closed)

Created:
6 years, 9 months ago by mcasas
Modified:
6 years, 8 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

VideoCapturerDelegate: Retrieve supported/in-use format(s) for constraint negotiation. VideoCapturerDelegate uses currently a set of fixed resolutions and frame rates for constraint negotiation. Instead, the associated VideoCaptureImplManager is queried first for the device format in-use; if that in non-null, is used, otherwise the whole list of supported formats is retrieved and used. If that last list is also empty (platform does not support it, such as Mac QTKit or Win DirectShow), then the by- default set of resolutions are used. This CL would change behaviour of scenarios in which requested capture resolution or frame rate is larger than the one provided by hardware, for example Fake Video Capture Device supports only 20fps, if the Mandatory MinFps is larger than that, the resolution algorithm will fail. No unittests added to WebRtcGetUserMediaBrowserTest: the unsupported format is added in https://codereview.chromium.org/197213004/ . Rest of the tests in the file change the gUM to request fps between 10 and 30, since the FakeVCD supports 20, and it would fail with a [30-30] fps range requested. BUG=309554 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261717

Patch Set 1 : #

Total comments: 20

Patch Set 2 : perkj@s comments #

Total comments: 6

Patch Set 3 : perkj@s comments #

Total comments: 4

Patch Set 4 : tommi@s comments. #

Total comments: 10

Patch Set 5 : perkj@s comments #

Total comments: 4

Patch Set 6 : DCHECK() and comments. #

Patch Set 7 : Rebase. #

Patch Set 8 : Corrected frame rate correction, min was max and opposite, in tests. #

Patch Set 9 : Rebase. #

Patch Set 10 : Corrected min fps from 30 to 10 in a test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -34 lines) Patch
M content/browser/media/webrtc_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc_getusermedia_browsertest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -10 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.cc View 1 2 3 4 5 6 7 8 4 chunks +57 lines, -21 lines 0 comments Download
M content/renderer/media/media_stream_video_source.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (0 generated)
mcasas
perkj@ PTAL
6 years, 9 months ago (2014-03-12 14:18:24 UTC) #1
perkj_chrome
https://codereview.chromium.org/195363002/diff/80001/content/browser/media/webrtc_getusermedia_browsertest.cc File content/browser/media/webrtc_getusermedia_browsertest.cc (right): https://codereview.chromium.org/195363002/diff/80001/content/browser/media/webrtc_getusermedia_browsertest.cc#newcode339 content/browser/media/webrtc_getusermedia_browsertest.cc:339: ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); Oh, I did this in https://codereview.chromium.org/197213004/ https://codereview.chromium.org/195363002/diff/80001/content/browser/media/webrtc_getusermedia_browsertest.cc#newcode351 content/browser/media/webrtc_getusermedia_browsertest.cc:351: ...
6 years, 9 months ago (2014-03-12 19:55:47 UTC) #2
mcasas
perkj@ PTAL. https://codereview.chromium.org/195363002/diff/80001/content/browser/media/webrtc_getusermedia_browsertest.cc File content/browser/media/webrtc_getusermedia_browsertest.cc (right): https://codereview.chromium.org/195363002/diff/80001/content/browser/media/webrtc_getusermedia_browsertest.cc#newcode339 content/browser/media/webrtc_getusermedia_browsertest.cc:339: ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); On 2014/03/12 19:55:48, perkj wrote: > ...
6 years, 9 months ago (2014-03-13 08:04:56 UTC) #3
perkj_chrome
Looks good. https://codereview.chromium.org/195363002/diff/140001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/195363002/diff/140001/content/renderer/media/media_stream_video_capturer_source.cc#newcode172 content/renderer/media/media_stream_video_capturer_source.cc:172: DCHECK(!source_formats_callback_.is_null()); That is not what I meant. ...
6 years, 9 months ago (2014-03-13 08:38:02 UTC) #4
mcasas
perkj@ PTAL https://codereview.chromium.org/195363002/diff/140001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/195363002/diff/140001/content/renderer/media/media_stream_video_capturer_source.cc#newcode172 content/renderer/media/media_stream_video_capturer_source.cc:172: DCHECK(!source_formats_callback_.is_null()); On 2014/03/13 08:38:03, perkj wrote: > ...
6 years, 9 months ago (2014-03-13 09:01:22 UTC) #5
mcasas
perkj@, tommi@ PTAL.
6 years, 9 months ago (2014-03-13 16:14:10 UTC) #6
tommi (sloooow) - chröme
https://codereview.chromium.org/195363002/diff/160001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/195363002/diff/160001/content/renderer/media/media_stream_video_capturer_source.cc#newcode23 content/renderer/media/media_stream_video_capturer_source.cc:23: {1920, 1080, 30}, nit: can you un-indent these by ...
6 years, 9 months ago (2014-03-13 17:19:37 UTC) #7
mcasas
tommi@, perkj@ PTAL. https://codereview.chromium.org/195363002/diff/160001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/195363002/diff/160001/content/renderer/media/media_stream_video_capturer_source.cc#newcode23 content/renderer/media/media_stream_video_capturer_source.cc:23: {1920, 1080, 30}, On 2014/03/13 17:19:38, ...
6 years, 9 months ago (2014-03-14 08:06:38 UTC) #8
perkj_chrome
I am not sure I understand the cl description in the following paragraphs? Are you ...
6 years, 9 months ago (2014-03-14 14:29:32 UTC) #9
mcasas
perkj@ PTAL. Tried my best to rephrase the CL description, please check it out as ...
6 years, 9 months ago (2014-03-16 10:18:02 UTC) #10
perkj_chrome
lgtm with a nit. https://codereview.chromium.org/195363002/diff/200001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/195363002/diff/200001/content/renderer/media/media_stream_video_capturer_source.cc#newcode175 content/renderer/media/media_stream_video_capturer_source.cc:175: // If there are no ...
6 years, 9 months ago (2014-03-17 11:05:39 UTC) #11
tommi (sloooow) - chröme
https://codereview.chromium.org/195363002/diff/200001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/195363002/diff/200001/content/renderer/media/media_stream_video_capturer_source.cc#newcode185 content/renderer/media/media_stream_video_capturer_source.cc:185: if (!source_formats_callback_.is_null()) if we get here and source_formats_callback_ is ...
6 years, 9 months ago (2014-03-17 11:56:22 UTC) #12
mcasas
tommi@ PTAL. https://codereview.chromium.org/195363002/diff/200001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/195363002/diff/200001/content/renderer/media/media_stream_video_capturer_source.cc#newcode175 content/renderer/media/media_stream_video_capturer_source.cc:175: // If there are no formats in ...
6 years, 9 months ago (2014-03-17 15:12:58 UTC) #13
mcasas
ping?
6 years, 9 months ago (2014-03-19 13:43:53 UTC) #14
tommi (sloooow) - chröme
lgtm
6 years, 9 months ago (2014-03-19 13:54:41 UTC) #15
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 8 months ago (2014-03-31 10:06:57 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/195363002/320001
6 years, 8 months ago (2014-03-31 10:07:06 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 11:22:01 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-03-31 11:22:01 UTC) #19
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 8 months ago (2014-03-31 15:26:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/195363002/340001
6 years, 8 months ago (2014-03-31 15:26:30 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 16:48:37 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-03-31 16:48:37 UTC) #23
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 8 months ago (2014-04-01 08:37:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/195363002/340001
6 years, 8 months ago (2014-04-01 08:37:52 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 10:04:36 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-01 10:04:37 UTC) #27
mcasas
On 2014/04/01 10:04:37, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 8 months ago (2014-04-03 12:37:00 UTC) #28
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 8 months ago (2014-04-04 07:18:59 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/195363002/340001
6 years, 8 months ago (2014-04-04 07:19:11 UTC) #30
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 09:27:10 UTC) #31
Message was sent while issue was closed.
Change committed as 261717

Powered by Google App Engine
This is Rietveld 408576698