View Single Post
Old 20th February 2013, 15:16   #33  |  Link
Kazuya
Kodi + Potplayer addict
 
Join Date: Apr 2009
Location: France
Posts: 69
Thanks, it works very well !
And improves a lot 8bit encodes by eliminate banding.

But I think the weight of encoded file is 3 times louder than the same encode in 10bit. I only encoded patterns, so I'm note sure.

I used your first call, because my png is 16bit.
And to encode in 8bit, I only change output depth and mode :

Code:
ImageSource("input.png")
Dither_Convert_RGB_TO_YUV(output="YV24", lsb=True)
f3kdb(Y=0, Cb=0, Cr=0, grainY=0, grainC=0, input_depth=16, input_mode=1, output_depth=8, output_mode=0)
__________________
Hometheater builder and acoustic specialist (www.kazcorporation.com)
Kazuya is offline   Reply With Quote