Fix filtering - or at least make it less broken

This commit is contained in:
Steven Robertson
2011-06-11 23:28:32 -04:00
parent 6b09e162a3
commit 299b5d5dab
2 changed files with 6 additions and 8 deletions

View File

@ -319,8 +319,8 @@ class _AnimRenderer(object):
vib = f(vib / n)
hipow = f(cen_cp.highlight_power)
lin = f(cen_cp.gam_lin_thresh)
lingam = f(math.pow(cen_cp.gam_lin_thresh, gam-1.0))
print gam, lin, lingam, cen_cp.gamma
lingam = f(math.pow(cen_cp.gam_lin_thresh, gam-1.0)) if lin > 0 else 0
print gam, vib, lin, lingam, cen_cp.gamma
# TODO: get block size from colorclip class? It actually does not
# depend on that being the case