Home
last modified time | relevance | path

Searched refs:val_counts (Results 1 - 2 of 2) sorted by relevance

/third_party/ffmpeg/libavcodec/tests/
H A Dmjpegenc_huffman.c38 PTable val_counts[256]; in check_lengths() local
45 val_counts[i] = (PTable){.value = i, .prob = probs[i]}; in check_lengths()
48 ff_mjpegenc_huffman_compute_bits(val_counts, lengths, nprobs, L); in check_lengths()
53 if (val_counts[j].value == i) break; in check_lengths()
57 prob = val_counts[j].prob; in check_lengths()
120 PTable val_counts[] = { in main() local
139 // smaller-than-normal test cases. This mutates val_counts by sorting. in main()
140 ff_mjpegenc_huffman_compute_bits(val_counts, distincts, in main()
/third_party/ffmpeg/libavcodec/
H A Dmjpegenc_huffman.c163 PTable val_counts[257]; in ff_mjpeg_encode_huffman_close() local
174 val_counts[j].value = i; in ff_mjpeg_encode_huffman_close()
175 val_counts[j].prob = s->val_count[i]; in ff_mjpeg_encode_huffman_close()
179 val_counts[j].value = 256; in ff_mjpeg_encode_huffman_close()
180 val_counts[j].prob = 0; in ff_mjpeg_encode_huffman_close()
181 ff_mjpegenc_huffman_compute_bits(val_counts, distincts, nval + 1, 16); in ff_mjpeg_encode_huffman_close()

Completed in 2 milliseconds