Home
last modified time | relevance | path

Searched refs:color_metadata (Results 1 – 25 of 67) sorted by relevance

123

/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_layers.cpp36 DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata) { in SetCSC() argument
38 color_metadata) != 0) { in SetCSC()
43 color_metadata->range = Range_Full; in SetCSC()
50 color_metadata->colorPrimaries = ColorPrimaries_BT601_6_525; in SetCSC()
53 color_metadata->colorPrimaries = ColorPrimaries_BT709_5; in SetCSC()
57 color_metadata->colorPrimaries = ColorPrimaries_BT2020; in SetCSC()
155 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata) { in GetSDMColorSpace() argument
157 valid = GetColorPrimary(dataspace, &(color_metadata->colorPrimaries)); in GetSDMColorSpace()
161 valid = GetTransfer(dataspace, &(color_metadata->transfer)); in GetSDMColorSpace()
165 GetRange(dataspace, &(color_metadata->range)); in GetSDMColorSpace()
[all …]
Dhwc_display_virtual.cpp218 ColorMetaData color_metadata = {}; in SetOutputBuffer() local
229 if (sdm::SetCSC(output_handle, &color_metadata) != kErrorNone) { in SetOutputBuffer()
258 output_buffer_->color_metadata = color_metadata; in SetOutputBuffer()
Dhwc_tonemapper.cpp152 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
153 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
164 (buffer.color_metadata.colorPrimaries == tone_map_config_.colorPrimaries) && in IsSameToneMapConfig()
165 (buffer.color_metadata.transfer == tone_map_config_.transfer) && in IsSameToneMapConfig()
Dhwc_layers.h42 DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata);
46 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata);
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_layers.cpp36 DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata) { in SetCSC() argument
38 color_metadata) != 0) { in SetCSC()
43 color_metadata->range = Range_Full; in SetCSC()
50 color_metadata->colorPrimaries = ColorPrimaries_BT601_6_525; in SetCSC()
53 color_metadata->colorPrimaries = ColorPrimaries_BT709_5; in SetCSC()
57 color_metadata->colorPrimaries = ColorPrimaries_BT2020; in SetCSC()
158 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata) { in GetSDMColorSpace() argument
160 valid = GetColorPrimary(dataspace, &(color_metadata->colorPrimaries)); in GetSDMColorSpace()
164 valid = GetTransfer(dataspace, &(color_metadata->transfer)); in GetSDMColorSpace()
168 GetRange(dataspace, &(color_metadata->range)); in GetSDMColorSpace()
[all …]
Dhwc_tonemapper.cpp152 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
153 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
164 (buffer.color_metadata.colorPrimaries == tone_map_config_.colorPrimaries) && in IsSameToneMapConfig()
165 (buffer.color_metadata.transfer == tone_map_config_.transfer) && in IsSameToneMapConfig()
Dhwc_layers.h42 DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata);
46 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata);
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_layers.cpp33 DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata) { in SetCSC() argument
35 color_metadata) != 0) { in SetCSC()
40 color_metadata->range = Range_Full; in SetCSC()
47 color_metadata->colorPrimaries = ColorPrimaries_BT601_6_525; in SetCSC()
50 color_metadata->colorPrimaries = ColorPrimaries_BT709_5; in SetCSC()
54 color_metadata->colorPrimaries = ColorPrimaries_BT2020; in SetCSC()
168 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata) { in GetSDMColorSpace() argument
170 valid = GetColorPrimary(dataspace, &(color_metadata->colorPrimaries)); in GetSDMColorSpace()
174 valid = GetTransfer(dataspace, &(color_metadata->transfer)); in GetSDMColorSpace()
178 GetRange(dataspace, &(color_metadata->range)); in GetSDMColorSpace()
[all …]
Dhwc_display_virtual.cpp226 ColorMetaData color_metadata = {}; in SetOutputBuffer() local
237 if (sdm::SetCSC(output_handle, &color_metadata) != kErrorNone) { in SetOutputBuffer()
266 output_buffer_->color_metadata = color_metadata; in SetOutputBuffer()
Dhwc_layers.h48 DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata);
52 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata);
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_layers.cpp36 DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata) { in SetCSC() argument
38 color_metadata) != 0) { in SetCSC()
43 color_metadata->range = Range_Full; in SetCSC()
50 color_metadata->colorPrimaries = ColorPrimaries_BT601_6_525; in SetCSC()
53 color_metadata->colorPrimaries = ColorPrimaries_BT709_5; in SetCSC()
57 color_metadata->colorPrimaries = ColorPrimaries_BT2020; in SetCSC()
570 if (sdm::SetCSC(pvt_handle, &layer_buffer->color_metadata) != kErrorNone) { in SetMetaData()
639 if (layer_->input_buffer.color_metadata.colorPrimaries <= ColorPrimaries_BT601_6_525 && in SupportLocalConversion()
721 layer_buffer->color_metadata.transfer = sdm_transfer; in SupportedDataspace()
722 layer_buffer->color_metadata.colorPrimaries = sdm_primaries; in SupportedDataspace()
[all …]
Dhwc_tonemapper.cpp152 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
153 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
164 (buffer.color_metadata.colorPrimaries == tone_map_config_.colorPrimaries) && in IsSameToneMapConfig()
165 (buffer.color_metadata.transfer == tone_map_config_.transfer) && in IsSameToneMapConfig()
/hardware/qcom/display/msm8909/sdm/libs/core/
Ddisplay_base.cpp652 ColorMetaData &color_metadata = hw_layer.input_buffer.color_metadata; in Dump() local
653 snprintf(color_primary, sizeof(color_primary), "%d", color_metadata.colorPrimaries); in Dump()
654 snprintf(range, sizeof(range), "%d", color_metadata.range); in Dump()
1453 const ColorMetaData &color_metadata) { in GetClientTargetSupport() argument
1460 } else if (color_metadata.transfer && color_metadata.colorPrimaries) { in GetClientTargetSupport()
1461 DisplayError error = ValidateDataspace(color_metadata); in GetClientTargetSupport()
1464 color_metadata.transfer, color_metadata.colorPrimaries); in GetClientTargetSupport()
1469 if (color_metadata.colorPrimaries == ColorPrimaries_BT2020) { in GetClientTargetSupport()
1470 DLOGW("Unsupported Color Primary = %d", color_metadata.colorPrimaries); in GetClientTargetSupport()
1509 DisplayError DisplayBase::ValidateDataspace(const ColorMetaData &color_metadata) { in ValidateDataspace() argument
[all …]
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dhwc_tonemapper.cpp104 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
105 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
116 (buffer.color_metadata.colorPrimaries == tone_map_config_.colorPrimaries) && in IsSameToneMapConfig()
117 (buffer.color_metadata.transfer == tone_map_config_.transfer) && in IsSameToneMapConfig()
Dhwc_display.cpp1255 DisplayError HWCDisplay::SetCSC(const MetaData_t *meta_data, ColorMetaData *color_metadata) { in SetCSC() argument
1258 *color_metadata = meta_data->color; in SetCSC()
1262 color_metadata->range = Range_Limited; in SetCSC()
1265 color_metadata->range = Range_Full; in SetCSC()
1272 color_metadata->colorPrimaries = ColorPrimaries_BT601_6_525; in SetCSC()
1275 color_metadata->colorPrimaries = ColorPrimaries_BT709_5; in SetCSC()
1279 color_metadata->colorPrimaries = ColorPrimaries_BT2020; in SetCSC()
1310 if (SetCSC(meta_data, &layer_buffer.color_metadata) != kErrorNone) { in SetMetaData()
1314 bool hdr_layer = layer_buffer.color_metadata.colorPrimaries == ColorPrimaries_BT2020 && in SetMetaData()
1315 (layer_buffer.color_metadata.transfer == Transfer_SMPTE_ST2084 || in SetMetaData()
[all …]
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dhwc_tonemapper.cpp104 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
105 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
116 (buffer.color_metadata.colorPrimaries == tone_map_config_.colorPrimaries) && in IsSameToneMapConfig()
117 (buffer.color_metadata.transfer == tone_map_config_.transfer) && in IsSameToneMapConfig()
Dhwc_display.cpp1255 DisplayError HWCDisplay::SetCSC(const MetaData_t *meta_data, ColorMetaData *color_metadata) { in SetCSC() argument
1258 *color_metadata = meta_data->color; in SetCSC()
1262 color_metadata->range = Range_Limited; in SetCSC()
1265 color_metadata->range = Range_Full; in SetCSC()
1272 color_metadata->colorPrimaries = ColorPrimaries_BT601_6_525; in SetCSC()
1275 color_metadata->colorPrimaries = ColorPrimaries_BT709_5; in SetCSC()
1279 color_metadata->colorPrimaries = ColorPrimaries_BT2020; in SetCSC()
1310 if (SetCSC(meta_data, &layer_buffer.color_metadata) != kErrorNone) { in SetMetaData()
1314 bool hdr_layer = layer_buffer.color_metadata.colorPrimaries == ColorPrimaries_BT2020 && in SetMetaData()
1315 (layer_buffer.color_metadata.transfer == Transfer_SMPTE_ST2084 || in SetMetaData()
[all …]
/hardware/qcom/sdm845/display/sdm/libs/core/
Ddisplay_base.cpp700 ColorMetaData &color_metadata = hw_layer.input_buffer.color_metadata; in Dump() local
701 snprintf(color_primary, sizeof(color_primary), "%d", color_metadata.colorPrimaries); in Dump()
702 snprintf(range, sizeof(range), "%d", color_metadata.range); in Dump()
1416 const ColorMetaData &color_metadata) { in GetClientTargetSupport() argument
1423 } else if (color_metadata.transfer && color_metadata.colorPrimaries) { in GetClientTargetSupport()
1424 DisplayError error = ValidateDataspace(color_metadata); in GetClientTargetSupport()
1427 color_metadata.transfer, color_metadata.colorPrimaries); in GetClientTargetSupport()
1432 if (color_metadata.colorPrimaries == ColorPrimaries_BT2020) { in GetClientTargetSupport()
1433 DLOGW("Unsupported Color Primary = %d", color_metadata.colorPrimaries); in GetClientTargetSupport()
1472 DisplayError DisplayBase::ValidateDataspace(const ColorMetaData &color_metadata) { in ValidateDataspace() argument
[all …]
/hardware/qcom/display/msm8909/include/
DAndroid.mk10 LOCAL_COPY_HEADERS := color_metadata.h \
/hardware/qcom/sdm845/display/include/
DAndroid.mk10 LOCAL_COPY_HEADERS := color_metadata.h \
/hardware/qcom/display/msm8998/include/
DAndroid.mk7 LOCAL_COPY_HEADERS := color_metadata.h
/hardware/qcom/display/msm8909w_3100/include/
DAndroid.mk6 LOCAL_COPY_HEADERS := color_metadata.h
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_buf_mgr.cpp630 ColorMetaData color_metadata; in Perform() local
631 if (getMetaData(hnd, GET_COLOR_METADATA, &color_metadata) == 0) { in Perform()
632 switch (color_metadata.colorPrimaries) { in Perform()
638 *color_space = ((color_metadata.range) ? HAL_CSC_ITU_R_601_FR : HAL_CSC_ITU_R_601); in Perform()
641 *color_space = (color_metadata.range) ? HAL_CSC_ITU_R_2020_FR : HAL_CSC_ITU_R_2020; in Perform()
644 ALOGE("Unknown Color Space = %d", color_metadata.colorPrimaries); in Perform()
649 if (getMetaData(hnd, GET_COLOR_SPACE, &color_metadata) != 0) { in Perform()
/hardware/qcom/sdm845/display/sdm/libs/core/drm/
Dhw_tv_drm.cpp220 const MasteringDisplay &mastering_display = layer_buffer->color_metadata.masteringDisplayInfo; in UpdateHDRMetaData()
221 const ContentLightLevel &light_level = layer_buffer->color_metadata.contentLightLevel; in UpdateHDRMetaData()
229 int32_t eotf = GetEOTF(layer_buffer->color_metadata.transfer); in UpdateHDRMetaData()
/hardware/qcom/display/msm8909w_3100/sdm/include/core/
Dlayer_buffer.h234 ColorMetaData color_metadata = {}; //!< CSC + Range + Transfer + Matrix + HDR Info member

123