/third_party/flutter/skia/third_party/externals/sdl/src/video/ |
D | SDL_blit_N.c | 80 #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 calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt) in calc_swizzle32() argument 124 if (!dstfmt) { in calc_swizzle32() 125 dstfmt = &default_pixel_format; in calc_swizzle32() 135 Uint32 rmask = RESHIFT(srcfmt->Rshift) << (dstfmt->Rshift); in calc_swizzle32() 136 Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift); in calc_swizzle32() [all …]
|
D | SDL_blit_1.c | 437 SDL_PixelFormat *dstfmt = info->dst_fmt; in Blit1toNAlpha() local 446 dstbpp = dstfmt->BytesPerPixel; in Blit1toNAlpha() 455 DISEMBLE_RGBA(dst, dstbpp, dstfmt, pixel, dR, dG, dB, dA); in Blit1toNAlpha() 457 ASSEMBLE_RGBA(dst, dstbpp, dstfmt, dR, dG, dB, dA); in Blit1toNAlpha() 477 SDL_PixelFormat *dstfmt = info->dst_fmt; in Blit1toNAlphaKey() local 487 dstbpp = dstfmt->BytesPerPixel; in Blit1toNAlphaKey() 497 DISEMBLE_RGBA(dst, dstbpp, dstfmt, pixel, dR, dG, dB, dA); in Blit1toNAlphaKey() 499 ASSEMBLE_RGBA(dst, dstbpp, dstfmt, dR, dG, dB, dA); in Blit1toNAlphaKey() 523 SDL_PixelFormat *dstfmt; in SDL_CalculateBlit1() local 525 dstfmt = surface->map->dst->format; in SDL_CalculateBlit1() [all …]
|
D | SDL_blit_A.c | 40 SDL_PixelFormat *dstfmt = info->dst_fmt; in BlitNto1SurfaceAlpha() local 52 dR = dstfmt->palette->colors[*dst].r; in BlitNto1SurfaceAlpha() 53 dG = dstfmt->palette->colors[*dst].g; in BlitNto1SurfaceAlpha() 54 dB = dstfmt->palette->colors[*dst].b; in BlitNto1SurfaceAlpha() 87 SDL_PixelFormat *dstfmt = info->dst_fmt; in BlitNto1PixelAlpha() local 98 dR = dstfmt->palette->colors[*dst].r; in BlitNto1PixelAlpha() 99 dG = dstfmt->palette->colors[*dst].g; in BlitNto1PixelAlpha() 100 dB = dstfmt->palette->colors[*dst].b; in BlitNto1PixelAlpha() 133 SDL_PixelFormat *dstfmt = info->dst_fmt; in BlitNto1SurfaceAlphaKey() local 147 dR = dstfmt->palette->colors[*dst].r; in BlitNto1SurfaceAlphaKey() [all …]
|
D | SDL_blit_0.c | 363 SDL_PixelFormat *dstfmt = info->dst_fmt; in BlitBtoNAlpha() local 372 dstbpp = dstfmt->BytesPerPixel; in BlitBtoNAlpha() 386 DISEMBLE_RGBA(dst, dstbpp, dstfmt, pixel, dR, dG, dB, dA); in BlitBtoNAlpha() 388 ASSEMBLE_RGBA(dst, dstbpp, dstfmt, dR, dG, dB, dA); in BlitBtoNAlpha() 408 SDL_PixelFormat *dstfmt = info->dst_fmt; in BlitBtoNAlphaKey() local 419 dstbpp = dstfmt->BytesPerPixel; in BlitBtoNAlphaKey() 433 DISEMBLE_RGBA(dst, dstbpp, dstfmt, pixel, dR, dG, dB, dA); in BlitBtoNAlphaKey() 435 ASSEMBLE_RGBA(dst, dstbpp, dstfmt, dR, dG, dB, dA); in BlitBtoNAlphaKey()
|
D | SDL_pixels.c | 996 SDL_PixelFormat *dstfmt; in SDL_MapSurface() local 1009 dstfmt = dst->format; in SDL_MapSurface() 1011 if (SDL_ISPIXELFORMAT_INDEXED(dstfmt->format)) { in SDL_MapSurface() 1014 Map1to1(srcfmt->palette, dstfmt->palette, &map->identity); in SDL_MapSurface() 1020 if (srcfmt->BitsPerPixel != dstfmt->BitsPerPixel) in SDL_MapSurface() 1026 src->map->info.b, src->map->info.a, dstfmt); in SDL_MapSurface() 1032 if (SDL_ISPIXELFORMAT_INDEXED(dstfmt->format)) { in SDL_MapSurface() 1034 map->info.table = MapNto1(srcfmt, dstfmt, &map->identity); in SDL_MapSurface() 1043 if (srcfmt == dstfmt) { in SDL_MapSurface() 1062 if (dstfmt->palette) { in SDL_MapSurface() [all …]
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_vX_meta_copy.c | 394 enum pipe_format dstfmt, unsigned dstmask, in panvk_meta_copy_img2img_shader() argument 402 util_format_name(srcfmt), util_format_name(dstfmt), in panvk_meta_copy_img2img_shader() 444 util_format_get_component_bits(dstfmt, UTIL_FORMAT_COLORSPACE_RGB, 0); in panvk_meta_copy_img2img_shader() 445 unsigned ndstcomps = util_format_get_nr_components(dstfmt); in panvk_meta_copy_img2img_shader() 448 if (srcfmt == PIPE_FORMAT_R5G6B5_UNORM && dstfmt == PIPE_FORMAT_R8G8_UNORM) { in panvk_meta_copy_img2img_shader() 467 } else if (srcfmt == PIPE_FORMAT_R8G8_UNORM && dstfmt == PIPE_FORMAT_R5G6B5_UNORM) { in panvk_meta_copy_img2img_shader() 489 assert(srcfmt == dstfmt); in panvk_meta_copy_img2img_shader() 491 if (util_format_is_unorm(dstfmt)) { in panvk_meta_copy_img2img_shader() 588 enum pipe_format dstfmt; member 667 .dstfmt = panvk_meta_copy_img_format(dst->pimage.layout.format), in panvk_meta_copy_img2img() [all …]
|