Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 538) sorted by relevance

12345678910>>...22

/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_scl_filters.c1341 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio) in get_filter_3tap_16p() argument
1343 if (ratio.value < dc_fixpt_one.value) in get_filter_3tap_16p()
1345 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_16p()
1347 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_16p()
1353 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio) in get_filter_3tap_64p() argument
1355 if (ratio.value < dc_fixpt_one.value) in get_filter_3tap_64p()
1357 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_64p()
1359 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_64p()
1365 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio) in get_filter_4tap_16p() argument
1367 if (ratio.value < dc_fixpt_one.value) in get_filter_4tap_16p()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dwb_scl.c530 const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_3tap_16p() argument
532 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_3tap_16p()
534 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_3tap_16p()
536 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_3tap_16p()
542 const uint16_t *wbscl_get_filter_4tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_4tap_16p() argument
544 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_4tap_16p()
546 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_4tap_16p()
548 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_4tap_16p()
554 static const uint16_t *wbscl_get_filter_5tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_5tap_16p() argument
556 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_5tap_16p()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/libcxx/include/
H A Dratio2 //===---------------------------- ratio -----------------------------------===//
15 ratio synopsis
21 class ratio
26 typedef ratio<num, den> type;
29 // ratio arithmetic
35 // ratio comparison
44 typedef ratio<1, 1000000000000000000000000> yocto; // not supported
45 typedef ratio<1, 1000000000000000000000> zepto; // not supported
46 typedef ratio<1, 1000000000000000000> atto;
47 typedef ratio<1, 1000000000000000> femto;
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/libcxx/include/
H A Dratio2 //===---------------------------- ratio -----------------------------------===//
15 ratio synopsis
21 class ratio
26 typedef ratio<num, den> type;
29 // ratio arithmetic
35 // ratio comparison
44 typedef ratio<1, 1000000000000000000000000> yocto; // not supported
45 typedef ratio<1, 1000000000000000000000> zepto; // not supported
46 typedef ratio<1, 1000000000000000000> atto;
47 typedef ratio<1, 1000000000000000> femto;
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/sample/
H A Dsample_adebayer_module.cpp19 #define INTERP_SAMPLE(x0, x1, ratio) ((ratio) * ((x1) - (x0)) + x0) argument
196 float ratio = 0.0f; in sample_adebayer_translate_params_v1() local
207 ratio = (float)(ISO - iso_low) / (iso_high - iso_low); in sample_adebayer_translate_params_v1()
211 ratio = 0; in sample_adebayer_translate_params_v1()
216 ratio = 1; in sample_adebayer_translate_params_v1()
224 …stManual.sharp_strength = ((ratio) * (sharp_strength_tmp[gain_high] - sharp_strength_tmp[gain_low]… in sample_adebayer_translate_params_v1()
225 …stManual.hf_offset = ((ratio) * (hfOffset_tmp[gain_high] - hfOffset_tmp[gain_low]) + hfOffset_tmp[… in sample_adebayer_translate_params_v1()
258 float ratio = 0.0f; in sample_adebayer_translate_params_v2() local
272 ratio = 0.0f; in sample_adebayer_translate_params_v2()
274 ratio = (float)(iso - iso_low) / (iso_high - iso_low); in sample_adebayer_translate_params_v2()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/agic/
H A Drk_aiq_algo_agic_v2.cpp18 #define INTERPOLATION(ratio, hi, lo) (((ratio) * ((hi) - (lo)) + (lo) * (1 << 4) + (1 << 3)) >> … argument
56 void GicV2SelectParam(rkaiq_gic_v2_param_selected_t* selected, int ratio, int index,
58 float ratioF = ratio / 16.0f;
65 selected->min_busy_thre = INTERPOLATION(ratio, hi->min_busy_thre, lo->min_busy_thre);
66 selected->min_grad_thr1 = INTERPOLATION(ratio, hi->min_grad_thr1, lo->min_grad_thr1);
67 selected->min_grad_thr2 = INTERPOLATION(ratio, hi->min_grad_thr2, lo->min_grad_thr2);
68 selected->k_grad1 = INTERPOLATION(ratio, hi->k_grad1, lo->k_grad1);
69 selected->k_grad2 = INTERPOLATION(ratio, hi->k_grad2, lo->k_grad2);
70 selected->gb_thre = INTERPOLATION(ratio, hi->gb_thre, lo->gb_thre);
71 selected->maxCorV = INTERPOLATION(ratio, hi->maxCorV, lo->maxCorV);
[all …]
H A Drk_aiq_algo_agic_v1.cpp18 #define INTERPOLATION(ratio, hi, lo) (((ratio) * ((hi) - (lo)) + (lo) * (1 << 4) + (1 << 3)) >> … argument
61 void GicV1SelectParam(rkaiq_gic_v1_param_selected_t* selected, int ratio, int index,
63 float ratioF = ratio / 16.0f;
70 selected->min_busy_thre = INTERPOLATION(ratio, hi->min_busy_thre, lo->min_busy_thre);
71 selected->min_grad_thr1 = INTERPOLATION(ratio, hi->min_grad_thr1, lo->min_grad_thr1);
72 selected->min_grad_thr2 = INTERPOLATION(ratio, hi->min_grad_thr2, lo->min_grad_thr2);
73 selected->k_grad1 = INTERPOLATION(ratio, hi->k_grad1, lo->k_grad1);
74 selected->k_grad2 = INTERPOLATION(ratio, hi->k_grad2, lo->k_grad1);
75 selected->gb_thre = INTERPOLATION(ratio, hi->gb_thre, lo->gb_thre);
76 selected->maxCorV = INTERPOLATION(ratio, hi->maxCorV, lo->maxCorV);
[all …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dparse-metric.c192 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
194 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
206 double ratio; in test_ipc() local
214 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
217 ratio == 1.5); in test_ipc()
223 double ratio; in test_frontend() local
233 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend()
236 ratio == 0.45); in test_frontend()
242 double ratio; in test_cache_miss_cycles() local
251 compute_metric("cache_miss_cycles", vals, &ratio) == 0); in test_cache_miss_cycles()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dstat-shadow.c302 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
311 if (ratio > grc_table[type][0]) in get_ratio_color()
313 else if (ratio > grc_table[type][1]) in get_ratio_color()
315 else if (ratio > grc_table[type][2]) in get_ratio_color()
454 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
461 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
463 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
465 if (ratio) in print_stalled_cycles_frontend()
467 ratio); in print_stalled_cycles_frontend()
478 double total, ratio = 0.0; in print_stalled_cycles_backend() local
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-exynos/
H A Dclock.c642 unsigned int ratio; in exynos4_get_pwm_clk() local
665 ratio = readl(&clk->div_peril3); in exynos4_get_pwm_clk()
666 ratio = ratio & 0xf; in exynos4_get_pwm_clk()
669 ratio = 8; in exynos4_get_pwm_clk()
673 pclk = sclk / (ratio + 1); in exynos4_get_pwm_clk()
682 unsigned int ratio; in exynos4x12_get_pwm_clk() local
685 ratio = 8; in exynos4x12_get_pwm_clk()
687 pclk = sclk / (ratio + 1); in exynos4x12_get_pwm_clk()
699 unsigned int ratio; in exynos4_get_uart_clk() local
731 ratio = readl(&clk->div_peril0); in exynos4_get_uart_clk()
[all …]
/OK3568_Linux_fs/kernel/drivers/thermal/intel/
H A Dintel_powerclamp.c261 static unsigned int get_compensation(int ratio) in get_compensation() argument
266 if (ratio == 1 && in get_compensation()
267 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
268 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
269 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
270 comp = (cal_data[ratio].steady_comp + in get_compensation()
271 cal_data[ratio + 1].steady_comp + in get_compensation()
272 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
273 } else if (ratio == MAX_TARGET_RATIO - 1 && in get_compensation()
274 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/adebayer/
H A Drk_aiq_adebayer_algo_v2.cpp280 float ratio = 0.0f; in AdebayerSelectParam() local
294 ratio = 0.0f; in AdebayerSelectParam()
296 ratio = (float)(iso - iso_low) / (iso_high - iso_low); in AdebayerSelectParam()
307 ratio = 1; in AdebayerSelectParam()
311 …[iso_low_index], pAdebayerCtx->full_param_v2.g_interp.debayer_gain_offset[iso_high_index], ratio)); in AdebayerSelectParam()
312 …io[iso_low_index], pAdebayerCtx->full_param_v2.g_interp.debayer_max_ratio[iso_high_index], ratio)); in AdebayerSelectParam()
313 …p_en[iso_low_index], pAdebayerCtx->full_param_v2.g_interp.debayer_clip_en[iso_high_index], ratio)); in AdebayerSelectParam()
332 ratio = 0; in AdebayerSelectParam()
334 ratio = (float)(iso - iso_low) / (iso_high - iso_low); in AdebayerSelectParam()
345 ratio = 1; in AdebayerSelectParam()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/tr2/
H A Dratio1 // TR2 <ratio> -*- C++ -*-
25 /** @file tr2/ratio
29 #include <ratio>
48 typedef ratio<__safe_lshift<1, 10>::__value, 1> kibi;
49 typedef ratio<__safe_lshift<1, 20>::__value, 1> mebi;
50 typedef ratio<__safe_lshift<1, 30>::__value, 1> gibi;
51 typedef ratio<__safe_lshift<1, 40>::__value, 1> tebi;
52 typedef ratio<__safe_lshift<1, 50>::__value, 1> pebi;
53 typedef ratio<__safe_lshift<1, 60>::__value, 1> exbi;
54 //typedef ratio<__safe_lshift<1, 70>::__value, 1> zebi;
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/tr2/
H A Dratio1 // TR2 <ratio> -*- C++ -*-
25 /** @file tr2/ratio
29 #include <ratio>
48 typedef ratio<__safe_lshift<1, 10>::__value, 1> kibi;
49 typedef ratio<__safe_lshift<1, 20>::__value, 1> mebi;
50 typedef ratio<__safe_lshift<1, 30>::__value, 1> gibi;
51 typedef ratio<__safe_lshift<1, 40>::__value, 1> tebi;
52 typedef ratio<__safe_lshift<1, 50>::__value, 1> pebi;
53 typedef ratio<__safe_lshift<1, 60>::__value, 1> exbi;
54 //typedef ratio<__safe_lshift<1, 70>::__value, 1> zebi;
[all …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dcs42xx8.c183 unsigned int ratio[3]; member
267 u32 ratio[2]; in cs42xx8_hw_params() local
279 ratio[tx] = rate[tx] > 0 ? cs42xx8->sysclk / rate[tx] : 0; in cs42xx8_hw_params()
280 ratio[!tx] = rate[!tx] > 0 ? cs42xx8->sysclk / rate[!tx] : 0; in cs42xx8_hw_params()
304 (cs42xx8_ratios[i].ratio[0] == ratio[tx] || in cs42xx8_hw_params()
305 cs42xx8_ratios[i].ratio[1] == ratio[tx] || in cs42xx8_hw_params()
306 cs42xx8_ratios[i].ratio[2] == ratio[tx]) : in cs42xx8_hw_params()
307 (cs42xx8_ratios[i].ratio[fm[tx]] == ratio[tx])) && in cs42xx8_hw_params()
311 if (!ratio[tx]) in cs42xx8_hw_params()
316 (cs42xx8_ratios[i].ratio[0] == ratio[!tx] || in cs42xx8_hw_params()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/amd/
H A Drk_aiq_algo_amd_itf.cpp175 float ratio = (float)(gain_f - gain_r); in select_motion_params_by_iso() local
178 …tion_ISO[gain_l].sigmaHScale * ratio + motion_full_params.Motion_ISO[gain_r].sigmaHScale … in select_motion_params_by_iso()
179 …tion_ISO[gain_l].sigmaLScale * ratio + motion_full_params.Motion_ISO[gain_r].sigmaLScale … in select_motion_params_by_iso()
180 …tion_ISO[gain_l].lightClp * ratio + motion_full_params.Motion_ISO[gain_r].lightClp … in select_motion_params_by_iso()
181 …tion_ISO[gain_l].uvWeight * ratio + motion_full_params.Motion_ISO[gain_r].uvWeight … in select_motion_params_by_iso()
182 …tion_ISO[gain_l].yuvnrGainScale0 * ratio + motion_full_params.Motion_ISO[gain_r].yuvnrGainScale… in select_motion_params_by_iso()
183 …tion_ISO[gain_l].yuvnrGainScale1 * ratio + motion_full_params.Motion_ISO[gain_r].yuvnrGainScale… in select_motion_params_by_iso()
184 …tion_ISO[gain_l].yuvnrGainScale2 * ratio + motion_full_params.Motion_ISO[gain_r].yuvnrGainScale… in select_motion_params_by_iso()
185 …tion_ISO[gain_l].frame_limit_y * ratio + motion_full_params.Motion_ISO[gain_r].frame_limit_y … in select_motion_params_by_iso()
186 …tion_ISO[gain_l].frame_limit_uv * ratio + motion_full_params.Motion_ISO[gain_r].frame_limit_uv… in select_motion_params_by_iso()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aynr3/
H A Drk_aiq_aynr_algo_ynr_v3.cpp9 float ratio = 0.0f; in ynr_select_params_by_ISO_V3() local
80 ratio = (iso - lowIso ) / (float)(highIso - lowIso); in ynr_select_params_by_ISO_V3()
97 ratio = 0; in ynr_select_params_by_ISO_V3()
110 ratio = 1; in ynr_select_params_by_ISO_V3()
126 iso, lowIso, highIso, ratio, cur_iso_idx); in ynr_select_params_by_ISO_V3()
128 …pSelect->ynr_global_gain_alpha = ratio * (pParamHi->ynr_global_gain_alpha - pParamLo->ynr_global_g… in ynr_select_params_by_ISO_V3()
129 …pSelect->ynr_global_gain = ratio * (pParamHi->ynr_global_gain - pParamLo->ynr_global_gain) +… in ynr_select_params_by_ISO_V3()
130 …pSelect->ynr_adjust_thresh = ratio * (pParamHi->ynr_adjust_thresh - pParamLo->ynr_adjust_thresh) +… in ynr_select_params_by_ISO_V3()
131 …pSelect->ynr_adjust_scale = ratio * (pParamHi->ynr_adjust_scale - pParamLo->ynr_adjust_scale) + pP… in ynr_select_params_by_ISO_V3()
136 …pSelect->rnr_strength[i] = ratio * (pParamHi->rnr_strength[i] - pParamLo->rnr_strength[i]) + pPara… in ynr_select_params_by_ISO_V3()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H A Dves1x93.c165 u32 ratio; in ves1x93_set_symbolrate() local
184 ratio = tmp / FIN; in ves1x93_set_symbolrate()
187 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
190 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
194 if (ratio < MUL/3) FNR = 0; in ves1x93_set_symbolrate()
195 if (ratio < (MUL*11)/50) FNR = 1; in ves1x93_set_symbolrate()
196 if (ratio < MUL/6) FNR = 2; in ves1x93_set_symbolrate()
197 if (ratio < MUL/9) FNR = 3; in ves1x93_set_symbolrate()
198 if (ratio < MUL/12) FNR = 4; in ves1x93_set_symbolrate()
199 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aynrV22/
H A Drk_aiq_aynr_algo_ynr_v22.cpp9 float ratio = 0.0f; in ynr_select_params_by_ISO_V22() local
89 ratio = (iso - lowIso ) / (float)(highIso - lowIso); in ynr_select_params_by_ISO_V22()
107 ratio = 0; in ynr_select_params_by_ISO_V22()
115 ratio = 1; in ynr_select_params_by_ISO_V22()
124 iso, lowIso, highIso, ratio, cur_iso_idx); in ynr_select_params_by_ISO_V22()
129 …pSelect->ynr_global_gain_alpha = ratio * (pParamHi->ynr_global_gain_alpha - pParamLo->ynr_global_g… in ynr_select_params_by_ISO_V22()
130 …pSelect->ynr_global_gain = ratio * (pParamHi->ynr_global_gain - pParamLo->ynr_global_gain) +… in ynr_select_params_by_ISO_V22()
131 …pSelect->ynr_adjust_thresh = ratio * (pParamHi->ynr_adjust_thresh - pParamLo->ynr_adjust_thresh) +… in ynr_select_params_by_ISO_V22()
132 …pSelect->ynr_adjust_scale = ratio * (pParamHi->ynr_adjust_scale - pParamLo->ynr_adjust_scale) + pP… in ynr_select_params_by_ISO_V22()
137 …pSelect->rnr_strength[i] = ratio * (pParamHi->rnr_strength[i] - pParamLo->rnr_strength[i]) + pPara… in ynr_select_params_by_ISO_V22()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/
H A Dratio1 // ratio -*- C++ -*-
25 /** @file include/ratio
27 * @ingroup ratio
47 * @defgroup ratio Rational Arithmetic
256 * type intmax_t. The ratio is simplified when instantiated.
260 * std::ratio<7,-21>::num == -1;
261 * std::ratio<7,-21>::den == 3;
266 struct ratio
279 typedef ratio<num, den> type;
283 constexpr intmax_t ratio<_Num, _Den>::num;
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/
H A Dratio1 // ratio -*- C++ -*-
25 /** @file include/ratio
27 * @ingroup ratio
47 * @defgroup ratio Rational Arithmetic
256 * type intmax_t. The ratio is simplified when instantiated.
260 * std::ratio<7,-21>::num == -1;
261 * std::ratio<7,-21>::den == 3;
266 struct ratio
279 typedef ratio<num, den> type;
283 constexpr intmax_t ratio<_Num, _Den>::num;
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/acnrV30/
H A Drk_aiq_acnr_algo_cnr_v30.cpp7 #define interp_cnr_v30(value_low, value_high, ratio) (ratio * ((value_high) - (value_low)) + value_… argument
129 float ratio = float(iso - isoGainLow) / float(isoGainHigh - isoGainLow); in cnr_select_params_by_ISO_V30() local
131 pSelect->thumb_sigma = interp_cnr_v30( pLowISO->thumb_sigma, pHighISO->thumb_sigma, ratio); in cnr_select_params_by_ISO_V30()
132 …pSelect->thumb_bf_ratio = interp_cnr_v30(pLowISO->thumb_bf_ratio, pHighISO->thumb_bf_ratio, ratio); in cnr_select_params_by_ISO_V30()
134 …trength = interp_cnr_v30(pLowISO->chroma_filter_strength, pHighISO->chroma_filter_strength, ratio); in cnr_select_params_by_ISO_V30()
135 …gt_clip = interp_cnr_v30(pLowISO->chroma_filter_wgt_clip, pHighISO->chroma_filter_wgt_clip, ratio); in cnr_select_params_by_ISO_V30()
136 …anti_chroma_ghost = interp_cnr_v30(pLowISO->anti_chroma_ghost, pHighISO->anti_chroma_ghost, ratio); in cnr_select_params_by_ISO_V30()
137 …r_uv_gain = interp_cnr_v30(pLowISO->chroma_filter_uv_gain, pHighISO->chroma_filter_uv_gain, ratio); in cnr_select_params_by_ISO_V30()
138 pSelect->wgt_slope = interp_cnr_v30(pLowISO->wgt_slope, pHighISO->wgt_slope, ratio); in cnr_select_params_by_ISO_V30()
140 pSelect->gaus_ratio = interp_cnr_v30(pLowISO->gaus_ratio, pHighISO->gaus_ratio, ratio); in cnr_select_params_by_ISO_V30()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/fsl/
H A Dfsl_esai.c170 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument
181 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { in fsl_esai_divisor_cal()
185 } else if (ratio % 2) { in fsl_esai_divisor_cal()
190 ratio /= 2; in fsl_esai_divisor_cal()
192 psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; in fsl_esai_divisor_cal()
195 if (ratio <= 256) { in fsl_esai_divisor_cal()
196 pm = ratio; in fsl_esai_divisor_cal()
210 if (prod == ratio) in fsl_esai_divisor_cal()
212 else if (prod / ratio == 1) in fsl_esai_divisor_cal()
213 sub = prod - ratio; in fsl_esai_divisor_cal()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/asharp/
H A Drk_aiq_asharp_algo_sharp.cpp892 float ratio = 0.0f; in select_rk_sharpen_hw_params_by_ISO() local
927 ratio = (float)(iso - iso_low) / (iso_high - iso_low); in select_rk_sharpen_hw_params_by_ISO()
938 ratio = 0; in select_rk_sharpen_hw_params_by_ISO()
946 ratio = 1; in select_rk_sharpen_hw_params_by_ISO()
960 ratio = (float)(iso - iso_low) / (iso_high - iso_low); in select_rk_sharpen_hw_params_by_ISO()
964 ratio = 0; in select_rk_sharpen_hw_params_by_ISO()
969 ratio = 1; in select_rk_sharpen_hw_params_by_ISO()
981 iso, iso_low, iso_high, gain_low, gain_high, ratio); in select_rk_sharpen_hw_params_by_ISO()
982 …rksharpenParams->lratio [gain_low], strksharpenParams->lratio [gain_high], ratio); in select_rk_sharpen_hw_params_by_ISO()
983 …rksharpenParams->hratio [gain_low], strksharpenParams->hratio [gain_high], ratio); in select_rk_sharpen_hw_params_by_ISO()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/abayer2dnrV23/
H A Drk_aiq_abayer2dnr_algo_bayernr_v23.cpp78 float ratio = 0; in bayer2dnr_select_params_by_ISO_V23() local
79 ratio = float(isoGain - isoGainLow) / float(isoGainHig - isoGainLow); in bayer2dnr_select_params_by_ISO_V23()
81 …pSelect->filter_strength = ratio * (pHighISO->filter_strength - pLowISO->filter_strength) + pLowIS… in bayer2dnr_select_params_by_ISO_V23()
84 pSelect->sigma[i] = ratio * (pHighISO->sigma[i] - pLowISO->sigma[i]) + pLowISO->sigma[i]; in bayer2dnr_select_params_by_ISO_V23()
85 …pSelect->gain_adj[i] = ratio * (pHighISO->gain_adj[i] - pLowISO->gain_adj[i]) + pLowISO->gain_adj[… in bayer2dnr_select_params_by_ISO_V23()
88 pSelect->edgesofts = ratio * (pHighISO->edgesofts - pLowISO->edgesofts) + pLowISO->edgesofts; in bayer2dnr_select_params_by_ISO_V23()
89 pSelect->ratio = ratio * (pHighISO->ratio - pLowISO->ratio) + pLowISO->ratio; in bayer2dnr_select_params_by_ISO_V23()
90 pSelect->weight = ratio * (pHighISO->weight - pLowISO->weight) + pLowISO->weight; in bayer2dnr_select_params_by_ISO_V23()
91 pSelect->pix_diff = ratio * (pHighISO->pix_diff - pLowISO->pix_diff) + pLowISO->pix_diff; in bayer2dnr_select_params_by_ISO_V23()
92 pSelect->diff_thld = ratio * (pHighISO->diff_thld - pLowISO->diff_thld) + pLowISO->diff_thld; in bayer2dnr_select_params_by_ISO_V23()
[all …]

12345678910>>...22