def create_protune(gamut,
transfer_function,
- name,
lut_directory,
lut_resolution_1d,
aliases):
c1 = 113.0
c2 = 1.0
c3 = 112.0
- linear = ((pow(c1, (normalized_code_value)) - c2) / c3)
+ linear = ((pow(c1, normalized_code_value) - c2) / c3)
return linear
protune_1 = create_protune(
'Protune Native',
'Protune Flat',
- 'Protune',
lut_directory,
lut_resolution_1d,
['protuneflat_protunegamutexp'])
protune_2 = create_protune(
'',
'Protune Flat',
- 'Protune',
lut_directory,
lut_resolution_1d,
['crv_protuneflat'])
protune_3 = create_protune(
'Protune Native',
'',
- 'Protune',
lut_directory,
lut_resolution_1d,
['lin_protunegamutexp'])