Searched refs:last_non_zero (Results 1 – 3 of 3) sorted by relevance
295 int last_non_zero = filter_length - 1; in AddFilter() local296 while (last_non_zero >= 0 && filter_values[last_non_zero] == 0) in AddFilter()297 last_non_zero--; in AddFilter()300 filter_length = last_non_zero + 1 - first_non_zero; in AddFilter()303 for (int i = first_non_zero; i <= last_non_zero; i++) in AddFilter()
114 int max_value = 0, last_non_zero = 1; in GetAlpha() local121 last_non_zero = k; in GetAlpha()127 alpha = (max_value > 1) ? ALPHA_SCALE * last_non_zero / max_value : 0; in GetAlpha()