Go to file
Dan Stoza ec4cb38750 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
2015-06-10 10:24:51 -07:00
build Increase growth limit from 64m to 80m for 1024mb hdpi tablet 2014-12-11 13:40:37 -08:00
cmds Merge "Incorporate network diagnostics during a bugreport" into mnc-dev 2015-06-09 23:24:54 +00:00
data/etc Adding a configuration file to support hifi sensors feature. 2015-04-10 11:26:02 -07:00
include Merge "media: change parameters for OMX_EventOutputRendered" into mnc-dev 2015-06-09 00:04:30 +00:00
libs GLConsumer: Fix crop math 2015-06-10 10:24:51 -07:00
opengl Check that width and height parameters are small. 2015-05-29 10:54:30 -07:00
services libgui/SurfaceFlinger: Add getConsumerName 2015-06-08 09:40:49 -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