Lines Matching refs:rgb
324 inline uint8 IndexForRGB15(uint16 rgb) const;
326 inline uint8 IndexForRGB16(uint16 rgb) const;
328 inline uint8 IndexForRGB24(uint32 rgb) const;
482 \param rgb The RGB 15 color value (R[14:10]G[9:5]B[4:0]).
486 PaletteConverter::IndexForRGB15(uint16 rgb) const
488 return fColorMap->index_map[rgb];
513 \param rgb The RGB 16 color value (R[15:11]G[10:5]B[4:0]).
517 PaletteConverter::IndexForRGB16(uint16 rgb) const
519 return fColorMap->index_map[((rgb >> 1) & 0x7fe0) | (rgb & 0x1f)];
544 \param rgb The RGB 32 color value (R[31:24]G[23:16]B[15:8]).
548 PaletteConverter::IndexForRGB24(uint32 rgb) const
550 return fColorMap->index_map[((rgb & 0xf8000000) >> 17)
551 | ((rgb & 0xf80000) >> 14) | ((rgb & 0xf800) >> 11)];