/* Transforms an 18 bpp pixel into a 24bpp pixel.  */
static void colorTransform16To24bpp(uint32_t color, uint8_t *red, uint8_t *green, uint8_t *blue)
/* Transforms an 18 bpp pixel into a 24bpp pixel.  */
static void colorTransform16To24bpp(uint32_t color, uint8_t *red, uint8_t *green, uint8_t *blue)
{
  uint8_t redValue   = (color & 0x0000F800) >> 11;
  uint8_t greenValue = (color & 0x000007E0) >> 5;
  uint8_t blueValue  = (color & 0x0000001F);
  redValue   <<= 3;
  greenValue <<= 2;
  blueValue  <<= 3;
  *red   = redValue;
  *green = greenValue;
  *blue  = blueValue;
  return;
}