Lines Matching refs:srcbuf
782 static void RLEClipBlit(int w, Uint8 *srcbuf, SDL_Surface *dst,
796 ofs += *(Type *)srcbuf; \
797 run = ((Type *)srcbuf)[1]; \
798 srcbuf += 2 * sizeof(Type); \
814 do_blit(dstbuf + startcol * bpp, srcbuf + start * bpp, \
818 srcbuf += run * bpp; \
843 Uint8 *srcbuf;
860 srcbuf = (Uint8 *)src->map->sw_data->aux_data;
871 ofs += *(Type *)srcbuf; \
872 run = ((Type *)srcbuf)[1]; \
873 srcbuf += sizeof(Type) * 2; \
875 srcbuf += run * bpp; \
902 RLEClipBlit(w, srcbuf, dst, dstbuf, srcrect, alpha);
912 ofs += *(Type *)srcbuf; \
913 run = ((Type *)srcbuf)[1]; \
914 srcbuf += 2 * sizeof(Type); \
916 do_blit(dstbuf + ofs * bpp, srcbuf, run, bpp, alpha); \
917 srcbuf += run * bpp; \
1014 static void RLEAlphaClipBlit(int w, Uint8 *srcbuf, SDL_Surface *dst,
1034 ofs += ((Ctype *)srcbuf)[0]; \
1035 run = ((Ctype *)srcbuf)[1]; \
1036 srcbuf += 2 * sizeof(Ctype); \
1049 srcbuf + (cofs - ofs) * sizeof(Ptype), \
1051 srcbuf += run * sizeof(Ptype); \
1058 srcbuf += (uintptr_t)srcbuf & 2; \
1063 ofs += ((Uint16 *)srcbuf)[0]; \
1064 run = ((Uint16 *)srcbuf)[1]; \
1065 srcbuf += 4; \
1078 Uint32 *src = (Uint32 *)srcbuf + (cofs - ofs); \
1083 srcbuf += run * 4; \
1111 Uint8 *srcbuf, *dstbuf;
1125 srcbuf = (Uint8 *)src->map->sw_data->aux_data + sizeof(RLEDestFormat);
1139 ofs += srcbuf[0];
1140 run = srcbuf[1];
1141 srcbuf += 2;
1143 srcbuf += 2 * run;
1150 srcbuf += (uintptr_t)srcbuf & 2;
1156 ofs += ((Uint16 *)srcbuf)[0];
1157 run = ((Uint16 *)srcbuf)[1];
1158 srcbuf += 4 * (run + 1);
1169 ofs += ((Uint16 *)srcbuf)[0];
1170 run = ((Uint16 *)srcbuf)[1];
1171 srcbuf += 4;
1173 srcbuf += 4 * run;
1185 RLEAlphaClipBlit(w, srcbuf, dst, dstbuf, srcrect);
1201 ofs += ((Ctype *)srcbuf)[0]; \
1202 run = ((Ctype *)srcbuf)[1]; \
1203 srcbuf += 2 * sizeof(Ctype); \
1205 PIXEL_COPY(dstbuf + ofs * sizeof(Ptype), srcbuf, \
1207 srcbuf += run * sizeof(Ptype); \
1214 srcbuf += (uintptr_t)srcbuf & 2; \
1219 ofs += ((Uint16 *)srcbuf)[0]; \
1220 run = ((Uint16 *)srcbuf)[1]; \
1221 srcbuf += 4; \
1226 Uint32 src = *(Uint32 *)srcbuf; \
1228 srcbuf += 4; \
1612 static Uint32 getpix_8(Uint8 *srcbuf)
1614 return *srcbuf;
1617 static Uint32 getpix_16(Uint8 *srcbuf)
1619 return *(Uint16 *)srcbuf;
1622 static Uint32 getpix_24(Uint8 *srcbuf)
1625 return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
1627 return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2];
1631 static Uint32 getpix_32(Uint8 *srcbuf)
1633 return *(Uint32 *)srcbuf;
1647 Uint8 *srcbuf, *curbuf, *lastline;
1682 srcbuf = (Uint8 *)surface->pixels;
1683 curbuf = srcbuf;
1714 while(x < w && (getpix(srcbuf + x * bpp) & rgbmask) == ckey)
1717 while(x < w && (getpix(srcbuf + x * bpp) & rgbmask) != ckey)
1731 SDL_memcpy(dst, srcbuf + runstart * bpp, len * bpp);
1738 SDL_memcpy(dst, srcbuf + runstart * bpp, len * bpp);
1747 srcbuf += surface->pitch;
1827 Uint8 *srcbuf;
1853 srcbuf = (Uint8 *)(df + 1);
1860 ofs += srcbuf[0];
1861 run = srcbuf[1];
1862 srcbuf += 2;
1864 ofs += ((Uint16 *)srcbuf)[0];
1865 run = ((Uint16 *)srcbuf)[1];
1866 srcbuf += 4;
1869 srcbuf += uncopy_opaque(dst + ofs, srcbuf, run, df, sf);
1877 srcbuf += (uintptr_t)srcbuf & 2;
1883 ofs += ((Uint16 *)srcbuf)[0];
1884 run = ((Uint16 *)srcbuf)[1];
1885 srcbuf += 4;
1887 srcbuf += uncopy_transl(dst + ofs, srcbuf, run, df, sf);