display: Add support for Venus color format for newer platforms

Change-Id: I4c9a327bd30d1321e1f8383ffc1ca978efc8e9b9

Conflicts:

	liboverlay/overlayUtils.h
	libqdutils/gpuformats.h
	libqdutils/qcom_ui.cpp
This commit is contained in:
Sushil Chauhan
2012-08-22 17:13:32 -07:00
parent bd6eea2dc4
commit c5e61488bf
4 changed files with 15 additions and 1 deletions

View File

@@ -235,6 +235,11 @@ size_t getBufferSizeAndDimensions(int width, int height, int format,
alignedh = height;
size = ALIGN(alignedw * alignedh * 2, 4096);
break;
case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS:
size = alignedw*alignedh +
(ALIGN(alignedw/2, 32) * (alignedh/2))*2;
size = ALIGN(size, 4096);
break;
default:
ALOGE("unrecognized pixel format: 0x%x", format);
return -EINVAL;