Lines Matching full:sorted
82 int* sorted = NULL; // symbols sorted by code length in VP8LBuildHuffmanTable() local
84 int symbol; // symbol index in original or sorted table in VP8LBuildHuffmanTable()
87 // offsets in sorted table for each length: in VP8LBuildHuffmanTable()
108 // Generate offsets into sorted symbol table by code length. in VP8LBuildHuffmanTable()
117 sorted = (int*)WebPSafeMalloc(code_lengths_size, sizeof(*sorted)); in VP8LBuildHuffmanTable()
118 if (sorted == NULL) { in VP8LBuildHuffmanTable()
126 sorted[offset[symbol_code_length]++] = symbol; in VP8LBuildHuffmanTable()
134 code.value = (uint16_t)sorted[0]; in VP8LBuildHuffmanTable()
136 WebPSafeFree(sorted); in VP8LBuildHuffmanTable()
156 WebPSafeFree(sorted); in VP8LBuildHuffmanTable()
162 code.value = (uint16_t)sorted[symbol++]; in VP8LBuildHuffmanTable()
175 WebPSafeFree(sorted); in VP8LBuildHuffmanTable()
190 code.value = (uint16_t)sorted[symbol++]; in VP8LBuildHuffmanTable()
198 WebPSafeFree(sorted); in VP8LBuildHuffmanTable()
203 WebPSafeFree(sorted); in VP8LBuildHuffmanTable()