Lines Matching refs:gb
26 asset->xll_size = get_bits(&s->gb, s->exss_size_nbits) + 1;
29 if (asset->xll_sync_present = get_bits1(&s->gb)) {
33 skip_bits(&s->gb, 4);
36 xll_delay_nbits = get_bits(&s->gb, 5) + 1;
39 asset->xll_delay_nframes = get_bits_long(&s->gb, xll_delay_nbits);
42 asset->xll_sync_offset = get_bits(&s->gb, s->exss_size_nbits);
52 asset->lbr_size = get_bits(&s->gb, 14) + 1;
55 if (get_bits1(&s->gb))
57 skip_bits(&s->gb, 2);
62 int i, j, drc_present, descr_size, descr_pos = get_bits_count(&s->gb);
65 descr_size = get_bits(&s->gb, 9) + 1;
68 asset->asset_index = get_bits(&s->gb, 3);
76 if (get_bits1(&s->gb))
78 skip_bits(&s->gb, 4);
81 if (get_bits1(&s->gb))
83 skip_bits(&s->gb, 24);
86 if (get_bits1(&s->gb)) {
88 int text_size = get_bits(&s->gb, 10) + 1;
91 if (get_bits_left(&s->gb) < text_size * 8)
95 skip_bits_long(&s->gb, text_size * 8);
99 asset->pcm_bit_res = get_bits(&s->gb, 5) + 1;
102 asset->max_sample_rate = ff_dca_sampling_freqs[get_bits(&s->gb, 4)];
105 asset->nchannels_total = get_bits(&s->gb, 8) + 1;
108 if (asset->one_to_one_map_ch_to_spkr = get_bits1(&s->gb)) {
114 asset->embedded_stereo = asset->nchannels_total > 2 && get_bits1(&s->gb);
117 asset->embedded_6ch = asset->nchannels_total > 6 && get_bits1(&s->gb);
120 if (asset->spkr_mask_enabled = get_bits1(&s->gb)) {
122 spkr_mask_nbits = (get_bits(&s->gb, 2) + 1) << 2;
125 asset->spkr_mask = get_bits(&s->gb, spkr_mask_nbits);
129 if ((spkr_remap_nsets = get_bits(&s->gb, 3)) && !spkr_mask_nbits) {
137 nspeakers[i] = ff_dca_count_chs_for_mask(get_bits(&s->gb, spkr_mask_nbits));
141 int nch_for_remaps = get_bits(&s->gb, 5) + 1;
145 int remap_ch_mask = get_bits_long(&s->gb, nch_for_remaps);
148 skip_bits_long(&s->gb, av_popcount(remap_ch_mask) * 5);
158 asset->representation_type = get_bits(&s->gb, 3);
167 drc_present = get_bits1(&s->gb);
171 skip_bits(&s->gb, 8);
174 if (get_bits1(&s->gb))
176 skip_bits(&s->gb, 5);
180 skip_bits(&s->gb, 8);
183 if (s->mix_metadata_enabled && get_bits1(&s->gb)) {
187 skip_bits1(&s->gb);
190 skip_bits(&s->gb, 6);
193 if (get_bits(&s->gb, 2) == 3)
195 skip_bits(&s->gb, 8);
198 skip_bits(&s->gb, 3);
202 if (get_bits1(&s->gb))
204 skip_bits_long(&s->gb, 6 * s->nmixoutchs[i]);
206 skip_bits_long(&s->gb, 6 * s->nmixoutconfigs);
222 int mix_map_mask = get_bits(&s->gb, s->nmixoutchs[i]);
225 skip_bits_long(&s->gb, av_popcount(mix_map_mask) * 6);
235 asset->coding_mode = get_bits(&s->gb, 2);
240 asset->extension_mask = get_bits(&s->gb, 12);
244 asset->core_size = get_bits(&s->gb, 14) + 1;
246 if (get_bits1(&s->gb))
248 skip_bits(&s->gb, 2);
253 asset->xbr_size = get_bits(&s->gb, 14) + 1;
257 asset->xxch_size = get_bits(&s->gb, 14) + 1;
261 asset->x96_size = get_bits(&s->gb, 12) + 1;
270 skip_bits(&s->gb, 16);
273 skip_bits(&s->gb, 16);
290 skip_bits(&s->gb, 14);
293 skip_bits(&s->gb, 8);
296 if (get_bits1(&s->gb))
298 skip_bits(&s->gb, 3);
304 asset->hd_stream_id = get_bits(&s->gb, 3);
313 if (ff_dca_seek_bits(&s->gb, descr_pos + descr_size * 8)) {
382 if ((ret = init_get_bits8(&s->gb, data, size)) < 0)
386 skip_bits_long(&s->gb, 32);
389 skip_bits(&s->gb, 8);
392 s->exss_index = get_bits(&s->gb, 2);
395 wide_hdr = get_bits1(&s->gb);
398 header_size = get_bits(&s->gb, 8 + 4 * wide_hdr) + 1;
401 if (s->avctx && ff_dca_check_crc(s->avctx, &s->gb, 32 + 8, header_size * 8)) {
409 s->exss_size = get_bits(&s->gb, s->exss_size_nbits) + 1;
417 if (s->static_fields_present = get_bits1(&s->gb)) {
421 skip_bits(&s->gb, 2);
424 skip_bits(&s->gb, 3);
427 if (get_bits1(&s->gb))
429 skip_bits_long(&s->gb, 36);
432 s->npresents = get_bits(&s->gb, 3) + 1;
440 s->nassets = get_bits(&s->gb, 3) + 1;
449 active_exss_mask[i] = get_bits(&s->gb, s->exss_index + 1);
453 skip_bits_long(&s->gb, av_popcount(active_exss_mask[i]) * 8);
456 if (s->mix_metadata_enabled = get_bits1(&s->gb)) {
460 skip_bits(&s->gb, 2);
463 spkr_mask_nbits = (get_bits(&s->gb, 2) + 1) << 2;
466 s->nmixoutconfigs = get_bits(&s->gb, 2) + 1;
470 s->nmixoutchs[i] = ff_dca_count_chs_for_mask(get_bits(&s->gb, spkr_mask_nbits));
481 s->assets[i].asset_size = get_bits(&s->gb, s->exss_size_nbits) + 1;
507 if (ff_dca_seek_bits(&s->gb, header_size * 8)) {