Home
last modified time | relevance | path

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

/external/qemu/distrib/sdl-1.2.15/src/video/
DSDL_blit_N.c80 #define MAKE8888(dstfmt, r, g, b, a) \ argument
81 ( ((r<<dstfmt->Rshift)&dstfmt->Rmask) | \
82 ((g<<dstfmt->Gshift)&dstfmt->Gmask) | \
83 ((b<<dstfmt->Bshift)&dstfmt->Bmask) | \
84 ((a<<dstfmt->Ashift)&dstfmt->Amask) )
105 const SDL_PixelFormat *dstfmt) in calc_swizzle32() argument
122 if (!dstfmt) { in calc_swizzle32()
123 dstfmt = &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()
[all …]
DSDL_blit_1.c414 SDL_PixelFormat *dstfmt = info->dst; in Blit1toNAlpha() local
420 dstbpp = dstfmt->BytesPerPixel; in Blit1toNAlpha()
431 DISEMBLE_RGB(dst, dstbpp, dstfmt, in Blit1toNAlpha()
434 ASSEMBLE_RGB(dst, dstbpp, dstfmt, dR, dG, dB); in Blit1toNAlpha()
453 SDL_PixelFormat *dstfmt = info->dst; in Blit1toNAlphaKey() local
460 dstbpp = dstfmt->BytesPerPixel; in Blit1toNAlphaKey()
472 DISEMBLE_RGB(dst, dstbpp, dstfmt, in Blit1toNAlphaKey()
475 ASSEMBLE_RGB(dst, dstbpp, dstfmt, dR, dG, dB); in Blit1toNAlphaKey()
497 SDL_PixelFormat *dstfmt; in SDL_CalculateBlit1() local
499 dstfmt = surface->map->dst->format; in SDL_CalculateBlit1()
[all …]
DSDL_blit_A.c76 SDL_PixelFormat *dstfmt = info->dst; in BlitNto1SurfaceAlpha() local
92 dR = dstfmt->palette->colors[*dst].r; in BlitNto1SurfaceAlpha()
93 dG = dstfmt->palette->colors[*dst].g; in BlitNto1SurfaceAlpha()
94 dB = dstfmt->palette->colors[*dst].b; in BlitNto1SurfaceAlpha()
129 SDL_PixelFormat *dstfmt = info->dst; in BlitNto1PixelAlpha() local
145 dR = dstfmt->palette->colors[*dst].r; in BlitNto1PixelAlpha()
146 dG = dstfmt->palette->colors[*dst].g; in BlitNto1PixelAlpha()
147 dB = dstfmt->palette->colors[*dst].b; in BlitNto1PixelAlpha()
182 SDL_PixelFormat *dstfmt = info->dst; in BlitNto1SurfaceAlphaKey() local
200 dR = dstfmt->palette->colors[*dst].r; in BlitNto1SurfaceAlphaKey()
[all …]
DSDL_blit_0.c352 SDL_PixelFormat *dstfmt = info->dst; in BlitBtoNAlpha() local
358 dstbpp = dstfmt->BytesPerPixel; in BlitBtoNAlpha()
375 DISEMBLE_RGB(dst, dstbpp, dstfmt, in BlitBtoNAlpha()
378 ASSEMBLE_RGB(dst, dstbpp, dstfmt, dR, dG, dB); in BlitBtoNAlpha()
397 SDL_PixelFormat *dstfmt = info->dst; in BlitBtoNAlphaKey() local
405 dstbpp = dstfmt->BytesPerPixel; in BlitBtoNAlphaKey()
422 DISEMBLE_RGB(dst, dstbpp, dstfmt, in BlitBtoNAlphaKey()
425 ASSEMBLE_RGB(dst, dstbpp, dstfmt, dR, dG, dB); in BlitBtoNAlphaKey()
DSDL_pixels.c545 SDL_PixelFormat *dstfmt; in SDL_MapSurface() local
558 dstfmt = dst->format; in SDL_MapSurface()
561 switch (dstfmt->BytesPerPixel) { in SDL_MapSurface()
570 dstfmt->palette, &map->identity); in SDL_MapSurface()
577 if (srcfmt->BitsPerPixel!=dstfmt->BitsPerPixel) in SDL_MapSurface()
583 map->table = Map1toN(srcfmt, dstfmt); in SDL_MapSurface()
591 switch (dstfmt->BytesPerPixel) { in SDL_MapSurface()
594 map->table = MapNto1(srcfmt, dstfmt, &map->identity); in SDL_MapSurface()
604 if ( FORMAT_EQUAL(srcfmt, dstfmt) ) in SDL_MapSurface()