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

Issue 10837225: chop the width/height to even number when incoming frame has odd number dimension. (Closed)

Created:
8 years, 4 months ago by wjia(left Chromium)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

chop the width/height to even number when incoming frame has odd number dimension. Some video capture device has odd number for width/height. Need to chop them to even number. To test handling of dimension, manually changed FakeVideoCaptureDevice to output odd number dimension in ARGB color space. The client of VideoCaptureController would receives odd number dimension and corresponding frames without crash. BUG=139004 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151753

Patch Set 1 #

Total comments: 4

Patch Set 2 : code review #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -12 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 7 chunks +33 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
wjia(left Chromium)
8 years, 4 months ago (2012-08-13 21:58:18 UTC) #1
perkj_chrome
Can you please add a simple unittest? Also - I think the clients should never ...
8 years, 4 months ago (2012-08-14 06:13:49 UTC) #2
mflodman_chromium_OOO
http://codereview.chromium.org/10837225/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): http://codereview.chromium.org/10837225/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode350 content/browser/renderer_host/media/video_capture_controller.cc:350: frame_info_= info; Do we know 'info' has odd number ...
8 years, 4 months ago (2012-08-14 08:41:54 UTC) #3
wjia(left Chromium)
http://codereview.chromium.org/10837225/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): http://codereview.chromium.org/10837225/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode350 content/browser/renderer_host/media/video_capture_controller.cc:350: frame_info_= info; On 2012/08/14 08:41:54, mflodman wrote: > Do ...
8 years, 4 months ago (2012-08-14 16:07:01 UTC) #4
perkj_chrome
lgtm if you test this and explain how to test this in the cl description. ...
8 years, 4 months ago (2012-08-15 14:10:53 UTC) #5
mflodman_chromium_OOO
After the fact LGTM, sorry I missed that yesterday...
8 years, 4 months ago (2012-08-16 07:28:04 UTC) #6
perkj_chrome
On Thu, Aug 16, 2012 at 9:28 AM, <mflodman@chromium.org> wrote: > After the fact LGTM, ...
8 years, 4 months ago (2012-08-16 07:40:06 UTC) #7
wjia(left Chromium)
8 years, 4 months ago (2012-08-16 16:36:34 UTC) #8
On 2012/08/16 07:40:06, perkj wrote:
> On Thu, Aug 16, 2012 at 9:28 AM, <mailto:mflodman@chromium.org> wrote:
> 
> > After the fact LGTM, sorry I missed that yesterday...
> >
> >
>
https://chromiumcodereview.**appspot.com/10837225/%3Chttps://chromiumcoderevi...>
> >
> 
> 
> So what happened to the test description?

Done.

Powered by Google App Engine
This is Rietveld 408576698