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

Issue 24079003: Add VideoCaptureDevice::GetDeviceSupportedFormats to interface + implementation for Linux and Fake (Closed)

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

Description

Add VideoCaptureDevice::GetDeviceSupportedFormats to interface + implementation for Linux and Fake BUG=289494 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228904

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed parameter device_name from GetDeviceSupportedFormats. Added explanation to VCD interface. #

Total comments: 47

Patch Set 3 : Addressed ncarter@, scherkus@ and perkj@ comments #

Patch Set 4 : Removed inexistent video_capture_device_dummy; also removed from media.gyp targets. #

Total comments: 12

Patch Set 5 : Addressed perkj@'s comments. #

Patch Set 6 : Rebase. #

Total comments: 13

Patch Set 7 : Manual rebase + changed GetDeviceSupportedFormats to static, to be called right after GetDeviceName… #

Total comments: 10

Patch Set 8 : Addressed perkj@ comments #

Total comments: 6

Patch Set 9 : More perkj@'s comments addressed. #

Total comments: 1

Patch Set 10 : Disconnected v4l2->pixel format translation for those formats _not_ supported (== revert). #

Total comments: 2

Patch Set 11 : perkj@'s nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -3 lines) Patch
M media/video/capture/android/video_capture_device_android.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M media/video/capture/fake_video_capture_device.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/capture/fake_video_capture_device.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M media/video/capture/linux/video_capture_device_linux.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +77 lines, -2 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M media/video/capture/video_capture_device.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -0 lines 0 comments Download
M media/video/capture/video_capture_types.h View 1 2 3 4 5 6 7 8 2 chunks +5 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 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
mcasas
Hi perkj@ - following our split of crrev.com/16841011 - could you PTAL? thanks!
7 years, 3 months ago (2013-09-11 14:45:06 UTC) #1
mcasas
hi scherkus@, could you PTAL? In particular to video_capture_device_linux.{h,cc}.
7 years, 3 months ago (2013-09-11 17:06:36 UTC) #2
scherkus (not reviewing)
https://codereview.chromium.org/24079003/diff/1/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/24079003/diff/1/media/video/capture/video_capture_device.h#newcode226 media/video/capture/video_capture_device.h:226: // driver, for a particular video capture device identified ...
7 years, 3 months ago (2013-09-11 17:30:46 UTC) #3
mcasas
On 2013/09/11 17:30:46, scherkus wrote: > https://codereview.chromium.org/24079003/diff/1/media/video/capture/video_capture_device.h > File media/video/capture/video_capture_device.h (right): > > https://codereview.chromium.org/24079003/diff/1/media/video/capture/video_capture_device.h#newcode226 > ...
7 years, 3 months ago (2013-09-11 19:56:44 UTC) #4
scherkus (not reviewing)
On 2013/09/11 19:56:44, miguelao wrote: > On 2013/09/11 17:30:46, scherkus wrote: > > > https://codereview.chromium.org/24079003/diff/1/media/video/capture/video_capture_device.h ...
7 years, 3 months ago (2013-09-11 20:26:31 UTC) #5
mcasas
Removed parameter "device_name" from GetDeviceSupportedFormats, following scherkus@ review, and added info on VCD interface.
7 years, 3 months ago (2013-09-12 09:59:48 UTC) #6
scherkus (not reviewing)
https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h#newcode230 media/video/capture/video_capture_device.h:230: virtual void GetDeviceSupportedFormats( how do I know if this ...
7 years, 3 months ago (2013-09-12 17:29:09 UTC) #7
scherkus (not reviewing)
https://codereview.chromium.org/24079003/diff/15001/media/video/capture/linux/video_capture_device_linux.cc File media/video/capture/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/24079003/diff/15001/media/video/capture/linux/video_capture_device_linux.cc#newcode257 media/video/capture/linux/video_capture_device_linux.cc:257: remove blank line https://codereview.chromium.org/24079003/diff/15001/media/video/capture/linux/video_capture_device_linux.cc#newcode260 media/video/capture/linux/video_capture_device_linux.cc:260: int fd = open(device_name_.id().c_str(), ...
7 years, 3 months ago (2013-09-12 17:55:59 UTC) #8
perkj_chrome
https://codereview.chromium.org/24079003/diff/15001/media/video/capture/linux/video_capture_device_linux.cc File media/video/capture/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/24079003/diff/15001/media/video/capture/linux/video_capture_device_linux.cc#newcode256 media/video/capture/linux/video_capture_device_linux.cc:256: VideoCaptureFormats* capture_formats) { To be threadsafe - all v4l2 ...
7 years, 3 months ago (2013-09-13 10:33:05 UTC) #9
ncarter (slow)
https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_types.h File media/video/capture/video_capture_types.h (right): https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_types.h#newcode82 media/video/capture/video_capture_types.h:82: } // namespace media On 2013/09/13 10:33:05, perkj wrote: ...
7 years, 3 months ago (2013-09-13 19:02:18 UTC) #10
ncarter (slow)
https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h#newcode227 media/video/capture/video_capture_device.h:227: // after the device being opened with Allocate(), and ...
7 years, 3 months ago (2013-09-13 19:21:08 UTC) #11
perkj_chrome
On 2013/09/13 19:21:08, ncarter wrote: > https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h > File media/video/capture/video_capture_device.h (right): > > https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h#newcode227 > ...
7 years, 3 months ago (2013-09-16 08:48:09 UTC) #12
ncarter (slow)
https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h#newcode229 media/video/capture/video_capture_device.h:229: // supported formats limited etc. The current contract of ...
7 years, 3 months ago (2013-09-16 16:20:02 UTC) #13
ncarter (slow)
On 2013/09/16 08:48:09, perkj wrote: > On 2013/09/13 19:21:08, ncarter wrote: > > > https://codereview.chromium.org/24079003/diff/15001/media/video/capture/video_capture_device.h ...
7 years, 3 months ago (2013-09-16 16:29:33 UTC) #14
mcasas
Hi perkj@ scherkus@ ncarter@, first apologies for the long delay, I have been rethinking a ...
7 years, 3 months ago (2013-09-24 15:02:26 UTC) #15
perkj_chrome
Hej Some more comments. Main thing is the callback- you can not use the EventHandler ...
7 years, 2 months ago (2013-09-25 07:58:41 UTC) #16
mcasas
Hi perkj@, addressed smaller things and then some slightly larger changes: - Changed the parameter ...
7 years, 2 months ago (2013-10-02 08:13:23 UTC) #17
ncarter (slow)
Regarding the patch overall, it's tough to decide whether this is the right interface because ...
7 years, 2 months ago (2013-10-02 22:15:14 UTC) #18
perkj_chrome
Nick is right- we should figure out how this will be used. The reason that ...
7 years, 2 months ago (2013-10-03 08:05:45 UTC) #19
mcasas
@nick let me complement what perkj@ is saying The requester of the device capabilities(a.k.a caps) ...
7 years, 2 months ago (2013-10-04 10:29:42 UTC) #20
mcasas
Comments addressed. Next patch coming soon, got a bit stuck in the rebase though. https://codereview.chromium.org/24079003/diff/66001/media/video/capture/linux/video_capture_device_linux.cc ...
7 years, 2 months ago (2013-10-04 11:59:57 UTC) #21
mcasas
Ok, after a lenghty conversation with perkj@, this is the new mechanisms :) VideoCaptureManager will ...
7 years, 2 months ago (2013-10-04 13:05:54 UTC) #22
mcasas
perkj@, ncarter@, PTAL!
7 years, 2 months ago (2013-10-11 09:37:10 UTC) #23
perkj_chrome
This I think make sense. But I would prefer to filter the result of GetCaptureCapabilites ...
7 years, 2 months ago (2013-10-13 12:12:48 UTC) #24
mcasas
Hi perkj@, PTAL. A general comment is that IMHO the GetDeviceCapabilities should reply a unfiltered ...
7 years, 2 months ago (2013-10-14 08:24:46 UTC) #25
perkj_chrome
ok - I think we should land this and hook it up to JS and ...
7 years, 2 months ago (2013-10-15 08:42:54 UTC) #26
mcasas
hi perkj@ could you PTAL? Thanks! ncarter@ seems like the CL is getting more stable ...
7 years, 2 months ago (2013-10-15 11:32:09 UTC) #27
perkj_chrome
Sorry - I missed the existence of GetListOfUsableFourCCs and how it is used previously. https://codereview.chromium.org/24079003/diff/97001/media/video/capture/linux/video_capture_device_linux.cc ...
7 years, 2 months ago (2013-10-15 13:04:12 UTC) #28
mcasas
perkj@: reverted changes in V4l2ColorToVideoCaptureColorFormat() (except debug output).
7 years, 2 months ago (2013-10-15 13:41:43 UTC) #29
perkj_chrome
lgtm if the below is addressed https://codereview.chromium.org/24079003/diff/98001/media/video/capture/linux/video_capture_device_linux.cc File media/video/capture/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/24079003/diff/98001/media/video/capture/linux/video_capture_device_linux.cc#newcode73 media/video/capture/linux/video_capture_device_linux.cc:73: DCHECK_NE(result, PIXEL_FORMAT_UNKNOWN) << ...
7 years, 2 months ago (2013-10-15 18:09:02 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/24079003/114001
7 years, 2 months ago (2013-10-16 09:58:31 UTC) #31
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 12:30:48 UTC) #32
Message was sent while issue was closed.
Change committed as 228904

Powered by Google App Engine
This is Rietveld 408576698