use HAL_PIXEL_FORMAT_YCrCb_420_SP for HAL_PIXEL_FORMAT_YCbCr_420_888
authorJiyu Yang <jiyu.yang@amlogic.com>
Fri, 14 Jul 2017 05:38:47 +0000 (13:38 +0800)
committerJiyu Yang <jiyu.yang@amlogic.com>
Fri, 14 Jul 2017 05:53:12 +0000 (13:53 +0800)
PD#146294

use HAL_PIXEL_FORMAT_YCrCb_420_SP for HAL_PIXEL_FORMAT_YCbCr_420_888
(Android flexible YCbCr 4:2:0 formats)

This format allows platforms to use an efficient YCbCr/YCrCb 4:2:0
buffer layout, while still describing the general format in a
layout-independent manner.  While called YCbCr, it can be
used to describe formats with either chromatic ordering, as well as
whole planar or semiplanar layouts.

struct android_ycbcr (below) is the the struct used to describe it.

This format must be accepted by the gralloc module when
USAGE_SW_WRITE_* or USAGE_SW_READ_* are set.

This format is locked for use by gralloc's (*lock_ycbcr) method, and
locking with the (*lock) method will return an error.

When used with ANativeWindow, the dataSpace field describes the color
space of the buffer.

Change-Id: I1167c091350f17f8f6e4477841d0ab485e57954d
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
lib/t82x_ion/libGLES_mali_default_8a_32-n-r16p0.so
lib/t82x_ion/libGLES_mali_default_8a_64-n-r16p0.so
lib/t83x_ion/libGLES_mali_default_8a_32-n-r16p0.so
lib/t83x_ion/libGLES_mali_default_8a_64-n-r16p0.so

index 13d6546dcee7dff426dbf90fad86493731e0097e..d39af2cbcd741b6776937242a93b6eafeef107b7 100644 (file)
Binary files a/lib/t82x_ion/libGLES_mali_default_8a_32-n-r16p0.so and b/lib/t82x_ion/libGLES_mali_default_8a_32-n-r16p0.so differ
index 540d57017021258b053694161dbbaade197e66bd..7ad3cb694c4d8df7a734e157cdd0f36818eee922 100644 (file)
Binary files a/lib/t82x_ion/libGLES_mali_default_8a_64-n-r16p0.so and b/lib/t82x_ion/libGLES_mali_default_8a_64-n-r16p0.so differ
index f438c1a8d150186d0cad5182fcf1ac7bce92690e..b649dbab5295e352b7f1efc04b1623fa51d90bba 100644 (file)
Binary files a/lib/t83x_ion/libGLES_mali_default_8a_32-n-r16p0.so and b/lib/t83x_ion/libGLES_mali_default_8a_32-n-r16p0.so differ
index 95bc3f36557bfbac7583c77f2ad77385b3d538a9..8246a84d2b0380a89796dc22b15a124565c03dce 100644 (file)
Binary files a/lib/t83x_ion/libGLES_mali_default_8a_64-n-r16p0.so and b/lib/t83x_ion/libGLES_mali_default_8a_64-n-r16p0.so differ