Lines Matching refs:yuv_enh

135 static RK_U32 check_yuv_enhance_param(IepCmdParamYuvEnhance *yuv_enh)  in check_yuv_enhance_param()  argument
138 if (yuv_enh->saturation < 0 || yuv_enh->saturation > 1.992) { in check_yuv_enhance_param()
143 if (yuv_enh->contrast < 0 || yuv_enh->contrast > 1.992) { in check_yuv_enhance_param()
148 if (yuv_enh->brightness < -32 || yuv_enh->brightness > 31) { in check_yuv_enhance_param()
153 if (yuv_enh->hue_angle < -30 || yuv_enh->hue_angle > 30) { in check_yuv_enhance_param()
158 if (yuv_enh->video_mode < 0 || yuv_enh->video_mode > 3) { in check_yuv_enhance_param()
163 if (yuv_enh->color_bar_y > 127 || yuv_enh->color_bar_u > 127 || in check_yuv_enhance_param()
164 yuv_enh->color_bar_v > 127) { in check_yuv_enhance_param()
436 IepCmdParamYuvEnhance *yuv_enh = (IepCmdParamYuvEnhance *)param; in iep_control() local
438 if (NULL == yuv_enh) { in iep_control()
457 if (check_yuv_enhance_param(yuv_enh)) { in iep_control()
471 msg->sat_con_int = (RK_S32)(yuv_enh->saturation * yuv_enh->contrast * 128); in iep_control()
472 msg->contrast_int = (RK_S32)(yuv_enh->contrast * 128); in iep_control()
473 msg->cos_hue_int = (RK_S32)(cos(yuv_enh->hue_angle) * 128.0); in iep_control()
474 msg->sin_hue_int = (RK_S32)(sin(yuv_enh->hue_angle) * 128.0); in iep_control()
475 msg->yuv_enh_brightness = yuv_enh->brightness >= 0 ? in iep_control()
476 yuv_enh->brightness : in iep_control()
477 (yuv_enh->brightness + 64); in iep_control()
479 msg->video_mode = yuv_enh->video_mode; in iep_control()
480 msg->color_bar_y = yuv_enh->color_bar_y; in iep_control()
481 msg->color_bar_u = yuv_enh->color_bar_u; in iep_control()
482 msg->color_bar_v = yuv_enh->color_bar_v; in iep_control()