35 #ifndef __HAL_DISPLAY_COLOR_H__ 36 #define __HAL_DISPLAY_COLOR_H__ 38 #include "hal_platform.h" 40 #ifdef HAL_DISPLAY_COLOR_MODULE_ENABLED 119 HAL_DISPLAY_COLOR_STATUS_INITIALIZATION_FAILED = -3,
120 HAL_DISPLAY_COLOR_STATUS_INVALID_PARAMETER = -2,
121 HAL_DISPLAY_COLOR_STATUS_POWER_FAILED = -1,
122 HAL_DISPLAY_COLOR_STATUS_OK = 0,
123 } hal_display_color_status_t;
127 HAL_DISPLAY_COLOR_MODE_DEFAULT = 0,
128 HAL_DISPLAY_COLOR_MODE_CAMERA,
129 HAL_DISPLAY_COLOR_MODE_NUM
130 } hal_display_color_mode_t;
145 } hal_display_color_custom_table_t;
153 } hal_display_color_sharpness_t;
162 } hal_display_color_contrast_t;
169 } hal_display_color_saturation_t;
173 hal_display_color_mode_t mode;
174 hal_display_color_sharpness_t sharpness;
175 hal_display_color_contrast_t contrast;
176 hal_display_color_saturation_t saturation;
177 uint8_t bypass_config;
178 } hal_display_color_parameter_t;
191 hal_display_color_status_t hal_display_color_init(
void);
202 hal_display_color_status_t hal_display_color_set_color_engine(
bool enable);
213 hal_display_color_status_t hal_display_color_get_color_engine(
bool *enable);
224 hal_display_color_status_t hal_display_color_set_sharpness(hal_display_color_sharpness_t *sharpness);
235 hal_display_color_status_t hal_display_color_set_contrast(hal_display_color_contrast_t *contrast);
246 hal_display_color_status_t hal_display_color_set_saturation(hal_display_color_saturation_t *saturation);
257 hal_display_color_status_t hal_display_color_set_bypass(
bool bypass);
268 hal_display_color_status_t hal_display_color_set_mode(hal_display_color_mode_t mode);
279 hal_display_color_status_t hal_display_color_apply_color(uint32_t src_width);