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

Issue 1008343006: Increase VIDIOC_REQBUFS count from 2 to 4 (Closed)

Created:
5 years, 9 months ago by Justin Chuang
Modified:
5 years, 9 months ago
Reviewers:
mcasas, Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Increase VIDIOC_REQBUFS count from 2 to 4 The original config of 2 buffers is too few. The kernel may be throttled with no buffer to queue when Chrome doesn't return the buffer in time. Reserve two more buffers gives Chrome extra 60ms to process incoming frame on a 30fps camera. BUG=chrome-os-partner:32570 TEST=Check 'uvcvideo: Dropping payload' messages in kernel logs Committed: https://crrev.com/133987bb651125718ea249ddb3215402e1aaa9e1 Cr-Commit-Position: refs/heads/master@{#321333}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : format comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M media/video/capture/linux/video_capture_device_linux.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
Justin Chuang
On 2015/03/18 07:38:38, Justin Chuang wrote: > mailto:jchuang@chromium.org changed reviewers: > + mailto:posciak@chromium.org Pawel, this ...
5 years, 9 months ago (2015-03-18 07:46:49 UTC) #2
Pawel Osciak
https://codereview.chromium.org/1008343006/diff/1/media/video/capture/linux/video_capture_device_linux.cc File media/video/capture/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/1008343006/diff/1/media/video/capture/linux/video_capture_device_linux.cc#newcode32 media/video/capture/linux/video_capture_device_linux.cc:32: const uint32 kMaxVideoBuffers = 4; s/kMaxVideoBuffers/kNumVideoBuffers/ https://codereview.chromium.org/1008343006/diff/1/media/video/capture/linux/video_capture_device_linux.cc#newcode472 media/video/capture/linux/video_capture_device_linux.cc:472: r_buffer.count ...
5 years, 9 months ago (2015-03-18 11:17:02 UTC) #3
Justin Chuang
https://codereview.chromium.org/1008343006/diff/1/media/video/capture/linux/video_capture_device_linux.cc File media/video/capture/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/1008343006/diff/1/media/video/capture/linux/video_capture_device_linux.cc#newcode472 media/video/capture/linux/video_capture_device_linux.cc:472: r_buffer.count = std::min(r_buffer.count, kMaxVideoBuffers); On 2015/03/18 11:17:02, Pawel Osciak ...
5 years, 9 months ago (2015-03-18 11:18:52 UTC) #4
Pawel Osciak
On 2015/03/18 11:18:52, Justin Chuang wrote: > https://codereview.chromium.org/1008343006/diff/1/media/video/capture/linux/video_capture_device_linux.cc > File media/video/capture/linux/video_capture_device_linux.cc (right): > > https://codereview.chromium.org/1008343006/diff/1/media/video/capture/linux/video_capture_device_linux.cc#newcode472 ...
5 years, 9 months ago (2015-03-18 11:24:34 UTC) #6
Justin Chuang
On 2015/03/18 11:24:34, Pawel Osciak wrote: > > I think we should remove it now. ...
5 years, 9 months ago (2015-03-18 16:13:20 UTC) #8
Pawel Osciak
On 2015/03/18 16:13:20, Justin Chuang wrote: > On 2015/03/18 11:24:34, Pawel Osciak wrote: > > ...
5 years, 9 months ago (2015-03-19 07:12:15 UTC) #9
Pawel Osciak
On 2015/03/18 16:13:20, Justin Chuang wrote: > On 2015/03/18 11:24:34, Pawel Osciak wrote: > > ...
5 years, 9 months ago (2015-03-19 07:12:16 UTC) #10
Pawel Osciak
lgtm
5 years, 9 months ago (2015-03-19 07:12:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1008343006/60001
5 years, 9 months ago (2015-03-19 09:55:28 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 9 months ago (2015-03-19 11:09:56 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 11:10:40 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/133987bb651125718ea249ddb3215402e1aaa9e1
Cr-Commit-Position: refs/heads/master@{#321333}

Powered by Google App Engine
This is Rietveld 408576698