Lines Matching refs:alpha
43 int dxtn, int alpha)
81 colors[3] = RGBA(0, 0, 0, alpha);
86 const uint8_t *block, uint8_t alpha)
94 extract_color(colors, color0, color1, 0, alpha);
123 * Decompress one block of a DXT1 with 1-bit alpha texture and store
160 uint8_t alpha = alpha_values[x];
161 uint32_t pixel = colors[code & 3] | ((unsigned)alpha << 24);
170 /** Convert a premultiplied alpha pixel to a straight alpha pixel. */
198 /* This format is DXT3, but returns premultiplied alpha. It needs to be
273 uint8_t alpha;
276 alpha = alpha0;
278 alpha = alpha1;
281 alpha = (uint8_t) (((8 - alpha_code) * alpha0 +
285 alpha = 0;
287 alpha = 255;
289 alpha = (uint8_t) (((6 - alpha_code) * alpha0 +
294 pixel = colors[code & 3] | ((unsigned)alpha << 24);
317 /* This format is DXT5, but returns premultiplied alpha. It needs to be
346 * @param scaled variant with scaled chroma components and opaque alpha.
379 /* This format is basically DXT5, with luma stored in alpha.
403 /* This format is basically DXT5, with luma stored in alpha.
518 * and overwrite the alpha component in 'dst' (RGBA data).