Home
last modified time | relevance | path

Searched refs:sr_code (Results 1 – 18 of 18) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dflac.c53 int bs_code, sr_code, bps_code; in ff_flac_decode_frame_header() local
66 sr_code = get_bits(gb, 4); in ff_flac_decode_frame_header()
121 if (sr_code < 12) { in ff_flac_decode_frame_header()
122 fi->samplerate = ff_flac_sample_rate_table[sr_code]; in ff_flac_decode_frame_header()
123 } else if (sr_code == 12) { in ff_flac_decode_frame_header()
125 } else if (sr_code == 13) { in ff_flac_decode_frame_header()
127 } else if (sr_code == 14) { in ff_flac_decode_frame_header()
132 sr_code); in ff_flac_decode_frame_header()
Dac3_parser.c85 hdr->sr_code = get_bits(gbc, 2); in ff_ac3_parse_header()
86 if(hdr->sr_code == 3) in ff_ac3_parse_header()
111 hdr->sample_rate = ff_ac3_sample_rate_tab[hdr->sr_code] >> hdr->sr_shift; in ff_ac3_parse_header()
114 hdr->frame_size = ff_ac3_frame_size_tab[frame_size_code][hdr->sr_code] * 2; in ff_ac3_parse_header()
130 hdr->sr_code = get_bits(gbc, 2); in ff_ac3_parse_header()
131 if (hdr->sr_code == 3) { in ff_ac3_parse_header()
139 hdr->sample_rate = ff_ac3_sample_rate_tab[hdr->sr_code]; in ff_ac3_parse_header()
Ddca_parser.c40 unsigned int sr_code; member
189 pc1->sr_code = -1; in dca_parse_init()
219 pc1->sr_code = get_bits(&gb, 8); in dca_parse_params()
226 if (pc1->sr_code >= FF_ARRAY_ELEMS(ff_dca_sampling_freqs)) in dca_parse_params()
229 *sample_rate = ff_dca_sampling_freqs[pc1->sr_code]; in dca_parse_params()
230 *duration = 1024 << ff_dca_freq_ranges[pc1->sr_code]; in dca_parse_params()
270 *sample_rate = ff_dca_sample_rates[h.sr_code]; in dca_parse_params()
Dflacenc.c111 int sr_code[2]; member
278 s->sr_code[0] = i; in flac_encode_init()
279 s->sr_code[1] = 0; in flac_encode_init()
286 s->sr_code[0] = 12; in flac_encode_init()
287 s->sr_code[1] = freq / 1000; in flac_encode_init()
289 s->sr_code[0] = 14; in flac_encode_init()
290 s->sr_code[1] = freq / 10; in flac_encode_init()
292 s->sr_code[0] = 13; in flac_encode_init()
293 s->sr_code[1] = freq; in flac_encode_init()
1015 count += ((s->sr_code[0] == 12) + (s->sr_code[0] > 12) * 2) * 8; in count_frame_header()
[all …]
Ddca.c109 h->sr_code = get_bits(gb, 4); in ff_dca_parse_core_frame_header()
110 if (!ff_dca_sample_rates[h->sr_code]) in ff_dca_parse_core_frame_header()
Dac3_parser_internal.h40 uint8_t sr_code; member
Deac3enc.c139 put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ in ff_eac3_output_frame_header()
141 put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ in ff_eac3_output_frame_header()
Dac3.h98 int sr_code; member
Ddca.h57 uint8_t sr_code; ///< Core audio sampling frequency member
Dac3.c269 … mask[band] = FFMAX(ac3_hearing_threshold_tab[band >> s->sr_shift][s->sr_code], excite[band]); in ff_ac3_bit_alloc_calc_mask()
Deac3dec.c318 if (s->bit_alloc_params.sr_code == EAC3_SR_CODE_REDUCED) { in ff_eac3_parse_header()
444 if (s->bit_alloc_params.sr_code != EAC3_SR_CODE_REDUCED) { in ff_eac3_parse_header()
Ddca_lbr.c1013 unsigned int sr_code; in parse_decoder_init() local
1016 sr_code = bytestream2_get_byte(gb); in parse_decoder_init()
1017 if (sr_code >= FF_ARRAY_ELEMS(ff_dca_sampling_freqs)) { in parse_decoder_init()
1021 s->sample_rate = ff_dca_sampling_freqs[sr_code]; in parse_decoder_init()
1089 s->freq_range = ff_dca_freq_ranges[sr_code]; in parse_decoder_init()
Dac3enc.c1457 put_bits(&s->pb, 2, s->bit_alloc.sr_code); in ac3_output_frame_header()
2295 s->bit_alloc.sr_code = i % 3; in validate_options()
2373 s->frame_size_min = 2 * ff_ac3_frame_size_tab[s->frame_size_code][s->bit_alloc.sr_code]; in validate_options()
2419 …s->bandwidth_code = ac3_bandwidth_tab[s->fbw_channels-1][s->bit_alloc.sr_code][s->frame_size_code/… in set_bandwidth()
2440 … cpl_start = ac3_coupling_start_tab[s->channel_mode-2][s->bit_alloc.sr_code][s->frame_size_code/2]; in set_bandwidth()
2591 if (s->bit_alloc.sr_code == 1) { in ff_ac3_encode_init()
Dac3enc_template.c383 if (s->bit_alloc.sr_code == 1 || (AC3ENC_FLOAT && s->eac3)) in AC3_NAME()
Dac3dec.c331 s->bit_alloc_params.sr_code = hdr.sr_code; in parse_frame_header()
Ddca_core.c133 s->sample_rate = ff_dca_sample_rates[h.sr_code]; in parse_frame_header()
/third_party/ffmpeg/libavformat/
Ddtsdec.c112 marker += 4 * h.sr_code; in dts_probe()
Dmovenc.c493 info->substream[hdr->substreamid].fscod = hdr->sr_code; in handle_eac3()