hi_isp_cmos_lcac
说明
定义lcac的CMOS参数。
定义
typedef struct {
    hi_bool        enable;
    hi_op_mode     op_mode;
    hi_u16         var_thr;
    hi_u16         r_luma_thd[HI_ISP_LCAC_DET_NUM];
    hi_u16         g_luma_thd[HI_ISP_LCAC_DET_NUM];
    hi_u16         b_luma_thd[HI_ISP_LCAC_DET_NUM];
    hi_u16         y_luma_thd[HI_ISP_LCAC_DET_NUM];
    hi_s16         cbcr_ratio[HI_ISP_LCAC_DET_NUM];
    hi_u16         purple_det_range;
    hi_isp_cmos_lcac_manual  manual_attr;
    hi_isp_cmos_lcac_auto    auto_attr;
} hi_isp_cmos_lcac;
成员
成员名称  | 
描述  | 
|---|---|
enable  | 
enable紫边校正使能。 HI_FALSE:禁止; HI_TRUE:使能。  | 
op_mode  | 
紫边校正工作模式。  | 
var_thr  | 
var_threshold边缘检测阈值取值范围:[0, 4095]。  | 
r_luma_thd  | 
它分了3段,每一段的值表示高亮检测模块里面R分量阈值。实际中生效的值取决于purple_detect_range这个参数的大小。purple_detect_range越小,越倾向于r_detect_threshold第一段的值,purple_detect_range越大,越倾向于r_detect_threshold第3段的值。取值范围:[0, 4095]。 #define HI_ISP_LCAC_DET_NUM 3  | 
g_luma_thd  | 
它分了3段,每一段的值表示高亮检测模块里面G分量阈值。实际中生效的值取决于purple_detect_range这个参数的大小。purple_detect_range越小,越倾向于g_detect_threshold第一段的值,purple_detect_range越大,越倾向于g_detect_threshold第3段的值。 取值范围:[0, 4095]。  | 
b_luma_thd  | 
它分了3段,每一段的值表示高亮检测模块里面B分量阈值。实际中生效的值取决于purple_detect_range这个参数的大小。purple_detect_range越小,越倾向于b_detect_threshold第一段的值,purple_detect_range越大,越倾向于b_detect_threshold第3段的值。 取值范围:[0, 4095]。  | 
y_luma_thd  | 
它分了3段,每一段的值表示高亮检测模块里面Luma分量阈值。实际中生效的值取决于purple_detect_range这个参数的大小。purple_detect_range越小,越倾向于luma_detect_threshold第一段的值,purple_detect_range越大,越倾向于luma_detect_threshold第3段的值。 取值范围:[0, 4095]  | 
cbcr_ratio  | 
它分了3段,每一段的值表示紫色检测模块蓝色程度。实际中生效的值取决于purple_detect_range这个参数的大小。 purple_detect_range越小,越倾向于cb_cr_ratio第一段的值,purple_detect_range越大,越倾向于cb_cr_ratio第3段的值。 取值范围:[-2048, 2047]。  | 
purple_det_range  | 
紫色检测的范围,该值控制的是r_detect_threshold,g_detect_threshold,b_detect_threshold,Iuma_detect_threshold,cb_cr_ratio这几个参数的生效情况。值越大,越多非高亮区域的紫色被界定为紫边区域。purple_detect_range可能会引入紫边去除不平滑的问题,可以检查r_detect_threshold,g_detect_threshold, b_detect_threshold,Iuma_detect_threshold,cb_cr_ratio这几个参数的配置。 取值范围:[0,410]。  | 
manual_attr  | 
手动模式下配置紫边校正强度参数。  | 
auto_attr  | 
自动模式下配置紫边校正强度参数。  |