Data Structures |
| struct | Fx64 |
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 32 /* number of texels in a block (always 32) */ |
| #define | LL_N_REP 50 /* number of iterations in lloyd's vq */ |
| #define | LL_RMS_D 10 /* fault tolerance (maximum delta) */ |
| #define | LL_RMS_E 255 /* fault tolerance (maximum error) */ |
| #define | ALPHA_TS 2 /* alpha threshold: (255 - ALPHA_TS) deemed opaque */ |
| #define | ISTBLACK(v) (*((GLuint *)(v)) == 0) |
| #define | FX64_NATIVE 0 |
| #define | FX64_MOV32(a, b) a.lo = b |
| #define | FX64_OR32(a, b) a.lo |= b |
| #define | FX64_SHL(a, c) |
| #define | F(i) (GLfloat)1 /* can be used to obtain an oblong metric: 0.30 / 0.59 / 0.11 */ |
| #define | SAFECDOT 1 /* for paranoids */ |
| #define | MAKEIVEC(NV, NC, IV, B, V0, V1) |
| #define | CALCCDOT(TEXEL, NV, NC, IV, B, V) |
| #define | CC_SEL(cc, which) (((GLuint *)(cc))[(which) / 32] >> ((which) & 31)) |
| #define | UP5(c) _rgb_scale_5[(c) & 31] |
| #define | UP6(c, b) _rgb_scale_6[(((c) & 31) << 1) | ((b) & 1)] |
| #define | LERP(n, t, c0, c1) (((n) - (t)) * (c0) + (t) * (c1) + (n) / 2) / (n) |
Functions |
| static void | fxt1_encode (GLuint width, GLuint height, GLint comps, const void *source, GLint srcRowStride, void *dest, GLint destRowStride) |
| void | fxt1_decode_1 (const void *texture, GLint stride, GLint i, GLint j, GLchan *rgba) |
| void | _mesa_init_texture_fxt1 (GLcontext *ctx) |
| static GLboolean | texstore_rgb_fxt1 (TEXSTORE_PARAMS) |
| static GLboolean | texstore_rgba_fxt1 (TEXSTORE_PARAMS) |
| static void | fetch_texel_2d_rgba_fxt1 (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLchan *texel) |
| static void | fetch_texel_2d_f_rgba_fxt1 (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) |
| static void | fetch_texel_2d_rgb_fxt1 (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLchan *texel) |
| static void | fetch_texel_2d_f_rgb_fxt1 (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) |
| static GLint | fxt1_bestcol (GLfloat vec[][MAX_COMP], GLint nv, GLubyte input[MAX_COMP], GLint nc) |
| static GLint | fxt1_worst (GLfloat vec[MAX_COMP], GLubyte input[N_TEXELS][MAX_COMP], GLint nc, GLint n) |
| static GLint | fxt1_variance (GLdouble variance[MAX_COMP], GLubyte input[N_TEXELS][MAX_COMP], GLint nc, GLint n) |
| static GLint | fxt1_choose (GLfloat vec[][MAX_COMP], GLint nv, GLubyte input[N_TEXELS][MAX_COMP], GLint nc, GLint n) |
| static GLint | fxt1_lloyd (GLfloat vec[][MAX_COMP], GLint nv, GLubyte input[N_TEXELS][MAX_COMP], GLint nc, GLint n) |
| static void | fxt1_quantize_CHROMA (GLuint *cc, GLubyte input[N_TEXELS][MAX_COMP]) |
| static void | fxt1_quantize_ALPHA0 (GLuint *cc, GLubyte input[N_TEXELS][MAX_COMP], GLubyte reord[N_TEXELS][MAX_COMP], GLint n) |
| static void | fxt1_quantize_ALPHA1 (GLuint *cc, GLubyte input[N_TEXELS][MAX_COMP]) |
| static void | fxt1_quantize_HI (GLuint *cc, GLubyte input[N_TEXELS][MAX_COMP], GLubyte reord[N_TEXELS][MAX_COMP], GLint n) |
| static void | fxt1_quantize_MIXED1 (GLuint *cc, GLubyte input[N_TEXELS][MAX_COMP]) |
| static void | fxt1_quantize_MIXED0 (GLuint *cc, GLubyte input[N_TEXELS][MAX_COMP]) |
| static void | fxt1_quantize (GLuint *cc, const GLubyte *lines[], GLint comps) |
| static void | fxt1_decode_1HI (const GLubyte *code, GLint t, GLchan *rgba) |
| static void | fxt1_decode_1CHROMA (const GLubyte *code, GLint t, GLchan *rgba) |
| static void | fxt1_decode_1MIXED (const GLubyte *code, GLint t, GLchan *rgba) |
| static void | fxt1_decode_1ALPHA (const GLubyte *code, GLint t, GLchan *rgba) |
Variables |
| struct gl_texture_format | _mesa_texformat_rgb_fxt1 |
| struct gl_texture_format | _mesa_texformat_rgba_fxt1 |
| static const GLubyte | _rgb_scale_5 [] |
| static const GLubyte | _rgb_scale_6 [] |
GL_EXT_texture_compression_fxt1 support.
Definition in file texcompress_fxt1.c.