Home
last modified time | relevance | path

Searched refs:srcfmt (Results 1 – 5 of 5) sorted by relevance

/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_blit_N.c104 static vector unsigned char calc_swizzle32(const SDL_PixelFormat *srcfmt, in calc_swizzle32() argument
119 if (!srcfmt) { in calc_swizzle32()
120 srcfmt = &default_pixel_format; in calc_swizzle32()
133 Uint32 rmask = RESHIFT(srcfmt->Rshift) << (dstfmt->Rshift); in calc_swizzle32()
134 Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift); in calc_swizzle32()
135 Uint32 bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift); in calc_swizzle32()
139 amask = ((srcfmt->Amask) ? RESHIFT(srcfmt->Ashift) : 0x10) << (dstfmt->Ashift); in calc_swizzle32()
156 SDL_PixelFormat *srcfmt = info->src; in Blit_RGB888_RGB565Altivec() local
158 vector unsigned char vpermute = calc_swizzle32(srcfmt, NULL); in Blit_RGB888_RGB565Altivec()
188 DISEMBLE_RGBA((Uint8 *)src, 4, srcfmt, Pixel, \ in Blit_RGB888_RGB565Altivec()
[all …]
DSDL_blit_A.c74 SDL_PixelFormat *srcfmt = info->src; in BlitNto1SurfaceAlpha() local
76 int srcbpp = srcfmt->BytesPerPixel; in BlitNto1SurfaceAlpha()
78 const unsigned A = srcfmt->alpha; in BlitNto1SurfaceAlpha()
90 DISEMBLE_RGB(src, srcbpp, srcfmt, Pixel, sR, sG, sB); in BlitNto1SurfaceAlpha()
127 SDL_PixelFormat *srcfmt = info->src; in BlitNto1PixelAlpha() local
129 int srcbpp = srcfmt->BytesPerPixel; in BlitNto1PixelAlpha()
143 DISEMBLE_RGBA(src,srcbpp,srcfmt,Pixel,sR,sG,sB,sA); in BlitNto1PixelAlpha()
180 SDL_PixelFormat *srcfmt = info->src; in BlitNto1SurfaceAlphaKey() local
182 int srcbpp = srcfmt->BytesPerPixel; in BlitNto1SurfaceAlphaKey()
183 Uint32 ckey = srcfmt->colorkey; in BlitNto1SurfaceAlphaKey()
[all …]
DSDL_pixels.c543 SDL_PixelFormat *srcfmt; in SDL_MapSurface() local
556 srcfmt = src->format; in SDL_MapSurface()
558 switch (srcfmt->BytesPerPixel) { in SDL_MapSurface()
568 map->table = Map1to1(srcfmt->palette, in SDL_MapSurface()
576 if (srcfmt->BitsPerPixel!=dstfmt->BitsPerPixel) in SDL_MapSurface()
582 map->table = Map1toN(srcfmt, dstfmt); in SDL_MapSurface()
593 map->table = MapNto1(srcfmt, dstfmt, &map->identity); in SDL_MapSurface()
603 if ( FORMAT_EQUAL(srcfmt, dstfmt) ) in SDL_MapSurface()
DSDL_blit_0.c396 SDL_PixelFormat *srcfmt = info->src; in BlitBtoNAlphaKey() local
398 const SDL_Color *srcpal = srcfmt->palette->colors; in BlitBtoNAlphaKey()
401 const int A = srcfmt->alpha; in BlitBtoNAlphaKey()
402 Uint32 ckey = srcfmt->colorkey; in BlitBtoNAlphaKey()
DSDL_blit_1.c452 SDL_PixelFormat *srcfmt = info->src; in Blit1toNAlphaKey() local
455 Uint32 ckey = srcfmt->colorkey; in Blit1toNAlphaKey()
457 const int A = srcfmt->alpha; in Blit1toNAlphaKey()