libgralloc: Import header for Venus buffer size calculation
Import the common header file with Venus alignment requirements to calculate venus buffer size. Change-Id: I86cba91de8f7a3845a4592243b4f21e7cda03315
This commit is contained in:
@@ -236,9 +236,7 @@ size_t getBufferSizeAndDimensions(int width, int height, int format,
|
||||
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);
|
||||
size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height);
|
||||
break;
|
||||
default:
|
||||
ALOGE("unrecognized pixel format: 0x%x", format);
|
||||
|
||||
Reference in New Issue
Block a user