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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user