Fix a type error when gamma linearization == 0

This commit is contained in:
Steven Robertson 2011-06-12 19:18:47 -04:00
parent 9f2bc49009
commit 9a8e57cbc6

View File

@ -319,7 +319,7 @@ 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)) if lin > 0 else 0
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