3.8 Specification Palette color ambiguity
Jon Watte
jwatte at gmail.com
Fri Sep 25 20:42:35 BST 2009
Peter Rosin wrote:
>>> Huh? All 16 bits are significant.
>>
>> Which means high-justified.
>
> And low-justified. And centered. *All* bits are significant. You should
> think about why you are not arguing for similar language for e.g.
> red-max in PIXEL_FORMAT?
>
I'm not arguing for PIXEL_FORMAT because both the shift and the mask is
well defined. One way to explain Color would be to say that the shift
is 0 and the mask is 0xffff; that'd be clear and unambiguous no matter
what the context.
The reason I think this is not clear, is that there are so many
different graphics specs all over the technology spectrum, and some of
them only use the lower bits, based on what the resolution is -- for a
5:6:5 format, they'd use the lower 5 bits of red and blue, and the lower
6 bits of green. You can't assume that just because you think the way it
current is defined is "right," (and I would agree) there won't be some
other context within which a loose definition wouldn't be confusing.
Sincerely,
jw
--
Revenge is the most pointless and damaging of human desires.
More information about the VNC-List
mailing list