Lines Matching refs:deUint32

323 inline deUint32 getBit (deUint64 src, int bit)  in getBit()
328 inline deUint32 getBits (deUint64 src, int low, int high) in getBits()
392 const deUint32 table[2] = { getBits(src, 37, 39), getBits(src, 34, 36) }; in decompressETC1Block()
446 const deUint32 tableNdx = table[subBlock]; in decompressETC1Block()
447 const deUint32 modifierNdx = (getBit(src, 16+pixelNdx) << 1) | getBit(src, pixelNdx); in decompressETC1Block()
507 const deUint32 table[2] = { getBits(src, 37, 39), getBits(src, 34, 36) }; in decompressETC2Block()
541 const deUint32 tableNdx = table[subBlock]; in decompressETC2Block()
542 const deUint32 modifierNdx = (getBit(src, 16+pixelNdx) << 1) | getBit(src, pixelNdx); in decompressETC2Block()
591 const deUint32 distNdx = (getBits(src, 34, 35) << 1) | getBit(src, 32); in decompressETC2Block()
621 deUint32 baseValue[2]; in decompressETC2Block()
622 deUint32 distNdx; in decompressETC2Block()
631 baseValue[0] = (((deUint32)baseR[0]) << 16) | (((deUint32)baseG[0]) << 8) | baseB[0]; in decompressETC2Block()
632 baseValue[1] = (((deUint32)baseR[1]) << 16) | (((deUint32)baseG[1]) << 8) | baseB[1]; in decompressETC2Block()
633 …distNdx = (getBit(src, 34) << 2) | (getBit(src, 32) << 1) | (deUint32)(baseValue[0] >= baseValue… in decompressETC2Block()
656 const deUint32 paintNdx = (getBit(src, 16+pixelNdx) << 1) | getBit(src, pixelNdx); in decompressETC2Block()
743 const deUint32 tableNdx = getBits(src, 48, 51); in decompressEAC8Block()
751 …const deUint32 modifierNdx = (getBit(src, pixelBitNdx + 2) << 2) | (getBit(src, pixelBitNdx + 1) … in decompressEAC8Block()
798 …const deUint32 modifierNdx = (getBit(src, pixelBitNdx + 2) << 2) | (getBit(src, pixelBitNdx + 1) … in decompressEAC11Block()
1010 inline deUint32 getBit (deUint32 src, int ndx) in getBit()
1016 inline deUint32 getBits (deUint32 src, int low, int high) in getBits()
1023 inline bool isBitSet (deUint32 src, int ndx) in isBitSet()
1028 inline deUint32 reverseBits (deUint32 src, int numBits) in reverseBits()
1031 deUint32 result = 0; in reverseBits()
1037 inline deUint32 bitReplicationScale (deUint32 src, int numSrcBits, int numDstBits) in bitReplicationScale()
1041 deUint32 dst = 0; in bitReplicationScale()
1085 deUint32 getBit (int ndx) const in getBit()
1091 deUint32 getBits (int low, int high) const in getBits()
1111 return (deUint32)(m_words[word0Ndx] >> (low%WORD_BITS)) | in getBits()
1112 …(deUint32)((m_words[word1Ndx] & (((Word)1 << high%WORD_BITS << 1) - 1)) << (high-low - high%WORD_B… in getBits()
1140 deUint32 getNext (int num) in getNext()
1197 deUint32 m;
1198 deUint32 tq; //!< Trit or quint value, depending on ISE mode.
1199 deUint32 v;
1238 deUint32 w[2];
1241 ASTCBlockMode getASTCBlockMode (deUint32 blockModeData) in getASTCBlockMode()
1253 deUint32 r = (deUint32)-1; // \note Set in the following branches. in getASTCBlockMode()
1257 const deUint32 r0 = getBit(blockModeData, 4); in getASTCBlockMode()
1258 const deUint32 r1 = getBit(blockModeData, 2); in getASTCBlockMode()
1259 const deUint32 r2 = getBit(blockModeData, 3); in getASTCBlockMode()
1260 const deUint32 i78 = getBits(blockModeData, 7, 8); in getASTCBlockMode()
1272 const deUint32 a = getBits(blockModeData, 5, 6); in getASTCBlockMode()
1284 const deUint32 r0 = getBit(blockModeData, 4); in getASTCBlockMode()
1285 const deUint32 r1 = getBit(blockModeData, 0); in getASTCBlockMode()
1286 const deUint32 r2 = getBit(blockModeData, 1); in getASTCBlockMode()
1287 const deUint32 i23 = getBits(blockModeData, 2, 3); in getASTCBlockMode()
1288 const deUint32 a = getBits(blockModeData, 5, 6); in getASTCBlockMode()
1294 const deUint32 b = getBit(blockModeData, 7); in getASTCBlockMode()
1301 const deUint32 b = getBits(blockModeData, 7, 8); in getASTCBlockMode()
1386 const deUint32 minSExtent = blockData.getBits(12, 24); in decodeVoidExtentBlock()
1387 const deUint32 maxSExtent = blockData.getBits(25, 37); in decodeVoidExtentBlock()
1388 const deUint32 minTExtent = blockData.getBits(38, 50); in decodeVoidExtentBlock()
1389 const deUint32 maxTExtent = blockData.getBits(51, 63); in decodeVoidExtentBlock()
1399 const deUint32 rgba[4] = in decodeVoidExtentBlock()
1441 void decodeColorEndpointModes (deUint32* endpointModesDst, const Block128& blockData, int numPartit… in decodeColorEndpointModes()
1447 const deUint32 highLevelSelector = blockData.getBits(23, 24); in decodeColorEndpointModes()
1451 const deUint32 mode = blockData.getBits(25, 28); in decodeColorEndpointModes()
1459 const deUint32 cemClass = highLevelSelector - (blockData.isBitSet(25 + partNdx) ? 0 : 1); in decodeColorEndpointModes()
1460 const deUint32 lowBit0Ndx = numPartitions + 2*partNdx; in decodeColorEndpointModes()
1461 const deUint32 lowBit1Ndx = numPartitions + 2*partNdx + 1; in decodeColorEndpointModes()
1462 …const deUint32 lowBit0 = blockData.getBit(lowBit0Ndx < 4 ? 25+lowBit0Ndx : extraCemBitsStart+lowB… in decodeColorEndpointModes()
1463 …const deUint32 lowBit1 = blockData.getBit(lowBit1Ndx < 4 ? 25+lowBit1Ndx : extraCemBitsStart+lowB… in decodeColorEndpointModes()
1471 inline int computeNumColorEndpointValues (deUint32 endpointMode) in computeNumColorEndpointValues()
1477 int computeNumColorEndpointValues (const deUint32* endpointModes, int numPartitions) in computeNumColorEndpointValues()
1489 deUint32 m[5]; in decodeISETritBlock()
1492 deUint32 T01 = data.getNext(2); in decodeISETritBlock()
1494 deUint32 T23 = data.getNext(2); in decodeISETritBlock()
1496 deUint32 T4 = data.getNext(1); in decodeISETritBlock()
1498 deUint32 T56 = data.getNext(2); in decodeISETritBlock()
1500 deUint32 T7 = data.getNext(1); in decodeISETritBlock()
1514 const deUint32 T = (T7 << 7) | (T56 << 5) | (T4 << 4) | (T23 << 2) | (T01 << 0); in decodeISETritBlock()
1516 static const deUint32 tritsFromT[256][5] = in decodeISETritBlock()
1536 const deUint32 (& trits)[5] = tritsFromT[T]; in decodeISETritBlock()
1550 deUint32 m[3]; in decodeISEQuintBlock()
1553 deUint32 Q012 = data.getNext(3); in decodeISEQuintBlock()
1555 deUint32 Q34 = data.getNext(2); in decodeISEQuintBlock()
1557 deUint32 Q56 = data.getNext(2); in decodeISEQuintBlock()
1569 const deUint32 Q = (Q56 << 5) | (Q34 << 3) | (Q012 << 0); in decodeISEQuintBlock()
1571 static const deUint32 quintsFromQ[256][3] = in decodeISEQuintBlock()
1583 const deUint32 (& quints)[3] = quintsFromQ[Q]; in decodeISEQuintBlock()
1667 void unquantizeColorEndpoints (deUint32* dst, const ISEDecodedResult* iseResults, int numEndpoints,… in unquantizeColorEndpoints()
1673 static const deUint32 Ca[11] = { 204, 113, 93, 54, 44, 26, 22, 13, 11, 6, 5 }; in unquantizeColorEndpoints()
1674 const deUint32 C = Ca[rangeCase]; in unquantizeColorEndpoints()
1678 const deUint32 a = getBit(iseResults[endpointNdx].m, 0); in unquantizeColorEndpoints()
1679 const deUint32 b = getBit(iseResults[endpointNdx].m, 1); in unquantizeColorEndpoints()
1680 const deUint32 c = getBit(iseResults[endpointNdx].m, 2); in unquantizeColorEndpoints()
1681 const deUint32 d = getBit(iseResults[endpointNdx].m, 3); in unquantizeColorEndpoints()
1682 const deUint32 e = getBit(iseResults[endpointNdx].m, 4); in unquantizeColorEndpoints()
1683 const deUint32 f = getBit(iseResults[endpointNdx].m, 5); in unquantizeColorEndpoints()
1685 const deUint32 A = a == 0 ? 0 : (1<<9)-1; in unquantizeColorEndpoints()
1686 const deUint32 B = rangeCase == 0 ? 0 in unquantizeColorEndpoints()
1697 : (deUint32)-1; in unquantizeColorEndpoints()
1698 DE_ASSERT(B != (deUint32)-1); in unquantizeColorEndpoints()
1735 inline bool isColorEndpointModeHDR (deUint32 mode) in isColorEndpointModeHDR()
1745 void decodeHDREndpointMode7 (UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32 in decodeHDREndpointMode7()
1747 const deUint32 m10 = getBit(v1, 7) | (getBit(v2, 7) << 1); in decodeHDREndpointMode7()
1748 const deUint32 m23 = getBits(v0, 6, 7); in decodeHDREndpointMode7()
1749 const deUint32 majComp = m10 != 3 ? m10 in decodeHDREndpointMode7()
1752 const deUint32 mode = m10 != 3 ? m23 in decodeHDREndpointMode7()
1765 const deUint32 x0 = getBit(v1, 6); in decodeHDREndpointMode7()
1766 const deUint32 x1 = getBit(v1, 5); in decodeHDREndpointMode7()
1767 const deUint32 x2 = getBit(v2, 6); in decodeHDREndpointMode7()
1768 const deUint32 x3 = getBit(v2, 5); in decodeHDREndpointMode7()
1769 const deUint32 x4 = getBit(v3, 7); in decodeHDREndpointMode7()
1770 const deUint32 x5 = getBit(v3, 6); in decodeHDREndpointMode7()
1771 const deUint32 x6 = getBit(v3, 5); in decodeHDREndpointMode7()
1824 …DREndpointMode11 (UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32 v3, deUint… in decodeHDREndpointMode11()
1826 const deUint32 major = (getBit(v5, 7) << 1) | getBit(v4, 7); in decodeHDREndpointMode11()
1835 const deUint32 mode = (getBit(v3, 7) << 2) | (getBit(v2, 7) << 1) | getBit(v1, 7); in decodeHDREndpointMode11()
1848 const deUint32 x0 = getBit(v2, 6); in decodeHDREndpointMode11()
1849 const deUint32 x1 = getBit(v3, 6); in decodeHDREndpointMode11()
1850 const deUint32 x2 = getBit(v4, 6); in decodeHDREndpointMode11()
1851 const deUint32 x3 = getBit(v5, 6); in decodeHDREndpointMode11()
1852 const deUint32 x4 = getBit(v4, 5); in decodeHDREndpointMode11()
1853 const deUint32 x5 = getBit(v5, 5); in decodeHDREndpointMode11()
1910 …e15(UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32 v3, deUint32 v4, deUint3… in decodeHDREndpointMode15()
1914 const deUint32 mode = (getBit(v7In, 7) << 1) | getBit(v6In, 7); in decodeHDREndpointMode15()
1939 … decodeColorEndpoints (ColorEndpointPair* dst, const deUint32* unquantizedEndpoints, const deUint3… in decodeColorEndpoints()
1945 const deUint32 endpointMode = endpointModes[partitionNdx]; in decodeColorEndpoints()
1946 const deUint32* v = &unquantizedEndpoints[unquantizedNdx]; in decodeColorEndpoints()
1961 const deUint32 L0 = (v[0] >> 2) | (getBits(v[1], 6, 7) << 6); in decodeColorEndpoints()
1962 const deUint32 L1 = de::min(0xffu, L0 + getBits(v[1], 0, 5)); in decodeColorEndpoints()
1970 const deUint32 v1Gr = v[1] >= v[0]; in decodeColorEndpoints()
1971 const deUint32 y0 = v1Gr ? v[0]<<4 : (v[1]<<4) + 8; in decodeColorEndpoints()
1972 const deUint32 y1 = v1Gr ? v[1]<<4 : (v[0]<<4) - 8; in decodeColorEndpoints()
1982 const deUint32 y0 = m ? (getBits(v[1], 5, 7) << 9) | (getBits(v[0], 0, 6) << 2) in decodeColorEndpoints()
1984 const deUint32 d = m ? getBits(v[1], 0, 4) << 2 in decodeColorEndpoints()
1986 const deUint32 y1 = de::min(0xfffu, y0+d); in decodeColorEndpoints()
2126 void computeColorEndpoints (ColorEndpointPair* dst, const Block128& blockData, const deUint32* endp… in computeColorEndpoints()
2137 deUint32 unquantizedEndpoints[18]; in computeColorEndpoints()
2143 void unquantizeWeights (deUint32* dst, const ISEDecodedResult* weightGrid, const ASTCBlockMode& blo… in unquantizeWeights()
2154 static const deUint32 map0[3] = { 0, 32, 63 }; in unquantizeWeights()
2155 static const deUint32 map1[5] = { 0, 16, 32, 47, 63 }; in unquantizeWeights()
2156 const deUint32* const map = rangeCase == 0 ? &map0[0] : &map1[0]; in unquantizeWeights()
2166 static const deUint32 Ca[5] = { 50, 28, 23, 13, 11 }; in unquantizeWeights()
2167 const deUint32 C = Ca[rangeCase-2]; in unquantizeWeights()
2171 const deUint32 a = getBit(weightGrid[weightNdx].m, 0); in unquantizeWeights()
2172 const deUint32 b = getBit(weightGrid[weightNdx].m, 1); in unquantizeWeights()
2173 const deUint32 c = getBit(weightGrid[weightNdx].m, 2); in unquantizeWeights()
2175 const deUint32 A = a == 0 ? 0 : (1<<7)-1; in unquantizeWeights()
2176 const deUint32 B = rangeCase == 2 ? 0 in unquantizeWeights()
2181 : (deUint32)-1; in unquantizeWeights()
2199 void interpolateWeights (TexelWeightPair* dst, const deUint32* unquantizedWeights, int blockWidth, … in interpolateWeights()
2202 const deUint32 scaleX = (1024 + blockWidth/2) / (blockWidth-1); in interpolateWeights()
2203 const deUint32 scaleY = (1024 + blockHeight/2) / (blockHeight-1); in interpolateWeights()
2209 const deUint32 gX = (scaleX*texelX*(blockMode.weightGridWidth-1) + 32) >> 6; in interpolateWeights()
2210 const deUint32 gY = (scaleY*texelY*(blockMode.weightGridHeight-1) + 32) >> 6; in interpolateWeights()
2211 const deUint32 jX = gX >> 4; in interpolateWeights()
2212 const deUint32 jY = gY >> 4; in interpolateWeights()
2213 const deUint32 fX = gX & 0xf; in interpolateWeights()
2214 const deUint32 fY = gY & 0xf; in interpolateWeights()
2215 const deUint32 w11 = (fX*fY + 8) >> 4; in interpolateWeights()
2216 const deUint32 w10 = fY - w11; in interpolateWeights()
2217 const deUint32 w01 = fX - w11; in interpolateWeights()
2218 const deUint32 w00 = 16 - fX - fY + w11; in interpolateWeights()
2219 const deUint32 v0 = jY*blockMode.weightGridWidth + jX; in interpolateWeights()
2223 const deUint32 p00 = unquantizedWeights[(v0) * numWeightsPerTexel + texelWeightNdx]; in interpolateWeights()
2224 const deUint32 p01 = unquantizedWeights[(v0 + 1) * numWeightsPerTexel + texelWeightNdx]; in interpolateWeights()
2225 …const deUint32 p10 = unquantizedWeights[(v0 + blockMode.weightGridWidth) * numWeightsPerTexel + t… in interpolateWeights()
2226 …const deUint32 p11 = unquantizedWeights[(v0 + blockMode.weightGridWidth + 1) * numWeightsPerTexel … in interpolateWeights()
2244 deUint32 unquantizedWeights[64]; in computeTexelWeights()
2250 inline deUint32 hash52 (deUint32 v) in hash52()
2252 deUint32 p = v; in hash52()
2259 int computeTexelPartition (deUint32 seedIn, deUint32 xIn, deUint32 yIn, deUint32 zIn, int numPartit… in computeTexelPartition()
2262 const deUint32 x = smallBlock ? xIn << 1 : xIn; in computeTexelPartition()
2263 const deUint32 y = smallBlock ? yIn << 1 : yIn; in computeTexelPartition()
2264 const deUint32 z = smallBlock ? zIn << 1 : zIn; in computeTexelPartition()
2265 const deUint32 seed = seedIn + 1024*(numPartitions-1); in computeTexelPartition()
2266 const deUint32 rnum = hash52(seed); in computeTexelPartition()
2306 …orEndpointPair* colorEndpoints, TexelWeightPair* texelWeights, int ccs, deUint32 partitionIndexSee… in setTexelColors()
2307 …ns, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode, const deUint32* colorEndpointMod… in setTexelColors()
2348 const deUint32 c0 = (e0[channelNdx] << 8) | (isSRGB ? 0x80 : e0[channelNdx]); in setTexelColors()
2349 const deUint32 c1 = (e1[channelNdx] << 8) | (isSRGB ? 0x80 : e1[channelNdx]); in setTexelColors()
2350 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0]; in setTexelColors()
2351 const deUint32 c = (c0*(64-w) + c1*w + 32) / 64; in setTexelColors()
2361 const deUint32 c0 = e0[channelNdx] << 4; in setTexelColors()
2362 const deUint32 c1 = e1[channelNdx] << 4; in setTexelColors()
2363 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0]; in setTexelColors()
2364 const deUint32 c = (c0*(64-w) + c1*w + 32) / 64; in setTexelColors()
2365 const deUint32 e = getBits(c, 11, 15); in setTexelColors()
2366 const deUint32 m = getBits(c, 0, 10); in setTexelColors()
2367 const deUint32 mt = m < 512 ? 3*m in setTexelColors()
2435 deUint32 colorEndpointModes[4]; in decompressASTCBlock()
2462 const deUint32 partitionIndexSeed = numPartitions > 1 ? blockData.getBits(13, 22) : (deUint32)-1; in decompressASTCBlock()