/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
D | hwc_layers.cpp | 36 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 …]
|
D | hwc_display_virtual.cpp | 218 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()
|
D | hwc_tonemapper.cpp | 152 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()
|
D | hwc_layers.h | 42 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/ |
D | hwc_layers.cpp | 36 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 …]
|
D | hwc_tonemapper.cpp | 152 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()
|
D | hwc_layers.h | 42 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/ |
D | hwc_layers.cpp | 33 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 …]
|
D | hwc_display_virtual.cpp | 226 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()
|
D | hwc_layers.h | 48 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/ |
D | hwc_layers.cpp | 36 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 …]
|
D | hwc_tonemapper.cpp | 152 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/ |
D | display_base.cpp | 652 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/ |
D | hwc_tonemapper.cpp | 104 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()
|
D | hwc_display.cpp | 1255 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/ |
D | hwc_tonemapper.cpp | 104 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()
|
D | hwc_display.cpp | 1255 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/ |
D | display_base.cpp | 700 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/ |
D | Android.mk | 10 LOCAL_COPY_HEADERS := color_metadata.h \
|
/hardware/qcom/sdm845/display/include/ |
D | Android.mk | 10 LOCAL_COPY_HEADERS := color_metadata.h \
|
/hardware/qcom/display/msm8998/include/ |
D | Android.mk | 7 LOCAL_COPY_HEADERS := color_metadata.h
|
/hardware/qcom/display/msm8909w_3100/include/ |
D | Android.mk | 6 LOCAL_COPY_HEADERS := color_metadata.h
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_buf_mgr.cpp | 630 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/ |
D | hw_tv_drm.cpp | 220 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/ |
D | layer_buffer.h | 234 ColorMetaData color_metadata = {}; //!< CSC + Range + Transfer + Matrix + HDR Info member
|