@StainlessS: No, leave it alone, it was a proof of concept to optimize for speed, happens to be half the speed :S
@StvG: Kb and Kg might be floats but if you reference them from the standard values in ITU they are truncated to 3 or 4 digits. I derive them from the primaries with no limit in float precision, same for the gamut transformation matrices. Although if I'm not wrong avs+ will truncate them to single floats (?).
I will try to mix the YUV<->RGB conversion matrices with the gamut one to try to optimize it although I'm not optimistic since the format conversion should happen in gamma encoded sources. Also I will try to show some comparisons on color ramps since color bars are obviously designed with the standard in mind.
|