Lines Matching refs:p_es_param

418 static void update_es_tan(EsParams* p_es_param)  in update_es_tan()  argument
422 angle_lo_th = 23 - p_es_param->es_iAngleDelta - p_es_param->es_iAngleDeltaExtra; in update_es_tan()
423 angle_hi_th = 23 + p_es_param->es_iAngleDelta; in update_es_tan()
425 p_es_param->es_tan_lo_th = mpp_clip(tan(angle_lo_th * acos(-1) / 180.0) * 512, 0, 511); in update_es_tan()
426 p_es_param->es_tan_hi_th = mpp_clip(tan(angle_hi_th * acos(-1) / 180.0) * 512, 0, 511); in update_es_tan()
432 EsParams *p_es_param = &src_params->es_params; in set_es_to_vdpp2_reg() local
434 RK_U8 conf_local_mean_th = mpp_clip((256 * (float)p_es_param->es_iWgtLocalTh) in set_es_to_vdpp2_reg()
435 / p_es_param->es_iWgtGain, 0, 255); in set_es_to_vdpp2_reg()
438 update_es_tan(p_es_param); in set_es_to_vdpp2_reg()
440 dst_reg->es.reg0.es_enable = p_es_param->es_bEnabledES; in set_es_to_vdpp2_reg()
441 dst_reg->es.reg1.dir_th = p_es_param->es_iGradNoDirTh; in set_es_to_vdpp2_reg()
442 dst_reg->es.reg1.flat_th = p_es_param->es_iGradFlatTh; in set_es_to_vdpp2_reg()
444 dst_reg->es.reg2.tan_lo_th = p_es_param->es_tan_lo_th; in set_es_to_vdpp2_reg()
445 dst_reg->es.reg2.tan_hi_th = p_es_param->es_tan_hi_th; in set_es_to_vdpp2_reg()
447 dst_reg->es.reg3.ep_chk_en = p_es_param->es_bEndpointCheckEnable; in set_es_to_vdpp2_reg()
450 dst_reg->es.reg4.diff_gain0 = p_es_param->es_iK1; in set_es_to_vdpp2_reg()
451 dst_reg->es.reg4.diff_limit = p_es_param->es_iDeltaLimit; in set_es_to_vdpp2_reg()
453 dst_reg->es.reg5.diff_gain1 = p_es_param->es_iK2; in set_es_to_vdpp2_reg()
454 dst_reg->es.reg5.lut_x0 = p_es_param->es_iDiff2conf_lut_x[0]; in set_es_to_vdpp2_reg()
456 dst_reg->es.reg6.lut_x1 = p_es_param->es_iDiff2conf_lut_x[1]; in set_es_to_vdpp2_reg()
457 dst_reg->es.reg6.lut_x2 = p_es_param->es_iDiff2conf_lut_x[2]; in set_es_to_vdpp2_reg()
458 dst_reg->es.reg7.lut_x3 = p_es_param->es_iDiff2conf_lut_x[3]; in set_es_to_vdpp2_reg()
459 dst_reg->es.reg7.lut_x4 = p_es_param->es_iDiff2conf_lut_x[4]; in set_es_to_vdpp2_reg()
460 dst_reg->es.reg8.lut_x5 = p_es_param->es_iDiff2conf_lut_x[5]; in set_es_to_vdpp2_reg()
461 dst_reg->es.reg8.lut_x6 = p_es_param->es_iDiff2conf_lut_x[6]; in set_es_to_vdpp2_reg()
462 dst_reg->es.reg9.lut_x7 = p_es_param->es_iDiff2conf_lut_x[7]; in set_es_to_vdpp2_reg()
463 dst_reg->es.reg9.lut_x8 = p_es_param->es_iDiff2conf_lut_x[8]; in set_es_to_vdpp2_reg()
465 dst_reg->es.reg10.lut_y0 = p_es_param->es_iDiff2conf_lut_y[0]; in set_es_to_vdpp2_reg()
466 dst_reg->es.reg10.lut_y1 = p_es_param->es_iDiff2conf_lut_y[1]; in set_es_to_vdpp2_reg()
467 dst_reg->es.reg10.lut_y2 = p_es_param->es_iDiff2conf_lut_y[2]; in set_es_to_vdpp2_reg()
468 dst_reg->es.reg10.lut_y3 = p_es_param->es_iDiff2conf_lut_y[3]; in set_es_to_vdpp2_reg()
469 dst_reg->es.reg11.lut_y4 = p_es_param->es_iDiff2conf_lut_y[4]; in set_es_to_vdpp2_reg()
470 dst_reg->es.reg11.lut_y5 = p_es_param->es_iDiff2conf_lut_y[5]; in set_es_to_vdpp2_reg()
471 dst_reg->es.reg11.lut_y6 = p_es_param->es_iDiff2conf_lut_y[6]; in set_es_to_vdpp2_reg()
472 dst_reg->es.reg11.lut_y7 = p_es_param->es_iDiff2conf_lut_y[7]; in set_es_to_vdpp2_reg()
473 dst_reg->es.reg12.lut_y8 = p_es_param->es_iDiff2conf_lut_y[8]; in set_es_to_vdpp2_reg()
476 double x0 = p_es_param->es_iDiff2conf_lut_x[i]; in set_es_to_vdpp2_reg()
477 double x1 = p_es_param->es_iDiff2conf_lut_x[i + 1]; in set_es_to_vdpp2_reg()
478 double y0 = p_es_param->es_iDiff2conf_lut_y[i]; in set_es_to_vdpp2_reg()
479 double y1 = p_es_param->es_iDiff2conf_lut_y[i + 1]; in set_es_to_vdpp2_reg()
491 dst_reg->es.reg15.wgt_decay = p_es_param->es_iWgtDecay; in set_es_to_vdpp2_reg()
492 dst_reg->es.reg15.wgt_gain = p_es_param->es_iWgtGain; in set_es_to_vdpp2_reg()
495 dst_reg->es.reg16.conf_cnt_th = p_es_param->es_iConfCntTh; in set_es_to_vdpp2_reg()
496 dst_reg->es.reg16.low_conf_th = p_es_param->es_iLowConfTh; in set_es_to_vdpp2_reg()
497 dst_reg->es.reg16.low_conf_ratio = p_es_param->es_iLowConfRatio; in set_es_to_vdpp2_reg()
1231 static void vdpp_set_default_es_param(EsParams* p_es_param) in vdpp_set_default_es_param() argument
1233 p_es_param->es_bEnabledES = 0; in vdpp_set_default_es_param()
1234 p_es_param->es_iAngleDelta = 17; in vdpp_set_default_es_param()
1235 p_es_param->es_iAngleDeltaExtra = 5; in vdpp_set_default_es_param()
1236 p_es_param->es_iGradNoDirTh = 37; in vdpp_set_default_es_param()
1237 p_es_param->es_iGradFlatTh = 75; in vdpp_set_default_es_param()
1238 p_es_param->es_iWgtGain = 128; in vdpp_set_default_es_param()
1239 p_es_param->es_iWgtDecay = 128; in vdpp_set_default_es_param()
1240 p_es_param->es_iLowConfTh = 96; in vdpp_set_default_es_param()
1241 p_es_param->es_iLowConfRatio = 32; in vdpp_set_default_es_param()
1242 p_es_param->es_iConfCntTh = 4; in vdpp_set_default_es_param()
1243 p_es_param->es_iWgtLocalTh = 64; in vdpp_set_default_es_param()
1244 p_es_param->es_iK1 = 4096; in vdpp_set_default_es_param()
1245 p_es_param->es_iK2 = 7168; in vdpp_set_default_es_param()
1246 p_es_param->es_iDeltaLimit = 65280; in vdpp_set_default_es_param()
1247 … memcpy(&p_es_param->es_iDiff2conf_lut_x[0], &diff2conf_lut_x_tmp[0], sizeof(diff2conf_lut_x_tmp)); in vdpp_set_default_es_param()
1248 … memcpy(&p_es_param->es_iDiff2conf_lut_y[0], &diff2conf_lut_y_tmp[0], sizeof(diff2conf_lut_y_tmp)); in vdpp_set_default_es_param()
1249 p_es_param->es_bEndpointCheckEnable = 1; in vdpp_set_default_es_param()