Home
last modified time | relevance | path

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

12

/hardware/qcom/display/msm8909/sdm/libs/core/
Ddisplay_base.h94 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr);
95 virtual DisplayError SetColorMode(const std::string &color_mode);
97 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.cpp735 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument
745 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr()
747 DLOGE("Failed: Mode %s without attribute", color_mode.c_str()); in GetColorModeAttr()
755 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
762 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode()
763 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode()
772 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode()
781 error = SetColorModeInternal(color_mode); in SetColorMode()
787 current_color_mode_ = color_mode; in SetColorMode()
796 error = SetColorModeInternal(color_mode); in SetColorMode()
[all …]
/hardware/qcom/display/msm8909w_3100/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);
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.cpp713 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument
723 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr()
725 DLOGE("Failed: Mode %s without attribute", color_mode.c_str()); in GetColorModeAttr()
733 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
740 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode()
741 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode()
750 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode()
759 error = SetColorModeInternal(color_mode); in SetColorMode()
765 current_color_mode_ = color_mode; in SetColorMode()
774 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.cpp733 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument
743 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr()
745 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr()
753 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
760 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode()
761 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode()
770 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode()
779 error = SetColorModeInternal(color_mode); in SetColorMode()
785 current_color_mode_ = color_mode; in SetColorMode()
794 error = SetColorModeInternal(color_mode); in SetColorMode()
[all …]
/hardware/qcom/sdm845/display/sdm/libs/core/
Ddisplay_base.h94 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr);
95 virtual DisplayError SetColorMode(const std::string &color_mode);
98 virtual DisplayError GetDefaultColorMode(std::string *color_mode);
139 DisplayError SetColorModeInternal(const std::string &color_mode);
142 bool IsSupportColorModeAttribute(const std::string &color_mode);
Ddisplay_base.cpp783 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument
793 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr()
795 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr()
803 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
810 error = SetColorModeInternal(color_mode); in SetColorMode()
816 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode()
817 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode()
823 current_color_mode_ = color_mode; in SetColorMode()
831 DisplayError DisplayBase::SetColorModeInternal(const std::string &color_mode) { in SetColorModeInternal() argument
832 DLOGV_IF(kTagQDCM, "Color Mode = %s", color_mode.c_str()); in SetColorModeInternal()
[all …]
/hardware/qcom/sm8150/display/sdm/libs/core/
Ddisplay_pluggable.cpp399 DisplayError DisplayPluggable::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
400 auto current_color_attr_ = color_mode_attr_map_.find(color_mode); in SetColorMode()
402 DLOGE("Failed to get the color mode = %s", color_mode.c_str()); in SetColorMode()
424 current_color_mode_ = color_mode; in SetColorMode()
456 DisplayError DisplayPluggable::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument
462 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr()
464 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr()
Ddisplay_base.h109 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr);
110 virtual DisplayError SetColorMode(const std::string &color_mode);
114 virtual DisplayError GetDefaultColorMode(std::string *color_mode);
177 DisplayError SetColorModeInternal(const std::string &color_mode);
180 bool IsSupportColorModeAttribute(const std::string &color_mode);
Ddisplay_pluggable.h52 virtual DisplayError SetColorMode(const std::string &color_mode);
55 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr);
/hardware/qcom/display/msm8909/sdm/include/core/
Ddisplay_interface.h532 virtual DisplayError GetColorModeAttr(const std::string &color_mode,
541 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
558 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
/hardware/qcom/display/msm8909w_3100/sdm/include/core/
Ddisplay_interface.h540 virtual DisplayError GetColorModeAttr(const std::string &color_mode,
549 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
566 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
/hardware/qcom/display/msm8998/sdm/include/core/
Ddisplay_interface.h532 virtual DisplayError GetColorModeAttr(const std::string &color_mode,
541 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
565 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
/hardware/qcom/sdm845/display/sdm/include/core/
Ddisplay_interface.h540 virtual DisplayError GetColorModeAttr(const std::string &color_mode,
549 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
573 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
/hardware/qcom/sm8150/display/sdm/include/core/
Ddisplay_interface.h601 virtual DisplayError GetColorModeAttr(const std::string &color_mode,
610 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
644 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_display.cpp262 const std::string &color_mode, in PopulateTransform() argument
266 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
270 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_VALUE_INVERSE] = color_mode; in PopulateTransform()
272 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_GRAYSCALE] = color_mode; in PopulateTransform()
274 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA] = color_mode; in PopulateTransform()
276 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA] = color_mode; in PopulateTransform()
278 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA] = color_mode; in PopulateTransform()
280 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
285 android_color_mode_t color_mode = HAL_COLOR_MODE_NATIVE; in ApplyDefaultColorMode() local
287 color_mode = color_mode_transform_map_.begin()->first; in ApplyDefaultColorMode()
[all …]
/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 …]
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_display.cpp273 const std::string &color_mode, in PopulateTransform() argument
277 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
281 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_VALUE_INVERSE] = color_mode; in PopulateTransform()
283 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_GRAYSCALE] = color_mode; in PopulateTransform()
285 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA] = color_mode; in PopulateTransform()
287 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA] = color_mode; in PopulateTransform()
289 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA] = color_mode; in PopulateTransform()
291 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform()
296 android_color_mode_t color_mode = HAL_COLOR_MODE_NATIVE; in ApplyDefaultColorMode() local
298 color_mode = color_mode_transform_map_.begin()->first; in ApplyDefaultColorMode()
[all …]
/hardware/qcom/display/msm8996/sdm/include/core/
Ddisplay_interface.h501 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
/hardware/qcom/display/msm8909/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/msm8909w_3100/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()
/hardware/qcom/display/msm8996/sdm/libs/core/
Ddisplay_base.h98 virtual DisplayError SetColorMode(const std::string &color_mode);
Ddisplay_base.cpp765 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument
771 DLOGV_IF(kTagQDCM, "Color Mode = %s", color_mode.c_str()); in SetColorMode()
773 ColorModeMap::iterator it = color_mode_map_.find(color_mode); in SetColorMode()
775 DLOGE("Failed: Unknown Mode : %s", color_mode.c_str()); in SetColorMode()

12