Defines |
| #define | MAX_COMP 4 /* ever needed maximum number of components in texel */ |
| #define | MAX_VECT 4 /* ever needed maximum number of base vectors to find */ |
| #define | N_TEXELS 16 /* number of texels in a block (always 16) */ |
| #define | COLOR565(v) (word)((((v)[RCOMP] & 0xf8) << 8) | (((v)[GCOMP] & 0xfc) << 3) | ((v)[BCOMP] >> 3)) |
| #define | ENCODER(dxtn, n) |
| #define | CC_SEL(cc, which) (((dword *)(cc))[(which) / 32] >> ((which) & 31)) |
| #define | UP4(c) _rgb_scale_4[(c) & 15] |
| #define | UP5(c) _rgb_scale_5[(c) & 31] |
| #define | UP6(c) _rgb_scale_6[(c) & 63] |
| #define | ZERO_4UBV(v) *((dword *)(v)) = 0 |
Functions |
| static void | dxt1_rgb_quantize (dword *cc, const byte *lines[], int comps) |
| static void | dxt1_rgba_quantize (dword *cc, const byte *lines[], int comps) |
| static void | dxt3_rgba_quantize (dword *cc, const byte *lines[], int comps) |
| static void | dxt5_rgba_quantize (dword *cc, const byte *lines[], int comps) |
| void TAPIENTRY | dxt1_rgb_decode_1 (const void *texture, int stride, int i, int j, byte *rgba) |
| void TAPIENTRY | dxt1_rgba_decode_1 (const void *texture, int stride, int i, int j, byte *rgba) |
| void TAPIENTRY | dxt3_rgba_decode_1 (const void *texture, int stride, int i, int j, byte *rgba) |
| void TAPIENTRY | dxt5_rgba_decode_1 (const void *texture, int stride, int i, int j, byte *rgba) |
Variables |
| static const int | dxtn_color_tlat [2][4] |
| static const int | dxtn_alpha_tlat [2][8] |
| static const byte | _rgb_scale_4 [] |
| static const byte | _rgb_scale_5 [] |
| static const byte | _rgb_scale_6 [] |