Home | History | Annotate | Download | only in zopfli

Lines Matching refs:symbol

45 static void AddBits(unsigned symbol, unsigned length,
50 unsigned bit = (symbol >> i) & 1;
61 static void AddHuffmanBits(unsigned symbol, unsigned length,
67 unsigned bit = (symbol >> (length - i - 1)) & 1;
141 /* This is an encoding of a huffman tree, so now the length is a symbol */
142 unsigned char symbol = i < hlit2 ? ll_lengths[i] : d_lengths[i - hlit2];
144 if(use_16 || (symbol == 0 && (use_17 || use_18))) {
145 for (j = i + 1; j < lld_total && symbol ==
153 if (symbol == 0 && count >= 3) {
178 /* Repetitions of any symbol */
181 clcounts[symbol]++;
183 ZOPFLI_APPEND_DATA(symbol, &rle, &rle_size);
198 clcounts[symbol] += count;
201 ZOPFLI_APPEND_DATA(symbol, &rle, &rle_size);
225 unsigned symbol = clsymbols[rle[i]];
226 AddHuffmanBits(symbol, clcl[rle[i]], bp, out, outsize);
365 result += ll_lengths[256]; /*end symbol*/
383 size_t symbol, sum, limit;
405 symbol = counts[0];
408 if (i == length || counts[i] != symbol) {
409 if ((symbol == 0 && stride >= 5) || (symbol != 0 && stride >= 7)) {
416 symbol = counts[i];
572 /* End symbol. */