Lines Matching full:sorted
78 // sorted[code_lengths_size] is a pre-allocated array for sorting symbols
82 uint16_t sorted[]) { in BuildHuffmanTable() argument
86 int symbol; // symbol index in original or sorted table in BuildHuffmanTable()
89 // offsets in sorted table for each length: in BuildHuffmanTable()
110 // Generate offsets into sorted symbol table by code length. in BuildHuffmanTable()
123 sorted[offset[symbol_code_length]++] = symbol; in BuildHuffmanTable()
131 code.value = (uint16_t)sorted[0]; in BuildHuffmanTable()
157 code.value = (uint16_t)sorted[symbol++]; in BuildHuffmanTable()
184 code.value = (uint16_t)sorted[symbol++]; in BuildHuffmanTable()
211 uint16_t sorted[SORTED_SIZE_CUTOFF]; in VP8LBuildHuffmanTable() local
213 code_lengths, code_lengths_size, sorted); in VP8LBuildHuffmanTable()
215 uint16_t* const sorted = in VP8LBuildHuffmanTable() local
216 (uint16_t*)WebPSafeMalloc(code_lengths_size, sizeof(*sorted)); in VP8LBuildHuffmanTable()
217 if (sorted == NULL) return 0; in VP8LBuildHuffmanTable()
219 code_lengths, code_lengths_size, sorted); in VP8LBuildHuffmanTable()
220 WebPSafeFree(sorted); in VP8LBuildHuffmanTable()