Lines Matching defs:cc
559 fxt1_quantize_CHROMA (GLuint *cc,
573 FX64_MOV32(hi, 4); /* cc-chroma = "010" + unused bit */
581 ((Fx64 *)cc)[1] = hi;
594 cc[1] = lohi;
595 cc[0] = lolo;
600 fxt1_quantize_ALPHA0 (GLuint *cc,
634 ((Fx64 *)cc)[1] = hi;
647 cc[1] = lohi;
648 cc[0] = lolo;
653 fxt1_quantize_ALPHA1 (GLuint *cc,
753 cc[0] = 0;
769 cc[0] = lolo;
773 cc[1] = 0;
789 cc[1] = lohi;
805 ((Fx64 *)cc)[1] = hi;
810 fxt1_quantize_HI (GLuint *cc,
845 hihi = 0; /* cc-hi = "00" */
856 cc[3] = hihi;
857 cc[0] = cc[1] = cc[2] = 0;
867 GLuint *kk = (GLuint *)((char *)cc + t / 8);
886 fxt1_quantize_MIXED1 (GLuint *cc,
946 cc[0] = ~0u;
952 cc[0] = 0;
973 cc[0] = lolo;
980 cc[1] = ~0u;
986 cc[1] = 0;
1007 cc[1] = lohi;
1019 ((Fx64 *)cc)[1] = hi;
1024 fxt1_quantize_MIXED0 (GLuint *cc,
1115 cc[0] = 0;
1144 cc[0] = lolo;
1148 cc[1] = 0;
1177 cc[1] = lohi;
1188 ((Fx64 *)cc)[1] = hi;
1193 fxt1_quantize (GLuint *cc, const GLubyte *lines[], GLint comps)
1251 fxt1_quantize_ALPHA0(cc, input, reord, l);
1253 cc[0] = cc[1] = cc[2] = -1;
1254 cc[3] = 0;
1256 fxt1_quantize_HI(cc, input, reord, l);
1258 fxt1_quantize_CHROMA(cc, input);
1265 fxt1_quantize_ALPHA1(cc, input);
1267 cc[0] = cc[1] = cc[2] = ~0u;
1268 cc[3] = 0;
1270 fxt1_quantize_MIXED1(cc, input);
1272 fxt1_quantize_MIXED0(cc, input);
1401 #define CC_SEL(cc, which) (((GLuint *)(cc))[(which) / 32] >> ((which) & 31))
1410 const GLuint *cc;
1413 cc = (const GLuint *)(code + t / 8);
1414 t = (cc[0] >> (t & 7)) & 7;
1420 cc = (const GLuint *)(code + 12);
1422 b = UP5(CC_SEL(cc, 0));
1423 g = UP5(CC_SEL(cc, 5));
1424 r = UP5(CC_SEL(cc, 10));
1426 b = UP5(CC_SEL(cc, 15));
1427 g = UP5(CC_SEL(cc, 20));
1428 r = UP5(CC_SEL(cc, 25));
1430 b = LERP(6, t, UP5(CC_SEL(cc, 0)), UP5(CC_SEL(cc, 15)));
1431 g = LERP(6, t, UP5(CC_SEL(cc, 5)), UP5(CC_SEL(cc, 20)));
1432 r = LERP(6, t, UP5(CC_SEL(cc, 10)), UP5(CC_SEL(cc, 25)));
1445 const GLuint *cc;
1448 cc = (const GLuint *)code;
1450 cc++;
1453 t = (cc[0] >> (t * 2)) & 3;
1456 cc = (const GLuint *)(code + 8 + t / 8);
1457 kk = cc[0] >> (t & 7);
1468 const GLuint *cc;
1472 cc = (const GLuint *)code;
1475 t = (cc[1] >> (t * 2)) & 3;
1478 col[0][GCOMP] = CC_SEL(cc, 99);
1479 col[0][RCOMP] = CC_SEL(cc, 104);
1481 col[1][BCOMP] = CC_SEL(cc, 109);
1482 col[1][GCOMP] = CC_SEL(cc, 114);
1483 col[1][RCOMP] = CC_SEL(cc, 119);
1484 glsb = CC_SEL(cc, 126);
1485 selb = CC_SEL(cc, 33);
1487 t = (cc[0] >> (t * 2)) & 3;
1489 col[0][BCOMP] = CC_SEL(cc, 64);
1490 col[0][GCOMP] = CC_SEL(cc, 69);
1491 col[0][RCOMP] = CC_SEL(cc, 74);
1493 col[1][BCOMP] = CC_SEL(cc, 79);
1494 col[1][GCOMP] = CC_SEL(cc, 84);
1495 col[1][RCOMP] = CC_SEL(cc, 89);
1496 glsb = CC_SEL(cc, 125);
1497 selb = CC_SEL(cc, 1);
1500 if (CC_SEL(cc, 124) & 1) {
1554 const GLuint *cc;
1557 cc = (const GLuint *)code;
1558 if (CC_SEL(cc, 124) & 1) {
1564 t = (cc[1] >> (t * 2)) & 3;
1567 col0[GCOMP] = CC_SEL(cc, 99);
1568 col0[RCOMP] = CC_SEL(cc, 104);
1569 col0[ACOMP] = CC_SEL(cc, 119);
1571 t = (cc[0] >> (t * 2)) & 3;
1573 col0[BCOMP] = CC_SEL(cc, 64);
1574 col0[GCOMP] = CC_SEL(cc, 69);
1575 col0[RCOMP] = CC_SEL(cc, 74);
1576 col0[ACOMP] = CC_SEL(cc, 109);
1585 b = UP5(CC_SEL(cc, 79));
1586 g = UP5(CC_SEL(cc, 84));
1587 r = UP5(CC_SEL(cc, 89));
1588 a = UP5(CC_SEL(cc, 114));
1590 b = LERP(3, t, UP5(col0[BCOMP]), UP5(CC_SEL(cc, 79)));
1591 g = LERP(3, t, UP5(col0[GCOMP]), UP5(CC_SEL(cc, 84)));
1592 r = LERP(3, t, UP5(col0[RCOMP]), UP5(CC_SEL(cc, 89)));
1593 a = LERP(3, t, UP5(col0[ACOMP]), UP5(CC_SEL(cc, 114)));
1599 cc++;
1602 t = (cc[0] >> (t * 2)) & 3;
1609 cc = (const GLuint *)code;
1610 a = UP5(cc[3] >> (t * 5 + 13));
1612 cc = (const GLuint *)(code + 8 + t / 8);
1613 kk = cc[0] >> (t & 7);
1631 fxt1_decode_1HI, /* cc-high = "00?" */
1632 fxt1_decode_1HI, /* cc-high = "00?" */
1633 fxt1_decode_1CHROMA, /* cc-chroma = "010" */