Home
last modified time | relevance | path

Searched refs:sr_shift (Results 1 – 6 of 6) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dac3_parser.c104 hdr->sr_shift = FFMAX(hdr->bitstream_id, 8) - 8; in ff_ac3_parse_header()
105 hdr->sample_rate = ff_ac3_sample_rate_tab[hdr->sr_code] >> hdr->sr_shift; in ff_ac3_parse_header()
106 hdr->bit_rate = (ff_ac3_bitrate_tab[frame_size_code>>1] * 1000) >> hdr->sr_shift; in ff_ac3_parse_header()
130 hdr->sr_shift = 1; in ff_ac3_parse_header()
134 hdr->sr_shift = 0; in ff_ac3_parse_header()
Dac3.h167 int sr_shift; member
199 uint8_t sr_shift; member
Dac3.c186 … mask[band] = FFMAX(ff_ac3_hearing_threshold_tab[band >> s->sr_shift][s->sr_code], excite[band]); in ff_ac3_bit_alloc_calc_mask()
Deac3enc.c136 if (s->bit_alloc.sr_shift) { in ff_eac3_output_frame_header()
Dac3dec.c319 s->bit_alloc_params.sr_shift = hdr.sr_shift; in parse_frame_header()
1231 …_alloc_params.slow_decay = ff_ac3_slow_decay_tab[get_bits(gbc, 2)] >> s->bit_alloc_params.sr_shift; in decode_audio_block()
1232 …_alloc_params.fast_decay = ff_ac3_fast_decay_tab[get_bits(gbc, 2)] >> s->bit_alloc_params.sr_shift; in decode_audio_block()
Dac3enc.c845 s->bit_alloc.slow_decay = ff_ac3_slow_decay_tab[s->slow_decay_code] >> s->bit_alloc.sr_shift; in bit_alloc_init()
846 s->bit_alloc.fast_decay = ff_ac3_fast_decay_tab[s->fast_decay_code] >> s->bit_alloc.sr_shift; in bit_alloc_init()
2236 s->bit_alloc.sr_shift = i / 3; in validate_options()
2238 s->bitstream_id = s->eac3 ? 16 : 8 + s->bit_alloc.sr_shift; in validate_options()
2303 int br = (ff_ac3_bitrate_tab[i] >> s->bit_alloc.sr_shift) * 1000; in validate_options()