Home | History | Annotate | Download | only in video

Lines Matching refs:dst

148 	  movd_m2r((*dstp), mm2); /* dst -> mm2 */		\
393 Uint32 *dst = (Uint32 *)(to); \
396 Uint32 d = *dst; \
403 *dst++ = d1 | d; \
417 Uint16 *dst = (Uint16 *)(to); \
421 Uint32 d = *dst; \
426 *dst++ = (Uint16)(d | d >> 16); \
434 Uint16 *dst = (Uint16 *)(to); \
438 Uint32 d = *dst; \
443 *dst++ = (Uint16)(d | d >> 16); \
454 Uint8 *dst = to; \
461 d = *(Uint16 *)dst; \
466 d = (dst[0] << 16) | (dst[1] << 8) | dst[2]; \
469 d = (dst[2] << 16) | (dst[1] << 8) | dst[0]; \
474 d = *(Uint32 *)dst; \
485 *(Uint16 *)dst = (Uint16)d; \
489 dst[0] = (Uint8)(d >> 16); \
490 dst[1] = (Uint8)(d >> 8); \
491 dst[2] = (Uint8)(d); \
493 dst[0] = (Uint8)d; \
494 dst[1] = (Uint8)(d >> 8); \
495 dst[2] = (Uint8)(d >> 16); \
499 *(Uint32 *)dst = d; \
503 dst += bpp; \
528 dst -> mm2 */ \
529 movq_r2r(mm2, mm6); /* dst -> mm6 */ \
532 pand_r2r(mm4, mm6); /* dst & 0x00fefefe -> mm6 */ \
534 paddd_r2r(mm6, mm5); /* (dst & 0x00fefefe) + (dst & 0x00fefefe) -> mm5 */ \
561 Uint32 *dst = (Uint32 *)(to); \
564 Uint32 d = *dst; \
565 *dst++ = (((s & 0x00fefefe) + (d & 0x00fefefe)) >> 1) \
576 #define BLEND16_50(dst, src, mask) \
579 Uint32 d = *dst; \
580 *dst++ = (Uint16)((((s & mask) + (d & mask)) >> 1) + \
589 Uint16 *dst = (Uint16 *)(to); \
590 if(((uintptr_t)src ^ (uintptr_t)dst) & 3) { \
593 BLEND16_50(dst, src, mask); \
597 BLEND16_50(dst, src, mask); \
602 Uint32 d = *(Uint32 *)dst; \
603 *(Uint32 *)dst = ((s & (mask | mask << 16)) >> 1) \
607 dst += 2; \
610 BLEND16_50(dst, src, mask); /* last odd pixel */ \
782 static void RLEClipBlit(int w, Uint8 *srcbuf, SDL_Surface *dst,
785 SDL_PixelFormat *fmt = dst->format;
824 dstbuf += dst->pitch; \
840 SDL_Surface *dst, SDL_Rect *dstrect)
849 if ( SDL_MUSTLOCK(dst) ) {
850 if ( SDL_LockSurface(dst) < 0 ) {
858 dstbuf = (Uint8 *)dst->pixels
859 + y * dst->pitch + x * src->format->BytesPerPixel;
902 RLEClipBlit(w, srcbuf, dst, dstbuf, srcrect, alpha);
923 dstbuf += dst->pitch; \
937 if ( SDL_MUSTLOCK(dst) ) {
938 SDL_UnlockSurface(dst);
954 #define BLIT_TRANSL_888(src, dst) \
957 Uint32 d = dst; \
965 dst = d1 | d; \
972 #define BLIT_TRANSL_565(src, dst) \
975 Uint32 d = dst; \
981 dst = (Uint16)(d | d >> 16); \
984 #define BLIT_TRANSL_555(src, dst) \
987 Uint32 d = dst; \
993 dst = (Uint16)(d | d >> 16); \
1014 static void RLEAlphaClipBlit(int w, Uint8 *srcbuf, SDL_Surface *dst,
1017 SDL_PixelFormat *df = dst->format;
1077 Ptype *dst = (Ptype *)dstbuf + cofs; \
1081 do_blend(src[i], dst[i]); \
1087 dstbuf += dst->pitch; \
1107 SDL_Surface *dst, SDL_Rect *dstrect)
1112 SDL_PixelFormat *df = dst->format;
1115 if ( SDL_MUSTLOCK(dst) ) {
1116 if ( SDL_LockSurface(dst) < 0 ) {
1123 dstbuf = (Uint8 *)dst->pixels
1124 + y * dst->pitch + x * df->BytesPerPixel;
1185 RLEAlphaClipBlit(w, srcbuf, dst, dstbuf, srcrect);
1223 Ptype *dst = (Ptype *)dstbuf + ofs; \
1227 do_blend(src, *dst); \
1229 dst++; \
1234 dstbuf += dst->pitch; \
1254 if ( SDL_MUSTLOCK(dst) ) {
1255 SDL_UnlockSurface(dst);
1271 static int copy_opaque_16(void *dst, Uint32 *src, int n,
1275 Uint16 *d = dst;
1287 static int uncopy_opaque_16(Uint32 *dst, void *src, int n,
1296 PIXEL_FROM_RGBA(*dst, dfmt, r, g, b, alpha);
1298 dst++;
1306 static int copy_transl_565(void *dst, Uint32 *src, int n,
1310 Uint32 *d = dst;
1324 static int copy_transl_555(void *dst, Uint32 *src, int n,
1328 Uint32 *d = dst;
1342 static int uncopy_transl_16(Uint32 *dst, void *src, int n,
1353 PIXEL_FROM_RGBA(*dst, dfmt, r, g, b, a);
1354 dst++;
1360 static int copy_32(void *dst, Uint32 *src, int n,
1364 Uint32 *d = dst;
1377 static int uncopy_32(Uint32 *dst, void *src, int n,
1387 PIXEL_FROM_RGBA(*dst, dfmt, r, g, b, a);
1388 dst++;
1407 Uint8 *rlebuf, *dst;
1413 dest = surface->map->dst;
1488 dst = rlebuf + sizeof(RLEDestFormat);
1496 Uint8 *lastline = dst; /* end of last non-blank line */
1501 ((Uint16 *)dst)[0] = n; \
1502 ((Uint16 *)dst)[1] = m; \
1503 dst += 4; \
1505 dst[0] = n; \
1506 dst[1] = m; \
1507 dst += 2; \
1512 (((Uint16 *)dst)[0] = n, ((Uint16 *)dst)[1] = m, dst += 4)
1537 dst += copy_opaque(dst, src + runstart, len, sf, df);
1543 dst += copy_opaque(dst, src + runstart, len, sf, df);
1550 dst += (uintptr_t)dst & 2;
1571 dst += copy_transl(dst, src + runstart, len, sf, df);
1577 dst += copy_transl(dst, src + runstart, len, sf, df);
1582 lastline = dst;
1587 dst = lastline; /* back up past trailing blank lines */
1603 Uint8 *p = SDL_realloc(rlebuf, dst - rlebuf);
1644 Uint8 *rlebuf, *dst;
1686 dst = rlebuf;
1689 lastline = dst;
1696 ((Uint16 *)dst)[0] = n; \
1697 ((Uint16 *)dst)[1] = m; \
1698 dst += 4; \
1700 dst[0] = n; \
1701 dst[1] = m; \
1702 dst += 2; \
1731 SDL_memcpy(dst, srcbuf + runstart * bpp, len * bpp);
1732 dst += len * bpp;
1738 SDL_memcpy(dst, srcbuf + runstart * bpp, len * bpp);
1739 dst += len * bpp;
1744 lastline = dst;
1749 dst = lastline; /* back up bast trailing blank lines */
1764 Uint8 *p = SDL_realloc(rlebuf, dst - rlebuf);
1828 Uint32 *dst;
1852 dst = surface->pixels;
1869 srcbuf += uncopy_opaque(dst + ofs, srcbuf, run, df, sf);
1887 srcbuf += uncopy_transl(dst + ofs, srcbuf, run, df, sf);
1891 dst += surface->pitch >> 2;