Searched refs:target_sum (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/third_party/skia/tools/
H A Dgenerate_fir_coeff.py52 target_sum = 0x110 variable
71 coeffs.append(coverage * target_sum)
72 coeffs_rounded.append(int(round(coverage * target_sum)))
77 # Now we have the numbers we want, but our rounding needs to add up to target_sum.
80 if coeffs_rounded_sum > target_sum:
84 if coeffs_rounded_sum < target_sum:
109 num_elements_to_force_round = abs(coeffs_rounded_sum - target_sum)
/external/skia/tools/
H A Dgenerate_fir_coeff.py52 target_sum = 0x110 variable
71 coeffs.append(coverage * target_sum)
72 coeffs_rounded.append(int(round(coverage * target_sum)))
77 # Now we have the numbers we want, but our rounding needs to add up to target_sum.
80 if coeffs_rounded_sum > target_sum:
84 if coeffs_rounded_sum < target_sum:
109 num_elements_to_force_round = abs(coeffs_rounded_sum - target_sum)

Completed in 1038 milliseconds