display: Add support to HAL_PIXEL_FORMAT_NV21_ZSL format
Add Support to HAL_PIXEL_FORMAT_NV21_ZSL format in gralloc for camera capture usecase. This support is required because, CPP module requires 64 byte aligned width and height to resolve corruption in bottom/left edge of the landscape/portrait buffer. Change-Id: Id3e0e5f3d695d5111f3469f78a1d52aad9bea4f4 (cherry picked from commit 512ee1dcef6fa47dfdcf3990fea29bd85f967f02)
This commit is contained in:
committed by
Arun Kumar K.R
parent
62e1d731cd
commit
ff511027c4
@@ -267,7 +267,10 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
|
||||
//the usage bits, gralloc assigns a format.
|
||||
if(format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
|
||||
if(usage & GRALLOC_USAGE_HW_VIDEO_ENCODER)
|
||||
grallocFormat = HAL_PIXEL_FORMAT_NV12_ENCODEABLE; //NV12
|
||||
grallocFormat = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS;
|
||||
else if((usage & GRALLOC_USAGE_HW_CAMERA_MASK)
|
||||
== GRALLOC_USAGE_HW_CAMERA_ZSL)
|
||||
grallocFormat = HAL_PIXEL_FORMAT_NV21_ZSL; //NV21 ZSL
|
||||
else if(usage & GRALLOC_USAGE_HW_CAMERA_READ)
|
||||
grallocFormat = HAL_PIXEL_FORMAT_YCrCb_420_SP; //NV21
|
||||
else if(usage & GRALLOC_USAGE_HW_CAMERA_WRITE)
|
||||
|
||||
Reference in New Issue
Block a user