[Pixman] pixman: Add support for argb/xrgb float formats, v5.
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Thu Nov 1 11:54:23 UTC 2018
Op 31-10-18 om 20:04 schreef Bill Spitzak:
> I don't like the fact that the design which allows the rgba to be different sizes cannot make them vary between float and decimal. The main reason is so that an integer for Alpha can be supported. I think maybe there should be a bit that changes the interpretation of the bit widths to a 16-valued type enumeration. For n-bit integers use n-1 as now, but remove the unusual ones and replace them with floating point and signed types. Use a lookup table to get type + width. I really don't think there are more than 16 of them:
>
> 8, 16, 32, 64 bit unsigned
> 8, 16, 32, 64 bit float
> this set leaves 8 unused values, which maybe could be allocated in the future for signed types or 128-bit types. You could also provide a few more unsigned widths (1,2,4,10,12?)
>
I'm not aware of any format that has a different type for float alpha and colors.. In any case
that's probably what you should put in the type info.
~Maarten
More information about the Pixman
mailing list