Lines Matching refs:gbc
201 GetBitContext *gbc = &s->gbc;
204 gaq_mode = get_bits(gbc, 2);
214 gaq_gain[gs++] = get_bits1(gbc) << (gaq_mode-1);
222 int group_code = get_bits(gbc, 5);
247 int v = get_bits(gbc, bits);
262 int mant = get_sbits(gbc, gbits);
267 mant = get_sbits(gbc, mbits);
296 GetBitContext *gbc = &s->gbc;
326 skip_bits(gbc, 5); // skip bitstream id
330 s->dialog_normalization[i] = -get_bits(gbc, 5);
338 s->compression_exists[i] = get_bits1(gbc);
340 s->heavy_dynamic_range[i] = AC3_HEAVY_RANGE(get_bits(gbc, 8));
346 if (get_bits1(gbc)) {
348 int channel_map = get_bits(gbc, 16);
363 if (get_bits1(gbc)) {
366 s->preferred_downmix = get_bits(gbc, 2);
369 s->center_mix_level_ltrt = get_bits(gbc, 3);
370 s->center_mix_level = get_bits(gbc, 3);
374 s->surround_mix_level_ltrt = av_clip(get_bits(gbc, 3), 3, 7);
375 s->surround_mix_level = av_clip(get_bits(gbc, 3), 3, 7);
380 if (s->lfe_on && (s->lfe_mix_level_exists = get_bits1(gbc))) {
381 s->lfe_mix_level = get_bits(gbc, 5);
388 if (get_bits1(gbc)) {
389 skip_bits(gbc, 6); // skip program scale factor
392 if (get_bits1(gbc)) {
393 skip_bits(gbc, 6); // skip external program scale factor
396 switch(get_bits(gbc, 2)) {
397 case 1: skip_bits(gbc, 5); break;
398 case 2: skip_bits(gbc, 12); break;
400 int mix_data_size = (get_bits(gbc, 5) + 2) << 3;
401 skip_bits_long(gbc, mix_data_size);
408 if (get_bits1(gbc)) {
412 skip_bits(gbc, 8); // skip pan mean direction index
413 skip_bits(gbc, 6); // skip reserved paninfo bits
418 if (get_bits1(gbc)) {
420 if (s->num_blocks == 1 || get_bits1(gbc)) {
421 skip_bits(gbc, 5);
429 if (get_bits1(gbc)) {
430 s->bitstream_mode = get_bits(gbc, 3);
431 skip_bits(gbc, 2); // skip copyright bit and original bitstream bit
433 s->dolby_surround_mode = get_bits(gbc, 2);
434 s->dolby_headphone_mode = get_bits(gbc, 2);
437 s->dolby_surround_ex_mode = get_bits(gbc, 2);
440 if (get_bits1(gbc)) {
441 skip_bits(gbc, 8); // skip mix level, room type, and A/D converter type
445 skip_bits1(gbc); // skip source sample rate code
454 skip_bits1(gbc); // skip converter synchronization flag
459 (s->num_blocks == 6 || get_bits1(gbc))) {
460 skip_bits(gbc, 6); // skip frame size code
464 if (get_bits1(gbc)) {
465 int addbsil = get_bits(gbc, 6);
467 skip_bits(gbc, 8); // skip additional bit stream info
474 ac3_exponent_strategy = get_bits1(gbc);
475 parse_aht_info = get_bits1(gbc);
483 s->snr_offset_strategy = get_bits(gbc, 2);
484 parse_transient_proc_info = get_bits1(gbc);
486 s->block_switch_syntax = get_bits1(gbc);
490 s->dither_flag_syntax = get_bits1(gbc);
497 s->bit_allocation_syntax = get_bits1(gbc);
507 s->fast_gain_syntax = get_bits1(gbc);
508 s->dba_syntax = get_bits1(gbc);
509 s->skip_syntax = get_bits1(gbc);
510 parse_spx_atten_data = get_bits1(gbc);
516 s->cpl_strategy_exists[blk] = (!blk || get_bits1(gbc));
518 s->cpl_in_use[blk] = get_bits1(gbc);
533 s->exp_strategy[blk][ch] = get_bits(gbc, 2);
539 int frmchexpstr = get_bits(gbc, 5);
548 s->exp_strategy[blk][s->lfe_ch] = get_bits1(gbc);
553 (s->num_blocks == 6 || get_bits1(gbc))) {
554 skip_bits(gbc, 5 * s->fbw_channels); // skip converter channel exponent strategy
573 s->channel_uses_aht[ch] = use_aht && get_bits1(gbc);
581 int csnroffst = (get_bits(gbc, 6) - 15) << 4;
582 int snroffst = (csnroffst + get_bits(gbc, 4)) << 2;
590 if (get_bits1(gbc)) { // channel in transient processing
591 skip_bits(gbc, 10); // skip transient processing location
592 skip_bits(gbc, 8); // skip transient processing length
599 if (parse_spx_atten_data && get_bits1(gbc)) {
600 s->spx_atten_code[ch] = get_bits(gbc, 5);
607 if (s->num_blocks > 1 && get_bits1(gbc)) {
613 skip_bits_long(gbc, block_start_bits);