Merge "gralloc: Fix RAW16 stride"

This commit is contained in:
Linux Build Service Account
2015-05-08 14:19:10 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -174,9 +174,11 @@ void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
{
case HAL_PIXEL_FORMAT_YCrCb_420_SP:
case HAL_PIXEL_FORMAT_YCrCb_420_SP_ADRENO:
case HAL_PIXEL_FORMAT_RAW_SENSOR:
aligned_w = ALIGN(width, 32);
break;
case HAL_PIXEL_FORMAT_RAW_SENSOR:
aligned_w = ALIGN(width, 16);
break;
case HAL_PIXEL_FORMAT_RAW10:
aligned_w = ALIGN(width * 10 /8, 16);
break;