/third_party/ffmpeg/libavcodec/ |
D | bitstream.c | 145 static int vlc_common_init(VLC *vlc_arg, int nb_bits, int nb_codes, in vlc_common_init() argument 150 (*vlc)->bits = nb_bits; in vlc_common_init() 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 333 ret = vlc_common_init(vlc_arg, nb_bits, nb_codes, &vlc, &localvlc, in ff_init_vlc_sparse() 346 if (len > 3*nb_bits || len > 32) { \ in ff_init_vlc_sparse() 371 COPY(len > nb_bits); in ff_init_vlc_sparse() 374 COPY(len && len <= nb_bits); in ff_init_vlc_sparse() 377 return vlc_common_end(vlc, nb_bits, nb_codes, buf, in ff_init_vlc_sparse() [all …]
|
D | get_bits.h | 708 int n, nb_bits; \ 719 nb_bits = -n; \ 721 index = SHOW_UBITS(name, gb, nb_bits) + code; \ 725 LAST_SKIP_BITS(name, gb, nb_bits); \ 728 nb_bits = -n; \ 730 index = SHOW_UBITS(name, gb, nb_bits) + code; \ 741 int n, nb_bits; \ 754 nb_bits = -n; \ 756 index = SHOW_UBITS(name, gb, nb_bits) + level; \ 760 LAST_SKIP_BITS(name, gb, nb_bits); \ [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,
|
D | huffman.c | 139 static int build_huff_tree(VLC *vlc, Node *nodes, int head, int flags, int nb_bits) in build_huff_tree() argument 149 return ff_init_vlc_sparse(vlc, nb_bits, pos, lens, 2, 2, bits, 4, 4, xlat, 1, 1, 0); in build_huff_tree() 157 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, int nb_bits, in ff_huff_build_tree() argument 195 if (build_huff_tree(vlc, nodes, nb_codes * 2 - 2, flags, nb_bits) < 0) { in ff_huff_build_tree()
|
D | notchlc.c | 259 const int nb_bits = control[i] + 1; in decode_blocks() local 260 const int div = (1 << nb_bits) - 1; in decode_blocks() 263 … + i * ylinesize + 0] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 1… in decode_blocks() 264 … + i * ylinesize + 1] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 1… in decode_blocks() 265 … + i * ylinesize + 2] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 1… in decode_blocks() 266 … + i * ylinesize + 3] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 1… in decode_blocks()
|
D | vorbisdec.c | 55 unsigned int nb_bits; member 442 codebook_setup->nb_bits = V_NB_BITS2; in vorbis_parse_setup_hdr_codebooks() 444 codebook_setup->nb_bits = V_NB_BITS; in vorbis_parse_setup_hdr_codebooks() 446 …setup->maxdepth = (codebook_setup->maxdepth+codebook_setup->nb_bits - 1) / codebook_setup->nb_bits; in vorbis_parse_setup_hdr_codebooks() 448 if ((ret = init_vlc(&codebook_setup->vlc, codebook_setup->nb_bits, in vorbis_parse_setup_hdr_codebooks() 1131 codebook.nb_bits, codebook.maxdepth); in vorbis_floor0_decode() 1245 vc->codebooks[vf->class_masterbook[partition_class]].nb_bits, 3); in vorbis_floor1_decode() 1256 vc->codebooks[book].nb_bits, 3); in vorbis_floor1_decode() 1352 codebook->nb_bits, 3); in setup_classifs() 1454 coffs = get_vlc2(gb, codebook.vlc.table, codebook.nb_bits, 3); in vorbis_residue_decode_internal() [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 | huffyuvdec.c | 581 nb_bits = -n; \ 582 index = SHOW_UBITS(name, gb, nb_bits) + code; \ 586 LAST_SKIP_BITS(name, gb, nb_bits); \ 589 nb_bits = -n; \ 590 index = SHOW_UBITS(name, gb, nb_bits) + code; \ 606 int nb_bits; \ 687 int nb_bits, code, n; in decode_plane_bitstream() local 707 int nb_bits, code, n; in decode_plane_bitstream() local 757 int code, n, nb_bits; in decode_bgr_1() local
|
D | rv40.c | 44 static av_cold void rv40_init_table(VLC *vlc, unsigned *offset, int nb_bits, in rv40_init_table() argument 50 vlc->table_allocated = 1 << nb_bits; in rv40_init_table() 51 *offset += 1 << nb_bits; in rv40_init_table() 53 ff_init_vlc_from_lengths(vlc, nb_bits, nb_codes, in rv40_init_table()
|
D | hcadec.c | 309 int nb_bits = max_bits_table[scale]; in dequantize_coefficients() local 310 int value = get_bitsz(gb, nb_bits); in dequantize_coefficients() 320 skip_bits_long(gb, quant_spectrum_bits[value] - nb_bits); in dequantize_coefficients()
|
D | aacps_common.c | 292 #define PS_INIT_VLC_STATIC(num, nb_bits, size) \ argument 293 INIT_VLC_STATIC(&vlc_ps[num], nb_bits, ps_tmp[num].table_size / ps_tmp[num].elem_size, \
|
D | dcahuff.c | 1306 #define LBR_INIT_VLC(vlc, tab, nb_bits) \ in ff_dca_init_vlcs() argument 1310 ff_init_vlc_sparse(&vlc, nb_bits, FF_ARRAY_ELEMS(tab##_codes), \ in ff_dca_init_vlcs()
|
D | adpcm.c | 644 int k0, signmask, nb_bits, count; in adpcm_swf_decode() local 651 nb_bits = get_bits(&gb, 2)+2; in adpcm_swf_decode() 652 table = swf_index_tables[nb_bits-2]; in adpcm_swf_decode() 653 k0 = 1 << (nb_bits-2); in adpcm_swf_decode() 654 signmask = 1 << (nb_bits-1); in adpcm_swf_decode() 662 … for (count = 0; get_bits_count(&gb) <= size - nb_bits*avctx->channels && count < 4095; count++) { in adpcm_swf_decode() 667 int delta = get_bits(&gb, nb_bits); in adpcm_swf_decode()
|
D | cbs_av1_syntax_template.c | 50 static int FUNC(trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw, int nb_bits) in FUNC() 54 av_assert0(nb_bits > 0); in FUNC() 57 --nb_bits; in FUNC() 59 while (nb_bits > 0) { in FUNC() 61 --nb_bits; in FUNC()
|
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()
|
D | cbs_av1.c | 1038 int nb_bits = obu->obu_size * 8 + start_pos - end_pos; in cbs_av1_read_unit() local 1040 if (nb_bits <= 0) in cbs_av1_read_unit() 1043 err = cbs_av1_read_trailing_bits(ctx, &gbc, nb_bits); in cbs_av1_read_unit()
|
D | cook.c | 197 static av_cold int build_vlc(VLC *vlc, int nb_bits, const uint8_t counts[16], in build_vlc() argument 208 return ff_init_vlc_from_lengths(vlc, nb_bits, num, lens, 1, in build_vlc()
|
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()
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
D | bit_writer_utils.h | 48 void VP8PutBits(VP8BitWriter* const bw, uint32_t value, int nb_bits); 49 void VP8PutSignedBits(VP8BitWriter* const bw, int value, int nb_bits); 57 const uint64_t nb_bits = 8 + bw->nb_bits_; // bw->nb_bits_ is <= 0, note in VP8BitWriterPos() local 58 return (bw->pos_ + bw->run_) * 8 + nb_bits; in VP8BitWriterPos()
|
D | bit_writer_utils.c | 143 void VP8PutBits(VP8BitWriter* const bw, uint32_t value, int nb_bits) { in VP8PutBits() argument 145 assert(nb_bits > 0 && nb_bits < 32); in VP8PutBits() 146 for (mask = 1u << (nb_bits - 1); mask; mask >>= 1) { in VP8PutBits() 151 void VP8PutSignedBits(VP8BitWriter* const bw, int value, int nb_bits) { in VP8PutSignedBits() argument 154 VP8PutBits(bw, ((-value) << 1) | 1, nb_bits + 1); in VP8PutSignedBits() 156 VP8PutBits(bw, value << 1, nb_bits + 1); in VP8PutSignedBits()
|
/third_party/skia/third_party/externals/libwebp/ |
D | ChangeLog | 4175 f4888f77 emit 9 - nb_bits trailing zeros instead of 8
|