Lines Matching refs:srcbuf

783 static void RLEClipBlit(int w, Uint8 *srcbuf, SDL_Surface *dst,
797 ofs += *(Type *)srcbuf; \
798 run = ((Type *)srcbuf)[1]; \
799 srcbuf += 2 * sizeof(Type); \
815 do_blit(dstbuf + startcol * bpp, srcbuf + start * bpp, \
819 srcbuf += run * bpp; \
844 Uint8 *srcbuf;
861 srcbuf = (Uint8 *)src->map->sw_data->aux_data;
872 ofs += *(Type *)srcbuf; \
873 run = ((Type *)srcbuf)[1]; \
874 srcbuf += sizeof(Type) * 2; \
876 srcbuf += run * bpp; \
903 RLEClipBlit(w, srcbuf, dst, dstbuf, srcrect, alpha);
913 ofs += *(Type *)srcbuf; \
914 run = ((Type *)srcbuf)[1]; \
915 srcbuf += 2 * sizeof(Type); \
917 do_blit(dstbuf + ofs * bpp, srcbuf, run, bpp, alpha); \
918 srcbuf += run * bpp; \
1015 static void RLEAlphaClipBlit(int w, Uint8 *srcbuf, SDL_Surface *dst,
1035 ofs += ((Ctype *)srcbuf)[0]; \
1036 run = ((Ctype *)srcbuf)[1]; \
1037 srcbuf += 2 * sizeof(Ctype); \
1050 srcbuf + (cofs - ofs) * sizeof(Ptype), \
1052 srcbuf += run * sizeof(Ptype); \
1059 srcbuf += (uintptr_t)srcbuf & 2; \
1064 ofs += ((Uint16 *)srcbuf)[0]; \
1065 run = ((Uint16 *)srcbuf)[1]; \
1066 srcbuf += 4; \
1079 Uint32 *src = (Uint32 *)srcbuf + (cofs - ofs); \
1084 srcbuf += run * 4; \
1112 Uint8 *srcbuf, *dstbuf;
1126 srcbuf = (Uint8 *)src->map->sw_data->aux_data + sizeof(RLEDestFormat);
1140 ofs += srcbuf[0];
1141 run = srcbuf[1];
1142 srcbuf += 2;
1144 srcbuf += 2 * run;
1151 srcbuf += (uintptr_t)srcbuf & 2;
1157 ofs += ((Uint16 *)srcbuf)[0];
1158 run = ((Uint16 *)srcbuf)[1];
1159 srcbuf += 4 * (run + 1);
1170 ofs += ((Uint16 *)srcbuf)[0];
1171 run = ((Uint16 *)srcbuf)[1];
1172 srcbuf += 4;
1174 srcbuf += 4 * run;
1186 RLEAlphaClipBlit(w, srcbuf, dst, dstbuf, srcrect);
1202 ofs += ((Ctype *)srcbuf)[0]; \
1203 run = ((Ctype *)srcbuf)[1]; \
1204 srcbuf += 2 * sizeof(Ctype); \
1206 PIXEL_COPY(dstbuf + ofs * sizeof(Ptype), srcbuf, \
1208 srcbuf += run * sizeof(Ptype); \
1215 srcbuf += (uintptr_t)srcbuf & 2; \
1220 ofs += ((Uint16 *)srcbuf)[0]; \
1221 run = ((Uint16 *)srcbuf)[1]; \
1222 srcbuf += 4; \
1227 Uint32 src = *(Uint32 *)srcbuf; \
1229 srcbuf += 4; \
1613 static Uint32 getpix_8(Uint8 *srcbuf)
1615 return *srcbuf;
1618 static Uint32 getpix_16(Uint8 *srcbuf)
1620 return *(Uint16 *)srcbuf;
1623 static Uint32 getpix_24(Uint8 *srcbuf)
1626 return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
1628 return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2];
1632 static Uint32 getpix_32(Uint8 *srcbuf)
1634 return *(Uint32 *)srcbuf;
1648 Uint8 *srcbuf, *lastline;
1682 srcbuf = (Uint8 *)surface->pixels;
1712 while(x < w && (getpix(srcbuf + x * bpp) & rgbmask) == ckey)
1715 while(x < w && (getpix(srcbuf + x * bpp) & rgbmask) != ckey)
1729 SDL_memcpy(dst, srcbuf + runstart * bpp, len * bpp);
1736 SDL_memcpy(dst, srcbuf + runstart * bpp, len * bpp);
1745 srcbuf += surface->pitch;
1825 Uint8 *srcbuf;
1851 srcbuf = (Uint8 *)(df + 1);
1858 ofs += srcbuf[0];
1859 run = srcbuf[1];
1860 srcbuf += 2;
1862 ofs += ((Uint16 *)srcbuf)[0];
1863 run = ((Uint16 *)srcbuf)[1];
1864 srcbuf += 4;
1867 srcbuf += uncopy_opaque(dst + ofs, srcbuf, run, df, sf);
1875 srcbuf += (uintptr_t)srcbuf & 2;
1881 ofs += ((Uint16 *)srcbuf)[0];
1882 run = ((Uint16 *)srcbuf)[1];
1883 srcbuf += 4;
1885 srcbuf += uncopy_transl(dst + ofs, srcbuf, run, df, sf);