Home
last modified time | relevance | path

Searched refs:sr_code (Results 1 – 17 of 17) 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.c81 hdr->sr_code = get_bits(gbc, 2); in ff_ac3_parse_header()
82 if(hdr->sr_code == 3) 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()
108 hdr->frame_size = ff_ac3_frame_size_tab[frame_size_code][hdr->sr_code] * 2; in ff_ac3_parse_header()
124 hdr->sr_code = get_bits(gbc, 2); in ff_ac3_parse_header()
125 if (hdr->sr_code == 3) { in ff_ac3_parse_header()
133 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 = avpriv_dca_sample_rates[h.sr_code]; in dca_parse_params()
Dflacenc.c108 int sr_code[2]; member
275 s->sr_code[0] = i; in flac_encode_init()
276 s->sr_code[1] = 0; in flac_encode_init()
283 s->sr_code[0] = 12; in flac_encode_init()
284 s->sr_code[1] = freq / 1000; in flac_encode_init()
286 s->sr_code[0] = 14; in flac_encode_init()
287 s->sr_code[1] = freq / 10; in flac_encode_init()
289 s->sr_code[0] = 13; in flac_encode_init()
290 s->sr_code[1] = freq; in flac_encode_init()
1048 count += ((s->sr_code[0] == 12) + (s->sr_code[0] > 12) * 2) * 8; in count_frame_header()
[all …]
Ddca.c114 h->sr_code = get_bits(gb, 4); in ff_dca_parse_core_frame_header()
115 if (!avpriv_dca_sample_rates[h->sr_code]) in ff_dca_parse_core_frame_header()
Dac3.h166 int sr_code; member
182 uint8_t sr_code; member
Deac3enc.c138 put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ in ff_eac3_output_frame_header()
140 put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ in ff_eac3_output_frame_header()
Ddca.h58 uint8_t sr_code; ///< Core audio sampling frequency 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()
Deac3dec.c317 if (s->bit_alloc_params.sr_code == EAC3_SR_CODE_REDUCED) { in ff_eac3_parse_header()
443 if (s->bit_alloc_params.sr_code != EAC3_SR_CODE_REDUCED) { in ff_eac3_parse_header()
Ddca_lbr.c1022 unsigned int sr_code; in parse_decoder_init() local
1025 sr_code = bytestream2_get_byte(gb); in parse_decoder_init()
1026 if (sr_code >= FF_ARRAY_ELEMS(ff_dca_sampling_freqs)) { in parse_decoder_init()
1030 s->sample_rate = ff_dca_sampling_freqs[sr_code]; in parse_decoder_init()
1098 s->freq_range = ff_dca_freq_ranges[sr_code]; in parse_decoder_init()
Dac3enc.c1402 put_bits(&s->pb, 2, s->bit_alloc.sr_code); in ac3_output_frame_header()
2237 s->bit_alloc.sr_code = i % 3; in validate_options()
2315 s->frame_size_min = 2 * ff_ac3_frame_size_tab[s->frame_size_code][s->bit_alloc.sr_code]; in validate_options()
2361 …s->bandwidth_code = ac3_bandwidth_tab[s->fbw_channels-1][s->bit_alloc.sr_code][s->frame_size_code/… in set_bandwidth()
2382 … cpl_start = ac3_coupling_start_tab[s->channel_mode-2][s->bit_alloc.sr_code][s->frame_size_code/2]; in set_bandwidth()
2533 if (s->bit_alloc.sr_code == 1) { in ff_ac3_encode_init()
Dac3enc_template.c382 if (s->bit_alloc.sr_code == 1 || (AC3ENC_FLOAT && s->eac3)) in AC3_NAME()
Dac3dec.c314 s->bit_alloc_params.sr_code = hdr.sr_code; in parse_frame_header()
Ddca_core.c131 s->sample_rate = avpriv_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.c461 info->substream[hdr->substreamid].fscod = hdr->sr_code; in handle_eac3()