Add support for *_FP16 pixel formats

Bug: 32984164
Test: compile
Change-Id: I0851c62f140801c6784fdb597b3d947402aa5876
This commit is contained in:
Romain Guy
2016-12-16 09:22:53 -08:00
parent 9a6b8bb95a
commit d0eb44c6da

View File

@@ -210,6 +210,9 @@ static int gralloc_alloc(alloc_device_t* dev,
int bytesPerPixel = 0;
switch (format) {
case HAL_PIXEL_FORMAT_RGBA_FP16:
bytesPerPixel = 8;
break;
case HAL_PIXEL_FORMAT_RGBA_8888:
case HAL_PIXEL_FORMAT_RGBX_8888:
case HAL_PIXEL_FORMAT_BGRA_8888: