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

Issue 8400084: refactor video capture in renderer process (Closed)

Created:
9 years, 1 month ago by wjia(left Chromium)
Modified:
9 years, 1 month ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

refactor video capture in renderer process This patch is a split of http://codereview.chromium.org/8304017/ . 1. Since all clients of VideoCaptureImpl accept pixel frames with different dimension than requested, there is no need to distinguish them. Remove "resolution_fixed" in media::VideoCapture::VideoCaptureCapability. 2. VideoCaptureImpl is now taking the largested dimension from client requests and send it to browser process. 3. remove some unnecessary code in VideoCaptureModuleImpl since webrtc ViE can handle different frame size. BUG=none TEST=trybots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108126

Patch Set 1 #

Total comments: 12

Patch Set 2 : code review #

Patch Set 3 : remove test code #

Total comments: 5

Patch Set 4 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -252 lines) Patch
M content/renderer/media/capture_video_decoder_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_impl.h View 1 3 chunks +5 lines, -25 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 2 3 16 chunks +106 lines, -145 lines 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 1 4 chunks +66 lines, -69 lines 0 comments Download
M content/renderer/media/video_capture_module_impl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_module_impl.cc View 1 4 chunks +0 lines, -8 lines 0 comments Download
M media/video/capture/video_capture.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_video_capture_impl.cc View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
wjia(left Chromium)
Per and Magnus, please review all. For owners: Ami, please review content/renderer/media and media/ part. ...
9 years, 1 month ago (2011-10-29 16:04:05 UTC) #1
scherkus (not reviewing)
http://codereview.chromium.org/8400084/diff/1/content/renderer/media/video_capture_impl.cc File content/renderer/media/video_capture_impl.cc (right): http://codereview.chromium.org/8400084/diff/1/content/renderer/media/video_capture_impl.cc#newcode24 content/renderer/media/video_capture_impl.cc:24: base::SharedMemory* dib; scoped_ptr? http://codereview.chromium.org/8400084/diff/1/content/renderer/media/video_capture_impl.cc#newcode181 content/renderer/media/video_capture_impl.cc:181: DLOG(INFO) << "StartCapture: Got ...
9 years, 1 month ago (2011-10-31 03:35:05 UTC) #2
Ami GONE FROM CHROMIUM
scherkus is on it, so removing myself from reviewers list. Let me know if you ...
9 years, 1 month ago (2011-10-31 16:05:46 UTC) #3
wjia(left Chromium)
Thanks, Andrew! New patch has been updated. http://codereview.chromium.org/8400084/diff/1/content/renderer/media/video_capture_impl.cc File content/renderer/media/video_capture_impl.cc (right): http://codereview.chromium.org/8400084/diff/1/content/renderer/media/video_capture_impl.cc#newcode24 content/renderer/media/video_capture_impl.cc:24: base::SharedMemory* dib; ...
9 years, 1 month ago (2011-10-31 18:06:13 UTC) #4
viettrungluu
LGTM on the change to ppb_video_capture_impl.cc; let me know if you want me to look ...
9 years, 1 month ago (2011-10-31 23:06:33 UTC) #5
scherkus (not reviewing)
LGTM w/ nit This is just my $0.02, but I have a quick comment on ...
9 years, 1 month ago (2011-11-01 02:26:56 UTC) #6
perkj_chrome
lgtm. But consider to rewrite video_capture_impl to use just one map and store the state ...
9 years, 1 month ago (2011-11-01 09:45:44 UTC) #7
wjia(left Chromium)
9 years, 1 month ago (2011-11-01 17:24:29 UTC) #8
I will try to use "renderers" in browser process side. Those "renderers" are
represented by hosts.

http://codereview.chromium.org/8400084/diff/7003/content/renderer/media/video...
File content/renderer/media/video_capture_impl.cc (right):

http://codereview.chromium.org/8400084/diff/7003/content/renderer/media/video...
content/renderer/media/video_capture_impl.cc:26: // Number of clients which hold
this dib.
On 2011/11/01 02:26:56, scherkus wrote:
> dib -> DIB

Done.

http://codereview.chromium.org/8400084/diff/7003/content/renderer/media/video...
content/renderer/media/video_capture_impl.cc:320: case
media::VideoCapture::kPaused:
On 2011/11/01 09:45:44, perkj wrote:
> What is paused? Ever used?

"Paused" is a state similar to "started" except that camera (or controller)
doesn't send out any frame data to a specific client, while the session is still
alive. This can be used as power improvement since it requires less computing
and memory access. This is useful for cases where camera is accessed in multiple
tabs and only one tab is visible. The background tabs can be put in "paused"
state.

Right now, it's not used.

Powered by Google App Engine
This is Rietveld 408576698