Hello to the RealVNC team, We have developed our own VNC server from scratch by using the RFB protocol specification. One of the problems we have had is with the format of CPIXEL. We have been able to get 32 bit CPIXELs to work properly on all viewers, but when we get a viewer that requests an 8 bit pixel (Not palletized) the viewer disconnects, or shows blocks of strange graphics. It looks like the RealVNC viewer is smarter, and is able to handle it somehow. >From this information in the RFB spec:
ZRLE makes use of a new type CPIXEL (compressed pixel). This is the same as a PIXEL for the agreed pixel format, except where true-colour-o,ag is non-zero, bits- per-pixel is 32, depth is 24 or less and all of the bits making up the red, green and blue intensities o,t in either the least signio,cant 3 bytes or the most signio,cant 3 bytes. In this case a CPIXEL is only 3 bytes long, and contains the least signio,cant or the most signio,cant 3 bytes as appropriate. bytesP erC P ixel is the number of bytes in a CPIXEL. According to the specification I would assume that an 8 bit CPIXEL is exactly the same as a 8 bit uncompressed pixel. Where I am I going wrong here? Thanks, Steve Wiseman http://www.intelliadmin.com _______________________________________________ VNC-List mailing list [email protected] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
