Lines Matching refs:code_len
518 static BROTLI_INLINE void ProcessSingleCodeLength(uint32_t code_len, in ProcessSingleCodeLength() argument
523 if (code_len != 0) { /* code_len == 1..15 */ in ProcessSingleCodeLength()
524 symbol_lists[next_symbol[code_len]] = (uint16_t)(*symbol); in ProcessSingleCodeLength()
525 next_symbol[code_len] = (int)(*symbol); in ProcessSingleCodeLength()
526 *prev_code_len = code_len; in ProcessSingleCodeLength()
527 *space -= 32768U >> code_len; in ProcessSingleCodeLength()
528 code_length_histo[code_len]++; in ProcessSingleCodeLength()
530 (int)*symbol, (int)code_len)); in ProcessSingleCodeLength()
545 static BROTLI_INLINE void ProcessRepeatedCodeLength(uint32_t code_len, in ProcessRepeatedCodeLength() argument
553 if (code_len == BROTLI_REPEAT_PREVIOUS_CODE_LENGTH) { in ProcessRepeatedCodeLength()
610 uint32_t code_len; in ReadSymbolCodeLengths() local
624 code_len = BROTLI_HC_FAST_LOAD_VALUE(p); /* code_len == 0..17 */ in ReadSymbolCodeLengths()
625 if (code_len < BROTLI_REPEAT_PREVIOUS_CODE_LENGTH) { in ReadSymbolCodeLengths()
626 ProcessSingleCodeLength(code_len, &symbol, &repeat, &space, in ReadSymbolCodeLengths()
630 (code_len == BROTLI_REPEAT_PREVIOUS_CODE_LENGTH) ? 2 : 3; in ReadSymbolCodeLengths()
634 ProcessRepeatedCodeLength(code_len, repeat_delta, alphabet_size, in ReadSymbolCodeLengths()
650 uint32_t code_len; in SafeReadSymbolCodeLengths() local
666 code_len = BROTLI_HC_FAST_LOAD_VALUE(p); /* code_len == 0..17 */ in SafeReadSymbolCodeLengths()
667 if (code_len < BROTLI_REPEAT_PREVIOUS_CODE_LENGTH) { in SafeReadSymbolCodeLengths()
669 ProcessSingleCodeLength(code_len, &h->symbol, &h->repeat, &h->space, in SafeReadSymbolCodeLengths()
673 uint32_t extra_bits = code_len - 14U; in SafeReadSymbolCodeLengths()
681 ProcessRepeatedCodeLength(code_len, repeat_delta, alphabet_size, in SafeReadSymbolCodeLengths()