• Home
  • Raw
  • Download

Lines Matching refs:numBits

57 	const int numBits = (high-low) + 1;  in getBits()  local
59 DE_ASSERT(de::inRange(numBits, 1, 32)); in getBits()
61 if (numBits < 32) in getBits()
62 return (deUint32)((src >> low) & ((1u<<numBits)-1)); in getBits()
72 inline deUint32 reverseBits (deUint32 src, int numBits) in reverseBits() argument
74 DE_ASSERT(de::inRange(numBits, 0, 32)); in reverseBits()
76 for (int i = 0; i < numBits; i++) in reverseBits()
77 result |= ((src >> i) & 1) << (numBits-1-i); in reverseBits()
115 int numBits; member
117 ISEParams (ISEMode mode_, int numBits_) : mode(mode_), numBits(numBits_) {} in ISEParams()
124 case ISEMODE_TRIT: return deDivRoundUp32(numValues*8, 5) + numValues*iseParams.numBits; in computeNumRequiredBits()
125 case ISEMODE_QUINT: return deDivRoundUp32(numValues*7, 3) + numValues*iseParams.numBits; in computeNumRequiredBits()
126 case ISEMODE_PLAIN_BIT: return numValues*iseParams.numBits; in computeNumRequiredBits()
419 int& b = blockMode.weightISEParams.numBits; in getASTCBlockMode()
579 void decodeISETritBlock (ISEDecodedResult* dst, int numValues, BitAccessStream& data, int numBits) in decodeISETritBlock() argument
585 m[0] = data.getNext(numBits); in decodeISETritBlock()
587 m[1] = data.getNext(numBits); in decodeISETritBlock()
589 m[2] = data.getNext(numBits); in decodeISETritBlock()
591 m[3] = data.getNext(numBits); in decodeISETritBlock()
593 m[4] = data.getNext(numBits); in decodeISETritBlock()
644 dst[i].v = (trits[i] << numBits) + m[i]; in decodeISETritBlock()
648 void decodeISEQuintBlock (ISEDecodedResult* dst, int numValues, BitAccessStream& data, int numBits) in decodeISEQuintBlock() argument
654 m[0] = data.getNext(numBits); in decodeISEQuintBlock()
656 m[1] = data.getNext(numBits); in decodeISEQuintBlock()
658 m[2] = data.getNext(numBits); in decodeISEQuintBlock()
695 dst[i].v = (quints[i] << numBits) + m[i]; in decodeISEQuintBlock()
699 inline void decodeISEBitBlock (ISEDecodedResult* dst, BitAccessStream& data, int numBits) in decodeISEBitBlock() argument
701 dst[0].m = data.getNext(numBits); in decodeISEBitBlock()
713 decodeISETritBlock(&dst[5*blockNdx], numValuesInBlock, data, params.numBits); in decodeISE()
722 decodeISEQuintBlock(&dst[3*blockNdx], numValuesInBlock, data, params.numBits); in decodeISE()
729 decodeISEBitBlock(&dst[i], data, params.numBits); in decodeISE()
737 const int rangeCase = iseParams.numBits*2 - (iseParams.mode == ISEMODE_TRIT ? 2 : 1); in unquantizeColorEndpoints()
774 dst[endpointNdx] = bitReplicationScale(iseResults[endpointNdx].v, iseParams.numBits, 8); in unquantizeColorEndpoints()
1216 const int rangeCase = iseParams.numBits*2 + (iseParams.mode == ISEMODE_QUINT ? 1 : 0); in unquantizeWeights()
1258 dst[weightNdx] = bitReplicationScale(weightGrid[weightNdx].v, iseParams.numBits, 6); in unquantizeWeights()
1804 case ISEMODE_TRIT: return (1u << iseParams.numBits) * 3 - 1; in computeISERangeMax()
1805 case ISEMODE_QUINT: return (1u << iseParams.numBits) * 5 - 1; in computeISERangeMax()
1806 case ISEMODE_PLAIN_BIT: return (1u << iseParams.numBits) - 1; in computeISERangeMax()
2060 static void encodeISETritBlock (BitAssignAccessStream& dst, int numBits, bool fromExplicitInputBloc… in encodeISETritBlock() argument
2099 bitParts[i] = numBits > 0 ? getBits(nonBlockInput[i], 0, numBits-1) : 0; in encodeISETritBlock()
2100 tritParts[i] = nonBlockInput[i] >> numBits; in encodeISETritBlock()
2116 dst.setNext(numBits, bitParts[0]); in encodeISETritBlock()
2118 dst.setNext(numBits, bitParts[1]); in encodeISETritBlock()
2120 dst.setNext(numBits, bitParts[2]); in encodeISETritBlock()
2122 dst.setNext(numBits, bitParts[3]); in encodeISETritBlock()
2124 dst.setNext(numBits, bitParts[4]); in encodeISETritBlock()
2128 static void encodeISEQuintBlock (BitAssignAccessStream& dst, int numBits, bool fromExplicitInputBlo… in encodeISEQuintBlock() argument
2157 bitParts[i] = numBits > 0 ? getBits(nonBlockInput[i], 0, numBits-1) : 0; in encodeISEQuintBlock()
2158 quintParts[i] = nonBlockInput[i] >> numBits; in encodeISEQuintBlock()
2172 dst.setNext(numBits, bitParts[0]); in encodeISEQuintBlock()
2174 dst.setNext(numBits, bitParts[1]); in encodeISEQuintBlock()
2176 dst.setNext(numBits, bitParts[2]); in encodeISEQuintBlock()
2180 static void encodeISEBitBlock (BitAssignAccessStream& dst, int numBits, deUint32 value) in encodeISEBitBlock() argument
2182 DE_ASSERT(de::inRange(value, 0u, (1u<<numBits)-1)); in encodeISEBitBlock()
2183 dst.setNext(numBits, value); in encodeISEBitBlock()
2194 encodeISETritBlock(dst, params.numBits, input.isGivenInBlockForm, in encodeISE()
2206 encodeISEQuintBlock(dst, params.numBits, input.isGivenInBlockForm, in encodeISE()
2216 …encodeISEBitBlock(dst, params.numBits, input.isGivenInBlockForm ? input.value.block[i].bitValues[0… in encodeISE()
2398 const int iseBitMax = (1 << iseParams.numBits) - 1; in generateRandomBlock()