• Home
  • Raw
  • Download

Lines Matching refs:nbBits

146 	BYTE nbBits;  member
180 huffWeight[n] = bitsToWeight[CTable[n].nbBits]; in HUF_writeCTable_wksp()
248 CTable[n].nbBits = (BYTE)(tableLog + 1 - w); in HUF_readCTable_wksp()
259 nbPerRank[CTable[n].nbBits]++; in HUF_readCTable_wksp()
276 CTable[n].val = valPerRank[CTable[n].nbBits]++; in HUF_readCTable_wksp()
287 BYTE nbBits; member
292 const U32 largestBits = huffNode[lastNonNull].nbBits; in HUF_setMaxHeight()
302 while (huffNode[n].nbBits > maxNbBits) { in HUF_setMaxHeight()
303 totalCost += baseCost - (1 << (largestBits - huffNode[n].nbBits)); in HUF_setMaxHeight()
304 huffNode[n].nbBits = (BYTE)maxNbBits; in HUF_setMaxHeight()
307 while (huffNode[n].nbBits == maxNbBits) in HUF_setMaxHeight()
324 if (huffNode[pos].nbBits >= currNbBits) in HUF_setMaxHeight()
326 currNbBits = huffNode[pos].nbBits; /* < maxNbBits */ in HUF_setMaxHeight()
354 huffNode[rankLast[nBitsToDecrease]].nbBits++; in HUF_setMaxHeight()
359 if (huffNode[rankLast[nBitsToDecrease]].nbBits != maxNbBits - nBitsToDecrease) in HUF_setMaxHeight()
367 while (huffNode[n].nbBits == maxNbBits) in HUF_setMaxHeight()
369 huffNode[n + 1].nbBits--; in HUF_setMaxHeight()
374 huffNode[rankLast[1] + 1].nbBits--; in HUF_setMaxHeight()
466 huffNode[nodeRoot].nbBits = 0; in HUF_buildCTable_wksp()
468 huffNode[n].nbBits = huffNode[huffNode[n].parent].nbBits + 1; in HUF_buildCTable_wksp()
470 huffNode[n].nbBits = huffNode[huffNode[n].parent].nbBits + 1; in HUF_buildCTable_wksp()
482 nbPerRank[huffNode[n].nbBits]++; in HUF_buildCTable_wksp()
493 tree[huffNode[n].byte].nbBits = huffNode[n].nbBits; /* push nbBits per symbol, symbol order */ in HUF_buildCTable_wksp()
495 tree[n].val = valPerRank[tree[n].nbBits]++; /* assign value within rank, symbol order */ in HUF_buildCTable_wksp()
503 size_t nbBits = 0; in HUF_estimateCompressedSize() local
506 nbBits += CTable[s].nbBits * count[s]; in HUF_estimateCompressedSize()
508 return nbBits >> 3; in HUF_estimateCompressedSize()
516 bad |= (count[s] != 0) & (CTable[s].nbBits == 0); in HUF_validateCTable()
523 BIT_addBitsFast(bitCPtr, CTable[symbol].val, CTable[symbol].nbBits); in HUF_encodeSymbol()