Lines Matching refs:num_codes
253 auto num_codes = br->ReadBits(4) + 4; in BuildDynamicHuffmanTable() local
257 CheckHuffmanArrayLengths(num_lit_len, num_distance, num_codes)); in BuildDynamicHuffmanTable()
261 TEST_AND_RETURN_FALSE(*length - index >= (num_codes + 1) / 2); in BuildDynamicHuffmanTable()
263 for (; idx < num_codes; idx++) { in BuildDynamicHuffmanTable()
317 size_t num_codes, in BuildHuffmanCodeLengths() argument
321 for (size_t idx = 0; idx < num_codes;) { in BuildHuffmanCodeLengths()
373 TEST_AND_RETURN_FALSE(lens->size() == num_codes); in BuildHuffmanCodeLengths()
406 size_t num_codes = buffer[index] + 4; in BuildDynamicHuffmanTable() local
410 CheckHuffmanArrayLengths(num_lit_len, num_distance, num_codes)); in BuildDynamicHuffmanTable()
412 TEST_AND_RETURN_FALSE(length - index >= (num_codes + 1) / 2); in BuildDynamicHuffmanTable()
415 for (; idx < num_codes; idx++) { in BuildDynamicHuffmanTable()
467 size_t num_codes, in BuildHuffmanCodeLengths() argument
473 for (size_t idx = 0; idx < num_codes;) { in BuildHuffmanCodeLengths()
517 TEST_AND_RETURN_FALSE(lens->size() == num_codes); in BuildHuffmanCodeLengths()