[PATCH] atmel_lcdfb: support 16bit BGR:565 mode, remove unsupported 15bit modes
Peter Korsgaard
jacmet at sunsite.dk
Mon Jan 9 07:20:13 EST 2012
>>>>> "Russell" == Russell King <- ARM Linux <linux at arm.linux.org.uk>> writes:
Hi,
Russell> You describe the RGB555 vs RGB565 via the bitfield values in
Russell> var->red, var-> green and var->blue. So, RGB(or BGR)565 has
Russell> var->green.length with 6, and RGB(or BGR)555 has this as 5.
Russell> In both cases, bits_per_pixel is 16 as that's the width of a
Russell> pixel in the frame buffer.
Russell> If the bitfield can't be interpreted by the driver as
Russell> identifying one of these combinations, then you're supposed to
Russell> chose one (and in the case where it's fixed by hardware, you
Russell> set the bitfields according to what the hardware supports.)
Indeed, and as the hardware can only interprete 1/2/4/8 paletted and
16/24 RGB, we shouldn't claim to support 15bit.
--
Bye, Peter Korsgaard
More information about the linux-arm-kernel
mailing list