gralloc: Add missing format HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS

Add missing HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in YUV format checks.
Move IsYUVFormat utility to grallocutils.

Change-Id: I8103ba2aead0d00aede21a0b43a59af741b2df95
CRs-fixed: 2166182
This commit is contained in:
Saurabh Shah
2018-01-04 15:38:01 -08:00
parent ca16bf2767
commit dbb572e6fb
3 changed files with 29 additions and 27 deletions

View File

@@ -60,6 +60,7 @@ inline Type1 ALIGN(Type1 x, Type2 align) {
return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1));
}
bool IsYuvFormat(const private_handle_t *hnd);
bool IsCompressedRGBFormat(int format);
bool IsUncompressedRGBFormat(int format);
uint32_t GetBppForUncompressedRGB(int format);