Thread: Avisynth+
View Single Post
Old 7th July 2016, 21:02   #2044  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Originally Posted by pinterf View Post
Wilbert, it was then you, who put those planar RGB constants in avisynth.h? The current development unfortunately phase lacks the high bit depth RGB.

When I uncommented and renamed the YUV planar constants in the header three weeks ago, I was thinking what to do with the RGB 48 bit, but wasn't familiar at all with that planar RGB, so the option remained in silence.
Ianb added them in avisynth.h. I just uncommented them and added the necessary stuff in order to be able to open and write 16-bit images with DevIL. It was fun to do that, but lost interest and didn't bother to clean it up.

Btw, regarding the functions ConvertTo8Bits(), etc ...
What about replacing them with a single one:
ConvertToBitDepth(bit-depth=8/16/float, dither=none/random/ordered/...)
Then you can add several dither methods later. I only implemented random dithering at that time (because that was a fast method).

Last edited by Wilbert; 8th July 2016 at 22:13.
Wilbert is offline