Home
last modified time | relevance | path

Searched refs:hist (Results 1 – 25 of 38) sorted by relevance

12

/device/soc/esp/esp32/components/bt/host/bluedroid/external/sbc/plc/
Dsbc_plc.c195 memset(plc_state->hist, 0, sizeof(plc_state->hist)); in sbc_plc_init()
206 memset(plc_state->hist, 0, sizeof(plc_state->hist)); in sbc_plc_deinit()
225 plc_state->bestlag = PatternMatch(plc_state->hist); in sbc_plc_bad_frame()
230 sf = AmplitudeMatch(plc_state->hist, plc_state->bestlag); in sbc_plc_bad_frame()
234 + sf * plc_state->hist[plc_state->bestlag + i] * rcos[SBC_OLAL - i - 1]; in sbc_plc_bad_frame()
235 plc_state->hist[SBC_LHIST + i] = crop_sample(val); in sbc_plc_bad_frame()
239 val = sf*plc_state->hist[plc_state->bestlag + i]; in sbc_plc_bad_frame()
240 plc_state->hist[SBC_LHIST + i] = crop_sample(val); in sbc_plc_bad_frame()
244 val = sf * plc_state->hist[plc_state->bestlag + i] * rcos[i-SBC_FS] in sbc_plc_bad_frame()
245 + plc_state->hist[plc_state->bestlag + i] * rcos[SBC_OLAL - 1 - i + SBC_FS]; in sbc_plc_bad_frame()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_v2x/
Dde_fce.c324 int de_fce_get_hist(unsigned int sel, unsigned int chno, unsigned int hist[256], in de_fce_get_hist()
332 memcpy((unsigned char *)hist, in de_fce_get_hist()
477 unsigned int sumcnt, unsigned int hist[256], in auto_ce_model()
502 total_pixel -= hist[i]; in auto_ce_model()
505 total_pixel -= hist[i]; in auto_ce_model()
541 if (hist[lowest_black] > mean) in auto_ce_model()
543 else if (hist[lowest_black] > black_str_lv) in auto_ce_model()
544 hist_r[lowest_black] = hist[lowest_black]; in auto_ce_model()
553 if (hist[i] > mean) in auto_ce_model()
555 else if (hist[i] > black_str_lv) in auto_ce_model()
[all …]
Dde_bws.c305 unsigned int hist[256], unsigned int hist_pre[256], in auto_bws_model()
338 diff_hist += abs(hist[k] - hist_pre[k]); in auto_bws_model()
339 total += hist[k]; in auto_bws_model()
353 total += hist[k]; in auto_bws_model()
360 validcnt -= hist[k]; in auto_bws_model()
362 validcnt -= hist[k]; in auto_bws_model()
366 validsum -= hist[k] * k; in auto_bws_model()
368 validsum -= hist[k] * k; in auto_bws_model()
376 cdf_b += hist[k]; in auto_bws_model()
386 cdf_w += hist[k]; in auto_bws_model()
Dde_smbl.c88 u32 hist[IEP_LH_INTERVAL_NUM], p95; in PWRSAVE_CORE() local
133 hist[0] = (histcnt[0]) / size; in PWRSAVE_CORE()
135 hist[i] = (histcnt[i]) / size + hist[i - 1]; in PWRSAVE_CORE()
139 if (hist[i] >= 95) { in PWRSAVE_CORE()
151 if (hist[i] < 80) in PWRSAVE_CORE()
Dde_fce_type.h171 unsigned int hist:22; member
192 union HIST_CNT_REG hist[256]; /* 0x0200-0x05fc */ member
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/
Dde_fce.c281 int de_fce_get_hist(unsigned int sel, unsigned int chno, unsigned int hist[256], unsigned int *sum) in de_fce_get_hist()
288 …memcpy((unsigned char *)hist, (unsigned char *)fce_hist_block[sel][chno].off, sizeof(unsigned int)… in de_fce_get_hist()
418 …oid auto_ce_model(unsigned int width, unsigned height, unsigned int sumcnt, unsigned int hist[256], in auto_ce_model()
442 total_pixel -= hist[i]; in auto_ce_model()
446 total_pixel -= hist[i]; in auto_ce_model()
480 if (hist[lowest_black] > mean) in auto_ce_model()
482 else if (hist[lowest_black] > black_str_lv) in auto_ce_model()
483 hist_r[lowest_black] = hist[lowest_black]; in auto_ce_model()
492 if (hist[i] > mean) in auto_ce_model()
494 else if (hist[i] > black_str_lv) in auto_ce_model()
[all …]
Dde_bws.c276 static void auto_bws_model(unsigned int width, unsigned int height, unsigned int hist[256], unsigne… in auto_bws_model()
299 diff_hist += abs(hist[k] - hist_pre[k]); in auto_bws_model()
300 total += hist[k]; in auto_bws_model()
311 total += hist[k]; in auto_bws_model()
319 validcnt -= hist[k]; in auto_bws_model()
322 validcnt -= hist[k]; in auto_bws_model()
327 validsum -= hist[k]*k; in auto_bws_model()
330 validsum -= hist[k]*k; in auto_bws_model()
339 cdf_b += hist[k]; in auto_bws_model()
349 cdf_w += hist[k]; in auto_bws_model()
Dde_smbl.c67 u32 hist[IEP_LH_INTERVAL_NUM], p95; in PWRSAVE_CORE() local
107 hist[0] = (histcnt[0])/size; in PWRSAVE_CORE()
109 hist[i] = (histcnt[i])/size + hist[i-1]; in PWRSAVE_CORE()
114 if (hist[i] >= 95) { in PWRSAVE_CORE()
126 if (hist[i] < 80) { in PWRSAVE_CORE()
Dde_fce_type.h153 unsigned int hist : 22; /* Default: 0x0; */ member
174 HIST_CNT_REG hist[256]; /* 0x0200-0x05fc */ member
Dde_enhance.h95 int de_fce_get_hist(unsigned int sel, unsigned int chno, unsigned int hist[256], unsigned int *sum);
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_v3x/
Dde_fce.c367 unsigned int hist[256], unsigned int *sum) in de_fce_get_hist()
374 memcpy((unsigned char *)hist, in de_fce_get_hist()
634 unsigned int sumcnt, unsigned int hist[256], in auto_ce_model()
670 total_pixel -= hist[i]; in auto_ce_model()
673 total_pixel -= hist[i]; in auto_ce_model()
712 if (hist[lowest_black] > mean) in auto_ce_model()
714 else if (hist[lowest_black] > lthr_tmp) in auto_ce_model()
715 hist_r[lowest_black] = hist[lowest_black]; in auto_ce_model()
725 if (hist[i] > mean) in auto_ce_model()
727 else if (hist[i] > lthr_tmp) in auto_ce_model()
[all …]
Dde_smbl.c88 u32 hist[IEP_LH_INTERVAL_NUM], p95; in PWRSAVE_CORE() local
133 hist[0] = (histcnt[0]) / size; in PWRSAVE_CORE()
135 hist[i] = (histcnt[i]) / size + hist[i - 1]; in PWRSAVE_CORE()
139 if (hist[i] >= 95) { in PWRSAVE_CORE()
151 if (hist[i] < 80) in PWRSAVE_CORE()
Dde_fce_type.h196 unsigned int hist:22; member
218 union HIST_CNT_REG hist[256]; /* 0x0400-0x07fc */ member
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_v33x/de330/
Dde_fce.c237 u32 hist[256], u32 *sum) in de_fce_get_hist()
244 memcpy(hist, hw_reg->hist, sizeof(u32) * 256); in de_fce_get_hist()
515 u32 sumcnt, u32 hist[256], in auto_ce_model()
551 total_pixel -= hist[i]; in auto_ce_model()
554 total_pixel -= hist[i]; in auto_ce_model()
593 if (hist[lowest_black] > mean) in auto_ce_model()
595 else if (hist[lowest_black] > lthr_tmp) in auto_ce_model()
596 hist_r[lowest_black] = hist[lowest_black]; in auto_ce_model()
606 if (hist[i] > mean) in auto_ce_model()
608 else if (hist[i] > lthr_tmp) in auto_ce_model()
[all …]
Dde_smbl.c272 u32 hist[IEP_LH_INTERVAL_NUM], p95; in PWRSAVE_CORE() local
317 hist[0] = (histcnt[0]) / size; in PWRSAVE_CORE()
319 hist[i] = (histcnt[i]) / size + hist[i - 1]; in PWRSAVE_CORE()
323 if (hist[i] >= 95) { in PWRSAVE_CORE()
335 if (hist[i] < 95) in PWRSAVE_CORE()
Dde_fce_type.h219 u32 hist:22; member
248 union HIST_CNT_REG hist[256]; /* 0x0400-0x07fc */ member
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw8/
Dde_fce.c304 int de_fce_get_hist(unsigned int sel, unsigned int chno, unsigned int hist[256], in de_fce_get_hist()
314 hist[i] = 0x5DC; in de_fce_get_hist()
320 memcpy((unsigned char *)hist, in de_fce_get_hist()
424 unsigned int hist[256], unsigned int up_precent_thr, in auto_ce_model()
459 if (hist[0] <= uthr && hist[0] >= lthr) { in auto_ce_model()
460 hist_r[0] = hist[0]; in auto_ce_model()
461 } else if (hist[0] > uthr) { in auto_ce_model()
472 if (hist[i] <= uthr && hist[i] >= lthr) { in auto_ce_model()
473 hist_r[i] = hist[i]; in auto_ce_model()
474 } else if (hist[i] > uthr) { in auto_ce_model()
Dde_bws.c279 unsigned int hist[256], unsigned int hist_pre[256], in auto_bws_model()
312 diff_hist += abs(hist[k] - hist_pre[k]); in auto_bws_model()
313 total += hist[k]; in auto_bws_model()
327 total += hist[k]; in auto_bws_model()
335 validcnt -= hist[k]; in auto_bws_model()
338 validcnt -= hist[k]; in auto_bws_model()
343 validsum -= hist[k] * k; in auto_bws_model()
346 validsum -= hist[k] * k; in auto_bws_model()
355 cdf_b += hist[k]; in auto_bws_model()
365 cdf_w += hist[k]; in auto_bws_model()
Dde_smbl.c84 u32 hist[IEP_LH_INTERVAL_NUM], p95; in PWRSAVE_CORE() local
125 hist[0] = (histcnt[0]) / size; in PWRSAVE_CORE()
127 hist[i] = (histcnt[i]) / size + hist[i - 1]; in PWRSAVE_CORE()
132 if (hist[i] >= 95) { in PWRSAVE_CORE()
144 if (hist[i] < 95) { in PWRSAVE_CORE()
Dde_fce_type.h128 unsigned int hist:22; // Default: 0x0; member
149 HIST_CNT_REG hist[256]; //0x0200-0x05fc member
Dde_enhance.h107 int de_fce_get_hist(unsigned int sel, unsigned int chno, unsigned int hist[256],
115 unsigned int hist[256], unsigned int up_precent_thr,
/device/soc/esp/esp32/components/bt/host/bluedroid/external/sbc/plc/include/
Dsbc_plc.h34 int16_t hist[SBC_LHIST + SBC_FS + SBC_RT + SBC_OLAL]; member
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
Disp_stats_v1x.c119 pbuf->params.hist.hist_bins[i] = readl(addr + (i * 4)); in rkisp1_stats_get_hst_meas_v10()
135 pbuf->params.hist.hist_bins[2 * i] = CIF_ISP_HIST_GET_BIN0_V12(value); in rkisp1_stats_get_hst_meas_v12()
136 pbuf->params.hist.hist_bins[2 * i + 1] = CIF_ISP_HIST_GET_BIN1_V12(value); in rkisp1_stats_get_hst_meas_v12()
/device/board/isoftstone/yangfan/kernel/src/driv/media/isp/
Disp_stats_v1x.c119 pbuf->params.hist.hist_bins[i] = readl(addr + (i * 4)); in rkisp1_stats_get_hst_meas_v10()
135 pbuf->params.hist.hist_bins[2 * i] = CIF_ISP_HIST_GET_BIN0_V12(value); in rkisp1_stats_get_hst_meas_v12()
136 pbuf->params.hist.hist_bins[2 * i + 1] = CIF_ISP_HIST_GET_BIN1_V12(value); in rkisp1_stats_get_hst_meas_v12()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
Disp_stats_v1x.c100 pbuf->params.hist.hist_bins[i] = readl(addr + (i * 0x04)); in rkisp1_stats_get_hst_meas_v10()
114 pbuf->params.hist.hist_bins[0x02 * i] = CIF_ISP_HIST_GET_BIN0_V12(value); in rkisp1_stats_get_hst_meas_v12()
115 pbuf->params.hist.hist_bins[0x02 * i + 1] = CIF_ISP_HIST_GET_BIN1_V12(value); in rkisp1_stats_get_hst_meas_v12()

12