24bit-per-pixel support
Adam Tkac
atkac "at" redhat.com
Fri Dec 15 11:25:05 2006
Corne Beerse napsal(a):
> Adam Tkac wrote:
>
>> Hi,
>>
>> Could you tell me why vncserver doesn't support 24bit-per-pixel
>> depth? Are you going to implement this depth in newer versions of vnc?
>
>
> I'm not sure but there are many reasons to not implement 24 bits
> colordepth.
>
> - It is covered by using 32 bits colordept, just not using the upper 8
> bits.
> - It takes additional time to implement.
> - It results in additional code, including additional bugs.
> - 24 bits is not a native integer width, 32 bits is.
> - 24 bits needs special care in most handling.
> - 24 bits numbers are sometimes optimized to 32 bits anyway
> - 24 bit colordepth is sometimes using 32 bits numbers anyway
>
> On the other hand, 32 bits colordepth isn't always 32 bits colordept
> as you'd expect: It is 3 bytes for the 3 major colors (red, green and
> blue) and an additional byte for something else. This can be
> brightness (with video stuff), depth (with 2,5 D), layer, fogginess,
> opacity or other sutff. I donnot know what VNC does with it.
>
> Hence, no I donnot think 24 bits colordepth will be implemented...
>
> ... However, I'm not a VNC specialist, I'm just using my software
> development knowledge.
>
> CBee
>
Yes, I know about this problems with implementation. But some graphics
drivers (like siliconmotion) support only 8, 16 and 24 bits colordepth.
So, if you have this type of card you can't use best colordepth, only 16.
Regards, Adam