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

Issue 2354923002: Update FPS selection logic in VideoCaptureCamera to select a wider FPS range. (Closed)

Created:
4 years, 3 months ago by sakal-chromium
Modified:
3 years, 11 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, tommi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update FPS selection logic in VideoCaptureCamera to select a wider FPS range. The code fixes the bug referenced by the bug field. If requested fps is 15 and the camera supports fps ranges 0 - 30, 10 - 20, 14 - 16 and 15 - 15. Previously, we would choose 15 - 15 fps. This is bad because it doesn't leave the camera room to adjust based on the lighting conditions. Heuristic copied from WebRTC chooses the 10 - 20 fps range instead. BUG=630266 Review-Url: https://codereview.chromium.org/2354923002 Cr-Commit-Position: refs/heads/master@{#441755} Committed: https://chromium.googlesource.com/chromium/src/+/072357660ad4bc52bcfb4c3c4bb4ad71730b4367

Patch Set 1 : Fix bug. #

Patch Set 2 : Fix a typo in a comment. #

Patch Set 3 : Make things public. #

Patch Set 4 : Update comment to reference file instead of cs. #

Total comments: 9

Patch Set 5 : Changes according to comments. #

Total comments: 1

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase. #

Patch Set 8 : Use WebRTC getClosestSupportedFramerateRange. #

Patch Set 9 : Revert back to copying the code. #

Total comments: 6

Patch Set 10 : Match WebRTC behavior exactly. #

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -22 lines) Patch
M media/capture/video/android/java/src/org/chromium/media/VideoCapture.java View 1 2 3 4 5 6 7 8 9 10 4 chunks +63 lines, -1 line 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -21 lines 0 comments Download

Messages

