Home
last modified time | relevance | path

Searched refs:bin_cnt (Results 1 – 1 of 1) sorted by relevance

/external/libvpx/libvpx/vp9/encoder/
Dvp9_noise_estimate.c167 unsigned int bin_cnt; in vp9_update_noise_estimate() local
259 for (bin_cnt = 0; bin_cnt < MAX_VAR_HIST_BINS; bin_cnt++) { in vp9_update_noise_estimate()
260 if (bin_cnt == 0) in vp9_update_noise_estimate()
261 hist_avg[bin_cnt] = (hist[0] + hist[1] + hist[2]) / 3; in vp9_update_noise_estimate()
262 else if (bin_cnt == MAX_VAR_HIST_BINS - 1) in vp9_update_noise_estimate()
263 hist_avg[bin_cnt] = hist[MAX_VAR_HIST_BINS - 1] >> 2; in vp9_update_noise_estimate()
264 else if (bin_cnt == MAX_VAR_HIST_BINS - 2) in vp9_update_noise_estimate()
265 hist_avg[bin_cnt] = (hist[bin_cnt - 1] + 2 * hist[bin_cnt] + in vp9_update_noise_estimate()
266 (hist[bin_cnt + 1] >> 1) + 2) >> in vp9_update_noise_estimate()
269 hist_avg[bin_cnt] = in vp9_update_noise_estimate()
[all …]