colour lib needs reviewers

Guillaume Chatelet via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 12 04:31:13 PDT 2016


On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote:
> I think I'm about as happy with my colour lib as I'm going to 
> be. It really needs reviews.
>
> I added packed-RGB support, including weird micro-float and
> shared-exponent formats.
> They're important for interacting with any real-time rendering 
> libraries.
> There is only one texture format I'm aware of that isn't 
> supported,
> and that is u7e3 floats, only available on Xbox360 ;)
>
> Chromatic adaptation functions are in.
> I've done a tidy/reorg pass.
>
> I'm not sure what else should be in the scope of this lib.
>
> PR: https://github.com/dlang/phobos/pull/2845
> dub: https://code.dlang.org/packages/color
> docs: 
> http://dtest.thecybershadow.net/artifact/website-04a64e024cf75be39700bebd3a50d26f6c7bd163-7185c8ec7b15c9e785880cab6d512e6f/web/library-prerelease/std/experimental/color.html
>
> - Manu

And also, do you handle limited (16-235) to full dynamic range 
(0-255) conversions?

It's a setting some acquisition/graphic card allow.
https://wiki.videolan.org/VSG:Video:Color_washed_out/

 From this page as well 
http://www.digitalpreservation.gov/formats/fdd/fdd000352.shtml

"Video and wide range. The ITU-R specifications support values 
for Y, Cb, and Cr that conform to what is sometimes called "video 
range," "legal range," or "studio swing" levels. Expressed in 
terms of 8-bit tonal range values, video range has a 16-235 
levels for Y and 16-240 levels for Cr and Cb. The term video 
range is used to contrast with "wide range" or "super white " 
values from 0 to 255, sometimes used when video signals are 
created using computer-based graphics applications."


More information about the Digitalmars-d mailing list