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

Issue 22876027: Consolidate duplicated frame / capability structures in video_capture_types.h (Closed)

Created:
7 years, 4 months ago by mcasas
Modified:
7 years, 3 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

Consolidate duplicated frame / capability structures in video capture types Consolidate common parts of VideoCaptureCapability and VideoCaptureParams into VideoCaptureFormat, renamed frames_per_second->frame_rate for all; VideoCaptureParams and VideoCaptureCapability changed to classes, since they have constructors. Format extracted from VideoCaptureCapability and renamed to VideoPixelFormat (otherwise simply called "media::Format" ). Individual color "formats" renamed like kI420 -> PIXEL_FORMAT_I420, etc. VideoCaptureFormat::isValid and VideoCaptureParams::isValid implementation. BUG=260572 BUG=260220 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221945

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed scherkus@'s comments. #

Patch Set 3 : Something went wrong while uploading, trying again. #

Patch Set 4 : Something went wrong while uploading, trying again. #

Patch Set 5 : Win MF VideoPixelFormat rename #

Total comments: 12

Patch Set 6 : Cleaned up video_capture_types.* following last round of comments #

Patch Set 7 : Rebased: changed media::VideoCaptureCapability::kI420 -> media::PIXEL_FORMAT_I420 etc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -177 lines) Patch
M content/browser/renderer_host/media/desktop_capture_device.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_unittest.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 3 4 5 6 6 chunks +20 lines, -19 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_event_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 1 9 chunks +9 lines, -9 lines 0 comments Download
M content/common/media/media_param_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/media/media_param_traits.cc View 3 chunks +3 lines, -13 lines 0 comments Download
M content/renderer/media/rtc_video_capturer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/video_capture_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/video_capture_message_filter_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/pepper/pepper_video_capture_host.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
media/media.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
media/video/capture/android/video_capture_device_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/fake_video_capture_device.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download
M media/video/capture/linux/video_capture_device_linux.cc View 1 1 chunk +6 lines, -6 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/mac/video_capture_device_qtkit_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 1 8 chunks +10 lines, -10 lines 0 comments Download
M media/video/capture/video_capture_types.h View 1 2 3 4 5 1 chunk +41 lines, -48 lines 0 comments Download
A media/video/capture/video_capture_types.cc View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
M media/video/capture/win/sink_input_pin_win.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.cc View 1 2 3 4 1 chunk +9 lines, -9 lines 0 comments Download
media/video/capture/win/video_capture_device_win.cc View 1 3 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
mcasas
Hi tommi, could you please have a go at this clean-up CL ? Most of ...
7 years, 4 months ago (2013-08-23 15:09:50 UTC) #1
mcasas
Hi miu, tommi suggested you could take a look at media/video/capture/video_capture_types.h and review the clean ...
7 years, 4 months ago (2013-08-23 15:18:02 UTC) #2
miu
On 2013/08/23 15:18:02, miguelao wrote: > Hi miu, tommi suggested you could take a look ...
7 years, 3 months ago (2013-08-26 21:48:42 UTC) #3
mcasas
friendly ping ncarter :)
7 years, 3 months ago (2013-09-03 08:38:38 UTC) #4
mcasas
On 2013/09/03 08:38:38, miguelao wrote: > friendly ping ncarter :) ping ping
7 years, 3 months ago (2013-09-04 14:54:16 UTC) #5
ncarter (slow)
lgtm https://codereview.chromium.org/22876027/diff/1/media/video/capture/video_capture_types.h File media/video/capture/video_capture_types.h (right): https://codereview.chromium.org/22876027/diff/1/media/video/capture/video_capture_types.h#newcode23 media/video/capture/video_capture_types.h:23: enum VideoPixelFormat { I really like this type ...
7 years, 3 months ago (2013-09-04 18:05:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/22876027/1
7 years, 3 months ago (2013-09-04 20:45:21 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=23762
7 years, 3 months ago (2013-09-04 21:01:38 UTC) #8
tommi (sloooow) - chröme
lgtm
7 years, 3 months ago (2013-09-05 08:14:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/22876027/1
7 years, 3 months ago (2013-09-05 08:15:21 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=23900
7 years, 3 months ago (2013-09-05 08:26:35 UTC) #11
mcasas
@dmichael: could you please review and LGTM content/renderer/pepper/pepper_video_capture_host.cc ? (Some minor renaming). @scherkus: could you ...
7 years, 3 months ago (2013-09-05 08:36:57 UTC) #12
dmichael (off chromium)
lgtm. You can TBR me on stuff this simple in the future, if you prefer.
7 years, 3 months ago (2013-09-05 15:09:34 UTC) #13
scherkus (not reviewing)
https://codereview.chromium.org/22876027/diff/1/media/media.gyp File media/media.gyp (right): https://codereview.chromium.org/22876027/diff/1/media/media.gyp#newcode404 media/media.gyp:404: 'video/capture/video_capture_types.cc', should be in alphabetical order (.cc < .h) ...
7 years, 3 months ago (2013-09-06 00:55:00 UTC) #14
mcasas
Addressed scherkus@'s comments, thanks for the quick reply! https://codereview.chromium.org/22876027/diff/1/media/media.gyp File media/media.gyp (right): https://codereview.chromium.org/22876027/diff/1/media/media.gyp#newcode404 media/media.gyp:404: 'video/capture/video_capture_types.cc', ...
7 years, 3 months ago (2013-09-06 09:13:13 UTC) #15
scherkus (not reviewing)
few more nits also please update your CL description to reflect the enum change https://codereview.chromium.org/22876027/diff/35001/media/video/capture/video_capture_types.cc ...
7 years, 3 months ago (2013-09-06 18:04:51 UTC) #16
mcasas
Updated CL description with colour space conversion change. Done adding scherkus@'s comments, cheers! https://codereview.chromium.org/22876027/diff/35001/media/video/capture/video_capture_types.cc File ...
7 years, 3 months ago (2013-09-06 18:27:58 UTC) #17
scherkus (not reviewing)
lgtm
7 years, 3 months ago (2013-09-06 21:45:21 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/22876027/84001
7 years, 3 months ago (2013-09-07 18:28:29 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-08 03:38:00 UTC) #20
Message was sent while issue was closed.
Change committed as 221945

Powered by Google App Engine
This is Rietveld 408576698