Lines Matching refs:codeLengths
263 function readHuffmanCodeLengths(codeLengthCodeLengths, numSymbols, codeLengths, s) { argument
284 codeLengths[symbol++] = codeLen;
314 codeLengths[symbol++] = repeatCodeLen;
324 codeLengths.fill(0, symbol, numSymbols);
354 var /** !Int32Array */ codeLengths = new Int32Array(alphabetSize);
375 codeLengths[symbols[i]] = 2;
377 codeLengths[symbols[0]] = 1;
380 codeLengths[symbols[1]] = 1;
384 codeLengths[symbols[2]] = 3;
385 codeLengths[symbols[3]] = 3;
387 codeLengths[symbols[0]] = 2;
416 readHuffmanCodeLengths(codeLengthCodeLengths, alphabetSize, codeLengths, s);
421 buildHuffmanTable(table, offset, 8, codeLengths, alphabetSize);
1186 function buildHuffmanTable(rootTable, tableOffset, rootBits, codeLengths, codeLengthsSize) { argument
1193 count[codeLengths[symbol]]++;
1200 if (codeLengths[symbol] != 0) {
1201 sorted[offset[codeLengths[symbol]]++] = symbol;