/third_party/ffmpeg/libavcodec/ |
D | mjpegdec_common.c | 31 int nb_codes = 0; in build_huffman_codes() local 33 nb_codes += bits_table[i]; in build_huffman_codes() 34 av_assert1(nb_codes <= 256); in build_huffman_codes() 35 for (; j < nb_codes; j++) in build_huffman_codes() 38 return nb_codes; in build_huffman_codes() 46 int nb_codes = build_huffman_codes(huff_size, bits_table); in ff_mjpeg_build_vlc() local 48 for (int i = 0; i < nb_codes; i++) { in ff_mjpeg_build_vlc() 55 return ff_init_vlc_from_lengths(vlc, 9, nb_codes, huff_size, 1, in ff_mjpeg_build_vlc()
|
D | bitstream.c | 145 static int vlc_common_init(VLC *vlc_arg, int nb_bits, int nb_codes, in vlc_common_init() argument 152 av_assert0(nb_codes <= LOCALBUF_ELEMS); in vlc_common_init() 161 if (nb_codes > LOCALBUF_ELEMS) { in vlc_common_init() 162 *buf = av_malloc_array(nb_codes, sizeof(VLCcode)); in vlc_common_init() 189 static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, in build_table() argument 207 for (i = 0; i < nb_codes; i++) { in build_table() 240 for (k = i+1; k < nb_codes; k++) { in build_table() 278 static int vlc_common_end(VLC *vlc, int nb_bits, int nb_codes, VLCcode *codes, in vlc_common_end() argument 281 int ret = build_table(vlc, nb_bits, nb_codes, codes, flags); in vlc_common_end() 323 int ff_init_vlc_sparse(VLC *vlc_arg, int nb_bits, int nb_codes, in ff_init_vlc_sparse() argument [all …]
|
D | vlc.h | 38 #define init_vlc(vlc, nb_bits, nb_codes, \ argument 42 ff_init_vlc_sparse(vlc, nb_bits, nb_codes, \ 47 int ff_init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, 82 int ff_init_vlc_from_lengths(VLC *vlc, int nb_bits, int nb_codes, 126 #define INIT_VLC_STATIC_FROM_LENGTHS(vlc, bits, nb_codes, lens, len_wrap, \ argument 133 ff_init_vlc_from_lengths(vlc, bits, nb_codes, lens, len_wrap, \
|
D | huffman.c | 157 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, int nb_bits, in ff_huff_build_tree() argument 164 for (i = 0; i < nb_codes; i++) { in ff_huff_build_tree() 176 AV_QSORT(nodes, nb_codes, Node, cmp); in ff_huff_build_tree() 177 cur_node = nb_codes; in ff_huff_build_tree() 178 nodes[nb_codes*2-1].count = 0; in ff_huff_build_tree() 179 for (i = 0; i < nb_codes * 2 - 1; i += 2) { in ff_huff_build_tree() 195 if (build_huff_tree(vlc, nodes, nb_codes * 2 - 2, flags, nb_bits) < 0) { in ff_huff_build_tree()
|
D | mv30.c | 377 static int decode_coeffs(GetBitContext *gb, int16_t *coeffs, int nb_codes) in decode_coeffs() argument 379 memset(coeffs, 0, nb_codes * sizeof(*coeffs)); in decode_coeffs() 381 for (int i = 0; i < nb_codes;) { in decode_coeffs() 427 int nb_codes = get_bits(gb, 16); in decode_intra() local 429 av_fast_padded_malloc(&s->coeffs, &s->coeffs_size, nb_codes * sizeof(*s->coeffs)); in decode_intra() 432 ret = decode_coeffs(gb, s->coeffs, nb_codes); in decode_intra() 436 bytestream2_init(&gbyte, (uint8_t *)s->coeffs, nb_codes * sizeof(*s->coeffs)); in decode_intra() 510 int nb_codes = get_bits(gb, 16); in decode_inter() local 518 av_fast_padded_malloc(&s->coeffs, &s->coeffs_size, nb_codes * sizeof(*s->coeffs)); in decode_inter() 524 ret = decode_coeffs(gb, s->coeffs, nb_codes); in decode_inter() [all …]
|
D | qdm2_tablegen.h | 114 static av_cold void build_vlc(VLC *vlc, int nb_bits, int nb_codes, in build_vlc() argument 119 ff_init_vlc_from_lengths(vlc, nb_bits, nb_codes, in build_vlc()
|
D | huffman.h | 43 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, int nb_bits,
|
D | agm.c | 1021 int nb_codes = 0; in build_huff() local 1029 bits[nb_codes] = bitlen[i]; in build_huff() 1030 codes[nb_codes] = new_codes[i]; in build_huff() 1031 symbols[nb_codes] = i; in build_huff() 1032 nb_codes++; in build_huff() 1037 return ff_init_vlc_sparse(vlc, 13, nb_codes, in build_huff()
|
D | magicyuvenc.c | 249 for (unsigned i = 32, nb_codes = 0; i > 0; i--) { in calculate_codes() local 251 codes_count[i] = nb_codes / 2; // # of non-leaf nodes on level i in calculate_codes() 252 nb_codes = codes_count[i] + curr; // # of nodes on level i in calculate_codes()
|
D | tscc2.c | 55 static av_cold void tscc2_init_vlc(VLC *vlc, int *offset, int nb_codes, in tscc2_init_vlc() argument 63 ff_init_vlc_from_lengths(vlc, TSCC2_VLC_BITS, nb_codes, in tscc2_init_vlc()
|
D | rv40.c | 45 int nb_codes, const uint8_t (*tab)[2]) in rv40_init_table() argument 53 ff_init_vlc_from_lengths(vlc, nb_bits, nb_codes, in rv40_init_table()
|
D | atrac9dec.c | 842 static av_cold void atrac9_init_vlc(VLC *vlc, int nb_bits, int nb_codes, in atrac9_init_vlc() argument 850 ff_init_vlc_from_lengths(vlc, nb_bits, nb_codes, in atrac9_init_vlc() 854 *tab += nb_codes; in atrac9_init_vlc()
|
D | intrax8.c | 52 static av_cold void x8_init_vlc(VLC *vlc, int nb_bits, int nb_codes, in x8_init_vlc() argument 59 ff_init_vlc_from_lengths(vlc, nb_bits, nb_codes, &table[0][1], 2, in x8_init_vlc()
|