Go to file
Dan Stoza 68efa84e7e GLConsumer: Fix crop math
When we have excess pixels that need to be removed from (for example)
the left and right sides, we currently do something like:

  left += excess / 2;
  right -= excess / 2;

If excess is odd, however, this removes 1 too few pixels since the odd
pixel gets rounded down twice. This changes the math to effectively:

  left += excess / 2;
  right -= (excess - excess / 2);

Which removes the correct total number of pixels.

Bug: 19611086
Change-Id: I8d1ad9fe7ba67c149794c148663d12acbccccef0
(cherry picked from commit ec4cb38750)
2015-06-11 10:20:23 -07:00
build Increase growth limit from 64m to 80m for 1024mb hdpi tablet 2014-12-11 13:40:37 -08:00
cmds Call selinux_status_open() prior to use of selinux_status_updated(). 2015-06-03 09:27:08 -04:00
data/etc Revert "Camera: Add XML entries and files for new system features" 2014-12-03 11:13:06 -08:00
docs framework/native/docs: remove doc footer for jd output 2015-05-27 10:13:35 -07:00
include libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
libs GLConsumer: Fix crop math 2015-06-11 10:20:23 -07:00
opengl Check that width and height parameters are small. 2015-06-01 11:12:28 -07:00
services SF: Swap w/h when capturing rotated screenshots 2015-06-10 10:33:21 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE resolved conflicts for merge of adee6b35 to honeycomb-plus-aosp 2011-01-17 14:17:12 -08:00