Lines Matching refs:swizzle
302 astcenc_swz swizzle in validate_compression_swz() argument
305 switch (static_cast<int>(swizzle)) in validate_compression_swz()
327 const astcenc_swizzle& swizzle in validate_compression_swizzle() argument
329 if (validate_compression_swz(swizzle.r) || in validate_compression_swizzle()
330 validate_compression_swz(swizzle.g) || in validate_compression_swizzle()
331 validate_compression_swz(swizzle.b) || in validate_compression_swizzle()
332 validate_compression_swz(swizzle.a)) in validate_compression_swizzle()
349 astcenc_swz swizzle in validate_decompression_swz() argument
353 switch (static_cast<int>(swizzle)) in validate_decompression_swz()
376 const astcenc_swizzle& swizzle in validate_decompression_swizzle() argument
378 if (validate_decompression_swz(swizzle.r) || in validate_decompression_swizzle()
379 validate_decompression_swz(swizzle.g) || in validate_decompression_swizzle()
380 validate_decompression_swz(swizzle.b) || in validate_decompression_swizzle()
381 validate_decompression_swz(swizzle.a)) in validate_decompression_swizzle()
850 const astcenc_swizzle& swizzle, in compress_image() argument
889 bool needs_swz = (swizzle.r != ASTCENC_SWZ_R) || (swizzle.g != ASTCENC_SWZ_G) || in compress_image()
890 (swizzle.b != ASTCENC_SWZ_B) || (swizzle.a != ASTCENC_SWZ_A); in compress_image()
962 load_func(decode_mode, image, blk, bsd, x * block_x, y * block_y, z * block_z, swizzle); in compress_image()
1064 const astcenc_swizzle* swizzle, in astcenc_compress_image() argument
1072 (void)swizzle; in astcenc_compress_image()
1087 status = validate_compression_swizzle(*swizzle); in astcenc_compress_image()
1123 auto init_avg = [ctx, &image, swizzle]() { in astcenc_compress_image()
1129 image, ctx->config.a_scale_radius, *swizzle, in astcenc_compress_image()
1143 compress_image(*ctxo, thread_index, image, *swizzle, data_out); in astcenc_compress_image()
1186 const astcenc_swizzle* swizzle, in astcenc_decompress_image() argument
1199 status = validate_decompression_swizzle(*swizzle); in astcenc_decompress_image()
1266 x * block_x, y * block_y, z * block_z, *swizzle); in astcenc_decompress_image()