Lines Matching refs:color24
490 static unsigned char color24togray8( unsigned int color24 );
491 static unsigned char findbestgray( unsigned int color24 );
845 unsigned int color24 = 0;
848 color24 |= clut[i+0] << 16;
849 color24 |= clut[i+1] << 8;
850 color24 |= clut[i+2];
852 return color24;
857 findbestgray( unsigned int color24 )
864 gray8 = color24togray8( color24 ); /* convert the original color into grayscale */
896 color24togray8( unsigned int color24 )
902 R = (color24 & 0xFF0000) >> 16 ;
903 G = (color24 & 0xFF00) >> 8 ;
904 B = (color24 & 0xFF);