colour lib needs reviewers
Guillaume Chatelet via Digitalmars-d
digitalmars-d at puremagic.com
Mon Sep 12 01:09:58 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
Looks pretty good to me.
Quick question though. Do you handle endianness?
DPX might be a dead file format but it's main usage relies on
10bits packed RGB into 32 bits (last two bits are discarded or
alpha) but it can be either little or big endian.
Good job on the library though!
More information about the Digitalmars-d
mailing list