hey !
i don't understand the VideoSafe built in macro (looks like it doesn't do anything) so i created my own to compress the output to CCIR-601 color range for video (PAL in my case).
I just wanted to make sure is the following correct ?
black = 16 & white = 235 ?
Would you clip the values instead of compressing them?
It makes sense to use compress since 0 becomes 16 and 255 becomes 235.
Thanks for the feedback here is the simple code :
image VideoCompress(
image In=0,
float black255=16,
float white255=235
)
{
Compress1 = Compress(In, black, rLo, rLo, 0, white, rHi, rHi,
1, float black255 = black255, float white255 = white255,
float black = black255/255, float white = white255/255);
return Compress1;
}