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

Issue 8511043: Correct some rounding errors introduced recently. (Closed)

Created:
9 years, 1 month ago by Chris Evans
Modified:
9 years, 1 month ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Correct some rounding errors introduced recently. BUG=101494 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109480

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M media/base/video_frame.cc View 3 chunks +4 lines, -4 lines 3 comments Download

Messages

Total messages: 6 (0 generated)
Chris Evans
9 years, 1 month ago (2011-11-10 03:11:01 UTC) #1
scherkus (not reviewing)
few sanity checking questions but LGTM http://codereview.chromium.org/8511043/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): http://codereview.chromium.org/8511043/diff/1/media/base/video_frame.cc#newcode121 media/base/video_frame.cc:121: size_t y_height = ...
9 years, 1 month ago (2011-11-10 04:09:41 UTC) #2
Chris Evans
http://codereview.chromium.org/8511043/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): http://codereview.chromium.org/8511043/diff/1/media/base/video_frame.cc#newcode198 media/base/video_frame.cc:198: return RoundUp(width_, 2) / 2; On 2011/11/10 04:09:41, scherkus ...
9 years, 1 month ago (2011-11-10 06:32:38 UTC) #3
Chris Evans
Unless there are any objections, I'll give this a whirl in the waterfall once the ...
9 years, 1 month ago (2011-11-10 19:09:23 UTC) #4
scherkus (not reviewing)
I really like your mental model of a 1x1 image. I'll look into getting some ...
9 years, 1 month ago (2011-11-10 19:11:06 UTC) #5
Chris Evans
9 years, 1 month ago (2011-11-10 19:15:22 UTC) #6
I think we rejected anything less that 2x2 in a recent CL. Perhaps that was
specialization of this generic fix? Or perhaps we have other issues with tiny
frames :) Hard to say, but I don't think frames < 2x2 will test much against the
current code.

On 2011/11/10 19:11:06, scherkus wrote:
> I really like your mental model of a 1x1 image.
> 
> I'll look into getting some unittests. We should be able to test and assert
> bytes allocated for a variety of edge-casey things like 1x1, 1x2, 2x1, and 2x2

Powered by Google App Engine
This is Rietveld 408576698