taudule
5th January 2004, 11:12
Hello everyone and happy new year.
Can someone enlighten me about this :
For codec testing purpose, With PainshotPro, i build a bmp image with four squares, one pure black (0,0,0), one light black(16,16,16), one pure white(255,255,255), and one near white(235,235,235).
Then, with premiere, i build a 1 second avi using HUFYUV codec, with the option "Convert to YUY2" of HUFYUV checked.
Then i open the avi with this script :
AviSource("FourSquares.avi", pixel_type="YUY2")
ColorYuv(analyze=true)
ConvertToYV12()
Histogram("luma")
This is what i get:
http://odeon.hosteur.com/PbLevels.jpg
If you pick colors with some graphic tool, black is 0,0,0, white is 253,253,253.
Why then ColorYuv() and Histogram() tell that it's 16 and 235 ?
O.
Can someone enlighten me about this :
For codec testing purpose, With PainshotPro, i build a bmp image with four squares, one pure black (0,0,0), one light black(16,16,16), one pure white(255,255,255), and one near white(235,235,235).
Then, with premiere, i build a 1 second avi using HUFYUV codec, with the option "Convert to YUY2" of HUFYUV checked.
Then i open the avi with this script :
AviSource("FourSquares.avi", pixel_type="YUY2")
ColorYuv(analyze=true)
ConvertToYV12()
Histogram("luma")
This is what i get:
http://odeon.hosteur.com/PbLevels.jpg
If you pick colors with some graphic tool, black is 0,0,0, white is 253,253,253.
Why then ColorYuv() and Histogram() tell that it's 16 and 235 ?
O.