Home
last modified time | relevance | path

Searched refs:color_mode (Results 1 – 16 of 16) sorted by relevance

/hardware/qcom/display/sdm845/sdm/libs/core/
Ddisplay_base.h97 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr);
98 virtual DisplayError SetColorMode(const std::string &color_mode);
101 virtual DisplayError GetDefaultColorMode(std::string *color_mode);
136 DisplayError SetColorModeInternal(const std::string &color_mode);
139 DisplayError GetHdrColorMode(std::string *color_mode, bool *found_hdr);
140 bool IsSupportColorModeAttribute(const std::string &color_mode);
Ddisplay_base.cpp722 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument
732 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr()
734 DLOGE("Failed: Mode %s without attribute", color_mode.c_str()); in GetColorModeAttr()
742 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
749 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode()
750 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode()
759 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode()
768 error = SetColorModeInternal(color_mode); in SetColorMode()
774 current_color_mode_ = color_mode; in SetColorMode()
783 error = SetColorModeInternal(color_mode); in SetColorMode()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/
Ddisplay_base.h96 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr);
97 virtual DisplayError SetColorMode(const std::string &color_mode);
100 virtual DisplayError GetDefaultColorMode(std::string *color_mode);
135 DisplayError SetColorModeInternal(const std::string &color_mode);
138 DisplayError GetHdrColorMode(std::string *color_mode, bool *found_hdr);
139 bool IsSupportColorModeAttribute(const std::string &color_mode);
Ddisplay_base.cpp727 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument
737 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr()
739 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr()
747 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
754 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode()
755 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode()
764 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode()
773 error = SetColorModeInternal(color_mode); in SetColorMode()
779 current_color_mode_ = color_mode; in SetColorMode()
788 error = SetColorModeInternal(color_mode); in SetColorMode()
[all …]
/hardware/qcom/display/msm8998/sdm/include/core/
Ddisplay_interface.h531 virtual DisplayError GetColorModeAttr(const std::string &color_mode,
540 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
564 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
/hardware/qcom/display/sdm845/sdm/include/core/
Ddisplay_interface.h533 virtual DisplayError GetColorModeAttr(const std::string &color_mode,
542 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
566 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_display.cpp265 const std::string &color_mode, in PopulateTransform() argument
269 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
273 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_VALUE_INVERSE] = color_mode; in PopulateTransform()
275 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_GRAYSCALE] = color_mode; in PopulateTransform()
277 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA] = color_mode; in PopulateTransform()
279 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA] = color_mode; in PopulateTransform()
281 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA] = color_mode; in PopulateTransform()
283 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
288 android_color_mode_t color_mode = HAL_COLOR_MODE_NATIVE; in ApplyDefaultColorMode() local
290 color_mode = color_mode_transform_map_.begin()->first; in ApplyDefaultColorMode()
[all …]
Dhwc_display.h73 const std::string &color_mode, const std::string &color_transform);
/hardware/qcom/display/sdm845/sdm/libs/hwc2/
Dhwc_display.cpp256 const std::string &color_mode, in PopulateTransform() argument
260 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
264 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_VALUE_INVERSE] = color_mode; in PopulateTransform()
266 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_GRAYSCALE] = color_mode; in PopulateTransform()
268 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA] = color_mode; in PopulateTransform()
270 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA] = color_mode; in PopulateTransform()
272 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA] = color_mode; in PopulateTransform()
274 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
279 android_color_mode_t color_mode = HAL_COLOR_MODE_NATIVE; in ApplyDefaultColorMode() local
281 color_mode = color_mode_transform_map_.begin()->first; in ApplyDefaultColorMode()
[all …]
Dhwc_display.h73 const std::string &color_mode, const std::string &color_transform);
/hardware/qcom/display/sdm845/sdm/libs/hwc/
Dhwc_display.cpp69 int HWCColorMode::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
76 color_mode); in SetColorMode()
78 DLOGE("Invalid colorMode request: %s", color_mode.c_str()); in SetColorMode()
82 DisplayError error = display_intf_->SetColorMode(color_mode); in SetColorMode()
84 DLOGE("Failed to set color_mode = %s", color_mode.c_str()); in SetColorMode()
87 current_color_mode_ = color_mode; in SetColorMode()
Dhwc_display.h57 int SetColorMode(const std::string &color_mode);
/hardware/qcom/display/msm8996/sdm/include/core/
Ddisplay_interface.h500 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
/hardware/qcom/display/msm8996/sdm/libs/core/
Ddisplay_base.h97 virtual DisplayError SetColorMode(const std::string &color_mode);
Ddisplay_base.cpp764 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
770 DLOGV_IF(kTagQDCM, "Color Mode = %s", color_mode.c_str()); in SetColorMode()
772 ColorModeMap::iterator it = color_mode_map_.find(color_mode); in SetColorMode()
774 DLOGE("Failed: Unknown Mode : %s", color_mode.c_str()); in SetColorMode()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_display.h69 void PopulateTransform(const android_color_mode_t &mode, const std::string &color_mode);