get rid of HAL pixelformats 5551 and 4444

This changes removes the use of 5551 and 4444 pixel formats
as its not supported anymore

Change-Id: I817510c3c7c0c3d95924c2ffc79e5727a6d6c48f
(cherry picked from commit 1fbd4a9662b07d53a3f220c91b3e85ca571a4938)
This commit is contained in:
Mathias Agopian
2013-09-17 10:37:22 -07:00
committed by Arun Kumar K.R
parent bc8bee68dc
commit e4001e736d
5 changed files with 1 additions and 21 deletions

View File

@@ -121,8 +121,6 @@ int AdrenoMemInfo::getStride(int width, int format)
bpp = 3;
break;
case HAL_PIXEL_FORMAT_RGB_565:
case HAL_PIXEL_FORMAT_RGBA_5551:
case HAL_PIXEL_FORMAT_RGBA_4444:
bpp = 2;
break;
default: break;
@@ -285,8 +283,6 @@ size_t getBufferSizeAndDimensions(int width, int height, int format,
size = alignedw * alignedh * 3;
break;
case HAL_PIXEL_FORMAT_RGB_565:
case HAL_PIXEL_FORMAT_RGBA_5551:
case HAL_PIXEL_FORMAT_RGBA_4444:
case HAL_PIXEL_FORMAT_RAW_SENSOR:
size = alignedw * alignedh * 2;
break;