Lines Matching refs:bpp

153 static int PaletteInsert(CARD32 rgb, int numPixels, int bpp);
456 #define DEFINE_CHECK_SOLID_FUNCTION(bpp) \ argument
459 CheckSolidTile##bpp(x, y, w, h, colorPtr, needSameColor) \
464 CARD##bpp *fbptr; \
465 CARD##bpp colorValue; \
468 fbptr = (CARD##bpp *) \
469 &rfbScreen.pfbMemory[y * rfbScreen.paddedWidthInBytes + x * (bpp/8)]; \
480 fbptr = (CARD##bpp *)((CARD8 *)fbptr + rfbScreen.paddedWidthInBytes); \
1005 #define DEFINE_FILL_PALETTE_FUNCTION(bpp) \ argument
1008 FillPalette##bpp(count) \
1011 CARD##bpp *data = (CARD##bpp *)tightBeforeBuf; \
1012 CARD##bpp c0, c1, ci; \
1052 PaletteInsert (c0, (CARD32)n0, bpp); \
1053 PaletteInsert (c1, (CARD32)n1, bpp); \
1060 if (!PaletteInsert (ci, (CARD32)ni, bpp)) \
1066 PaletteInsert (ci, (CARD32)ni, bpp); \
1072 #define DEFINE_FAST_FILL_PALETTE_FUNCTION(bpp) \ argument
1075 FastFillPalette##bpp(cl, data, w, pitch, h) \
1077 CARD##bpp *data; \
1080 CARD##bpp c0, c1, ci, mask, c0t, c1t, cit; \
1124 &cl->format, (char *)&c0, (char *)&c0t, bpp/8, \
1127 &cl->format, (char *)&c1, (char *)&c1t, bpp/8, \
1142 PaletteInsert (c0t, (CARD32)n0, bpp); \
1143 PaletteInsert (c1t, (CARD32)n1, bpp); \
1154 (char *)&ci, (char *)&cit, bpp/8, \
1156 if (!PaletteInsert (cit, (CARD32)ni, bpp)) \
1166 &cl->format, (char *)&ci, (char *)&cit, bpp/8, \
1168 PaletteInsert (cit, (CARD32)ni, bpp); \
1190 PaletteInsert(rgb, numPixels, bpp) in PaletteInsert() argument
1193 int bpp;
1199 hash_key = (bpp == 16) ? HASH_FUNC16(rgb) : HASH_FUNC32(rgb);
1296 #define DEFINE_IDX_ENCODE_FUNCTION(bpp) \ argument
1299 EncodeIndexedRect##bpp(buf, count) \
1304 CARD##bpp *src; \
1305 CARD##bpp rgb; \
1308 src = (CARD##bpp *) buf; \
1315 pnode = palette.hash[HASH_FUNC##bpp(rgb)]; \
1317 if ((CARD##bpp)pnode->rgb == rgb) { \
1333 #define DEFINE_MONO_ENCODE_FUNCTION(bpp) \ argument
1336 EncodeMonoRect##bpp(buf, w, h) \
1340 CARD##bpp *ptr; \
1341 CARD##bpp bg; \
1346 ptr = (CARD##bpp *) buf; \
1347 bg = (CARD##bpp) monoBackground; \