display: Add color Metadata
- Add color aspects and HDR10 related static metadata which will be used in the existing metadata structure. - Clients can use COLOR_METADATA to update the CSC information - UPDATE_COLOR_SPACE is legacy and will be used when COLOR_METADATA is not set. - Update gralloc to return color space when set from COLOR_METADATA - Gaurd the usage with USE_COLOR_METADATA for cobalt. Change-Id: I460accf6cd2bb7a305c7e93284955e566a5b7532 Crs-fixed: 1074172
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
8b3dddc082
commit
b2771bff77
@@ -95,6 +95,11 @@ int setMetaData(private_handle_t *handle, DispParamType paramType,
|
||||
case SET_VT_TIMESTAMP:
|
||||
data->vtTimeStamp = *((uint64_t *)param);
|
||||
break;
|
||||
#ifdef USE_COLOR_METADATA
|
||||
case COLOR_METADATA:
|
||||
data->color = *((ColorMetaData *)param);
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
ALOGE("Unknown paramType %d", paramType);
|
||||
break;
|
||||
@@ -196,6 +201,11 @@ int getMetaData(private_handle_t *handle, DispFetchParamType paramType,
|
||||
case GET_VT_TIMESTAMP:
|
||||
*((uint64_t *)param) = data->vtTimeStamp;
|
||||
break;
|
||||
#ifdef USE_COLOR_METADATA
|
||||
case GET_COLOR_METADATA:
|
||||
*((ColorMetaData *)param) = data->color;
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
ALOGE("Unknown paramType %d", paramType);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user