Total messages: 68 (32 generated)
sakal-chromium
PTAL
4 years, 3 months ago (2016-09-21 08:16:51 UTC) #3
magjed_chromium
lgtm
4 years, 3 months ago (2016-09-21 11:00:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354923002/60001
4 years, 3 months ago (2016-09-21 14:04:15 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/263838)
4 years, 3 months ago (2016-09-21 14:12:56 UTC) #14
sakal-chromium
PTAL
4 years, 3 months ago (2016-09-23 13:13:30 UTC) #20
sakal-chromium
Ping mcasas.
4 years, 2 months ago (2016-09-29 10:59:35 UTC) #21
mcasas
Looking good. https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java File media/capture/video/android/java/src/org/chromium/media/VideoCapture.java (right): https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java#newcode175 media/capture/video/android/java/src/org/chromium/media/VideoCapture.java:175: // Progressive penalty if the upper bound ...
4 years, 2 months ago (2016-09-29 21:24:36 UTC) #22
sakal-chromium
https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java File media/capture/video/android/java/src/org/chromium/media/VideoCapture.java (right): https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java#newcode175 media/capture/video/android/java/src/org/chromium/media/VideoCapture.java:175: // Progressive penalty if the upper bound is further ...
4 years, 2 months ago (2016-09-30 13:19:33 UTC) #23
magjed_chromium
Miguel - ping.
4 years, 2 months ago (2016-10-15 00:48:08 UTC) #24
mcasas
https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java File media/capture/video/android/java/src/org/chromium/media/VideoCapture.java (right): https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java#newcode196 media/capture/video/android/java/src/org/chromium/media/VideoCapture.java:196: MIN_FPS_LOW_VALUE_WEIGHT, MIN_FPS_HIGH_VALUE_WEIGHT); On 2016/09/30 13:19:32, sakal-chromium wrote: > On ...
4 years, 2 months ago (2016-10-18 17:30:44 UTC) #25
sakal-chromium
On 2016/10/18 17:30:44, mcasas wrote: > https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java > File media/capture/video/android/java/src/org/chromium/media/VideoCapture.java > (right): > > https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java#newcode196 ...
4 years, 2 months ago (2016-10-19 08:00:46 UTC) #26
mcasas
On 2016/10/19 08:00:46, sakal-chromium wrote: > On 2016/10/18 17:30:44, mcasas wrote: > > > https://codereview.chromium.org/2354923002/diff/100001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java ...
4 years, 2 months ago (2016-10-19 16:28:21 UTC) #27
mcasas
On 2016/10/19 16:28:21, mcasas wrote: > On 2016/10/19 08:00:46, sakal-chromium wrote: > > On 2016/10/18 ...
4 years, 1 month ago (2016-10-24 17:10:50 UTC) #28
sakal-chromium
I had to do a change in WebRTC to allow the Java classes to be ...
4 years, 1 month ago (2016-10-25 11:28:27 UTC) #31
mcasas
On 2016/10/25 11:28:27, sakal-chromium wrote: > I had to do a change in WebRTC to ...
4 years, 1 month ago (2016-10-25 17:47:31 UTC) #34
mcasas
boliu@ for approval of the apk size increase mentioned in #31
4 years, 1 month ago (2016-10-25 17:47:50 UTC) #36
boliu
I'm not really responsible for sizes +kerz/picksi? Also I don't really understand what this feature ...
4 years, 1 month ago (2016-10-25 18:00:15 UTC) #38
sakal-chromium
CameraEnumerationAndroid is pretty much self-contained. I would prefer not to modify WebRTC targets if possible. ...
4 years, 1 month ago (2016-10-26 11:33:06 UTC) #39
boliu
also maybe you can figure out how to use proguard to strip out the unnecessary ...
4 years, 1 month ago (2016-10-26 16:12:44 UTC) #40
sakal-chromium
The code fixes the bug referenced by the bug field: https://bugs.chromium.org/p/chromium/issues/detail?id=630266 Basically, if we request ...
4 years, 1 month ago (2016-10-27 07:40:44 UTC) #41
boliu
On 2016/10/27 07:40:44, sakal-chromium wrote: > The code fixes the bug referenced by the bug ...
4 years, 1 month ago (2016-10-27 14:36:10 UTC) #42
sakal-chromium
I was looking at the size of out/AndroidRelease/apks/ChromePublic.apk. Is that already run though proguard? If ...
4 years, 1 month ago (2016-10-27 15:18:47 UTC) #43
boliu
On 2016/10/27 15:18:47, sakal-chromium wrote: > I was looking at the size of out/AndroidRelease/apks/ChromePublic.apk. Is ...
4 years, 1 month ago (2016-10-27 16:27:31 UTC) #46
agrieve
On 2016/10/27 16:27:31, boliu wrote: > On 2016/10/27 15:18:47, sakal-chromium wrote: > > I was ...
4 years, 1 month ago (2016-10-27 17:11:38 UTC) #47
sakal-chromium
We had an offline discussion with tommi and magjed about this issue. We reached a ...
4 years, 1 month ago (2016-11-02 12:02:57 UTC) #48
mcasas
Please format the CL description to 80 chars wide. https://codereview.chromium.org/2354923002/diff/200001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java File media/capture/video/android/java/src/org/chromium/media/VideoCapture.java (right): https://codereview.chromium.org/2354923002/diff/200001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java#newcode168 media/capture/video/android/java/src/org/chromium/media/VideoCapture.java:168: ...
4 years, 1 month ago (2016-11-02 15:21:40 UTC) #49
magjed_chromium
https://codereview.chromium.org/2354923002/diff/200001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java File media/capture/video/android/java/src/org/chromium/media/VideoCapture.java (right): https://codereview.chromium.org/2354923002/diff/200001/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java#newcode168 media/capture/video/android/java/src/org/chromium/media/VideoCapture.java:168: * Assumes that all framerate values are multiplied by ...
4 years, 1 month ago (2016-11-02 15:50:00 UTC) #53
mcasas
Also -- I'm not sure I understand why can we not depend on WebRtc Java. ...
4 years, 1 month ago (2016-11-02 16:06:21 UTC) #54
mcasas
On 2016/11/02 16:06:21, mcasas wrote: > Also -- I'm not sure I understand why can ...
4 years, 1 month ago (2016-11-02 16:19:40 UTC) #55
magjed_chromium
On 2016/11/02 16:06:21, mcasas wrote: > Also -- I'm not sure I understand why can ...
4 years, 1 month ago (2016-11-02 16:29:35 UTC) #57
tommi (sloooow) - chröme
On 2016/11/02 16:29:35, magjed_chromium wrote: > On 2016/11/02 16:06:21, mcasas wrote: > > Also -- ...
4 years ago (2016-12-01 10:05:47 UTC) #59
sakal-chromium
On 2016/12/01 10:05:47, tommi (chrömium) wrote: > On 2016/11/02 16:29:35, magjed_chromium wrote: > > On ...
4 years ago (2016-12-06 16:08:11 UTC) #60
mcasas
On 2016/12/06 16:08:11, sakal-chromium wrote: > On 2016/12/01 10:05:47, tommi (chrömium) wrote: > > On ...
4 years ago (2016-12-19 20:32:31 UTC) #61
tommi (sloooow) - chröme
On 2016/12/19 20:32:31, mcasas (OOO till Jan-3) wrote: > On 2016/12/06 16:08:11, sakal-chromium wrote: > ...
3 years, 11 months ago (2017-01-03 13:29:45 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354923002/240001
3 years, 11 months ago (2017-01-05 20:02:59 UTC) #65
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 21:20:39 UTC) #68
Message was sent while issue was closed.
Committed patchset #11 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/072357660ad4bc52bcfb4c3c4bb4...

Powered by Google App Engine
This is Rietveld 408576698