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

Issue 83633008: Reland: Reorganize media::VideoCapture* types (Closed)

Created:
7 years, 1 month ago by sheu
Modified:
7 years 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, miu+watch_chromium.org
Visibility:
Public.

Description

Reland: Reorganize media::VideoCapture* types Relanding after revert in r236927. Original commit message below: The purpose of this CL is to clean up the distinction between VideoCaptureFormat (which identifies the captured type of a frame), VideoCaptureParams (which identifies the requested format of a capture), and VideoCaptureCapability (which identifies the capture capabilities of a device). Notably: * VideoCaptureFormat::frame_size_type -> VideoCaptureParams::allow_resolution_change, as variable resolution capability is a per-session, not a per-frame property. * VideoCaptureCapability::color -> VideoCaptureFormat::pixel_format, as frame color format is a per-frame property. * As VideoCaptureParams holds a VideoCaptureFormat member, capture requests are able now to request a particular capture color format. BUG=269312 TEST=local build, run unittests, chrome on CrOS snow, desktop Linux TBR=ncarter@chromium.org,jiayl@chromium.org,yzshen@chromium.org,wjia@chromium.org,jschuh@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236979

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+744 lines, -811 lines) Patch
M content/browser/renderer_host/media/desktop_capture_device.h View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device.cc View 9 chunks +29 lines, -36 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_unittest.cc View 8 chunks +41 lines, -39 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 12 chunks +32 lines, -34 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 10 chunks +56 lines, -48 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 chunk +20 lines, -13 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 4 chunks +12 lines, -14 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 3 chunks +18 lines, -25 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 chunk +9 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.h View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 6 chunks +18 lines, -24 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 10 chunks +50 lines, -65 lines 0 comments Download
M content/common/media/media_param_traits.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M content/common/media/video_capture_messages.h View 2 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/media/rtc_video_capture_delegate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/rtc_video_capturer.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 7 chunks +21 lines, -23 lines 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/media/video_capture_message_filter_unittest.cc View 2 chunks +9 lines, -8 lines 0 comments Download
M content/renderer/pepper/pepper_video_capture_host.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M media/video/capture/android/video_capture_device_android.h View 2 chunks +3 lines, -4 lines 0 comments Download
M media/video/capture/android/video_capture_device_android.cc View 4 chunks +24 lines, -30 lines 0 comments Download
M media/video/capture/fake_video_capture_device.h View 2 chunks +7 lines, -7 lines 0 comments Download
M media/video/capture/fake_video_capture_device.cc View 7 chunks +49 lines, -64 lines 0 comments Download
M media/video/capture/linux/video_capture_device_linux.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/video/capture/linux/video_capture_device_linux.cc View 7 chunks +20 lines, -18 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.h View 3 chunks +5 lines, -5 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 8 chunks +32 lines, -34 lines 0 comments Download
M media/video/capture/mac/video_capture_device_qtkit_mac.mm View 2 chunks +5 lines, -6 lines 0 comments Download
M media/video/capture/video_capture_device.h View 3 chunks +6 lines, -7 lines 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 18 chunks +86 lines, -96 lines 0 comments Download
M media/video/capture/video_capture_proxy.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/video/capture/video_capture_types.h View 3 chunks +22 lines, -22 lines 0 comments Download
M media/video/capture/video_capture_types.cc View 1 chunk +16 lines, -32 lines 0 comments Download
M media/video/capture/win/capability_list_win.h View 3 chunks +6 lines, -3 lines 0 comments Download
M media/video/capture/win/capability_list_win.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M media/video/capture/win/sink_filter_win.h View 1 chunk +3 lines, -4 lines 0 comments Download
M media/video/capture/win/sink_filter_win.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M media/video/capture/win/sink_input_pin_win.h View 2 chunks +4 lines, -4 lines 0 comments Download
M media/video/capture/win/sink_input_pin_win.cc View 5 chunks +27 lines, -33 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.h View 2 chunks +4 lines, -4 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.cc View 6 chunks +13 lines, -17 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.h View 2 chunks +4 lines, -4 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 9 chunks +34 lines, -32 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/83633008/1
7 years, 1 month ago (2013-11-23 09:50:08 UTC) #1
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=194382
7 years, 1 month ago (2013-11-23 11:48:47 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/83633008/1
7 years, 1 month ago (2013-11-23 16:22:41 UTC) #3
commit-bot: I haz the power
Change committed as 236979
7 years, 1 month ago (2013-11-23 21:11:47 UTC) #4
mcasas
On 2013/11/23 21:11:47, I haz the power (commit-bot) wrote: > Change committed as 236979 Haven't ...
7 years ago (2013-11-26 15:05:21 UTC) #5
Ami GONE FROM WEBRTC_CHROMIUM
On Tue, Nov 26, 2013 at 7:05 AM, <mcasas@chromium.org> wrote: > On 2013/11/23 21:11:47, I ...
7 years ago (2013-11-26 18:56:01 UTC) #6
mcasas
On 2013/11/26 18:56:01, fischman1 wrote: > On Tue, Nov 26, 2013 at 7:05 AM, <mailto:mcasas@chromium.org> ...
7 years ago (2013-11-26 20:47:57 UTC) #7
Ami GONE FROM WEBRTC_CHROMIUM
7 years ago (2013-11-26 21:23:28 UTC) #8
gfx::Rect lets you specify x/y in addition to width/height (i.e a region of
interest).
If there was a base::Rect then using that would be fine by me, but as it is
depending on ui/gfx from media doesn't seem problematic to me. See
media/DEPS's mention of ui and media.gyp for other ways in which the
dependency manifests.

-a


On Tue, Nov 26, 2013 at 12:47 PM, <mcasas@chromium.org> wrote:

> On 2013/11/26 18:56:01, fischman1 wrote:
>
>  On Tue, Nov 26, 2013 at 7:05 AM, <mailto:mcasas@chromium.org> wrote:
>>
>
>  > On 2013/11/23 21:11:47, I haz the power (commit-bot) wrote:
>> >
>> >> Change committed as 236979
>> >
>> > Haven't we been here before? :)
>> >
>>
>
>  I don't know what this is referring to, but...
>>
>
>  What's the rationale for using gfx::Size, a UI namespace data structure,
>> in
>> > media/video/capture?
>> >
>>
>
>  Passing width,height pairs of args around is more error-prone and less
>> wieldy than passing gfx::Size's around.
>> Since the latter also includes a convenient ToString() and is no more
>> expensive than two ints it seems like a win.
>> What problem do you see here?
>>
>
> The origin of gfx::Size, more specifically the UI. And a bit its semantics:
> I use a "size" to specify a capture format, when I mean a "rectangle", or
> a "resolution" or a "WxH"... Shouldn't it be coming from sth like
> base::Rectangle? Or media::Rectangle? With a ROI inside etc?
>
>  https://codereview.chromium.org/83633008/
>> >
>>
>
>  To unsubscribe from this group and stop receiving emails from it, send an
>>
> email
>
>> to mailto:chromium-reviews+unsubscribe@chromium.org.
>>
>
>
>
> https://codereview.chromium.org/83633008/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698