|
The driver provides the struct fb_var_screeninfo to user-level applications. In there, the r,g,b color bit offsets and lengths in pixel data are specified. The application is then responcible to craft image data accordingly.
Currently, the driver specifies 5-5-5 colorspace(because a lot LCD's out there are 555+I, not 565 type), but that can be patched easily if hw is wired differently.
Actually, there is quite a bit of difference on 5-5-5 and 5-5-5-I on images, where gradient color surfaces are used. But handling this extra I(intansity) bit is left to the user application. Usually calculating this extra bit is not worth it, because of the calculation overhead, though.
|