Searched refs:sample_rate_index (Results 1 – 9 of 9) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | mpegaudiodecheader.c | 39 int sample_rate_index, bitrate_index; in avpriv_mpegaudio_decode_header() local 56 sample_rate_index = (header >> 10) & 3; in avpriv_mpegaudio_decode_header() 57 if (sample_rate_index >= FF_ARRAY_ELEMS(avpriv_mpa_freq_tab)) in avpriv_mpegaudio_decode_header() 58 sample_rate_index = 0; in avpriv_mpegaudio_decode_header() 59 sample_rate = avpriv_mpa_freq_tab[sample_rate_index] >> (s->lsf + mpeg25); in avpriv_mpegaudio_decode_header() 60 sample_rate_index += 3 * (s->lsf + mpeg25); in avpriv_mpegaudio_decode_header() 61 s->sample_rate_index = sample_rate_index; in avpriv_mpegaudio_decode_header()
|
D | mp3_header_decompress_bsf.c | 34 int sample_rate_index=0; in mp3_header_decompress() local 64 sample_rate_index= (header>>10)&3; in mp3_header_decompress() 65 if (sample_rate_index == 3) { in mp3_header_decompress() 70 …sample_rate= avpriv_mpa_freq_tab[sample_rate_index] >> (lsf + mpeg25); //in case sample rate is a … in mp3_header_decompress()
|
D | mpegaudiodecheader.h | 39 int sample_rate_index; /* between 0 and 8 */ \
|
D | mpegaudiodec_template.c | 137 if (s->sample_rate_index != 8) in init_short_region() 142 if (s->sample_rate_index <= 2) in init_short_region() 144 else if (s->sample_rate_index != 8) in init_short_region() 156 g->region_size[0] = ff_band_index_long[s->sample_rate_index][ra1 + 1]; in init_long_region() 159 g->region_size[1] = ff_band_index_long[s->sample_rate_index][ l]; in init_long_region() 166 if(s->sample_rate_index == 8) in compute_band_indexes() 171 if (s->sample_rate_index <= 2) in compute_band_indexes() 692 bstab = ff_band_size_long[s->sample_rate_index]; in exponents_from_scale_factors() 702 bstab = ff_band_size_short[s->sample_rate_index]; in exponents_from_scale_factors() 910 if (s->sample_rate_index != 8) in reorder_block() [all …]
|
D | sonic.c | 882 int sample_rate_index; in sonic_decode_init() local 884 sample_rate_index = get_bits(&gb, 4); in sonic_decode_init() 885 if (sample_rate_index >= FF_ARRAY_ELEMS(samplerate_table)) { in sonic_decode_init() 886 av_log(avctx, AV_LOG_ERROR, "Invalid sample_rate_index %d\n", sample_rate_index); in sonic_decode_init() 889 s->samplerate = samplerate_table[sample_rate_index]; in sonic_decode_init()
|
/third_party/gstreamer/gstplugins_good/gst/replaygain/ |
D | rganalysis.c | 108 gint sample_rate_index; member 290 const gfloat *ayule = AYule[ctx->sample_rate_index]; in apply_filters() 291 const gfloat *byule = BYule[ctx->sample_rate_index]; in apply_filters() 292 const gfloat *abutter = AButter[ctx->sample_rate_index]; in apply_filters() 293 const gfloat *bbutter = BButter[ctx->sample_rate_index]; in apply_filters() 440 ctx->sample_rate_index = 0; in rg_analysis_set_sample_rate() 443 ctx->sample_rate_index = 1; in rg_analysis_set_sample_rate() 446 ctx->sample_rate_index = 2; in rg_analysis_set_sample_rate() 449 ctx->sample_rate_index = 3; in rg_analysis_set_sample_rate() 452 ctx->sample_rate_index = 4; in rg_analysis_set_sample_rate() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | adtsenc.c | 38 int sample_rate_index; member 64 adts->sample_rate_index = m4ac.sampling_index; in adts_decode_extradata() 71 if (adts->sample_rate_index == 15) { in adts_decode_extradata() 146 put_bits(&pb, 4, ctx->sample_rate_index); in adts_write_frame_header()
|
D | nutenc.c | 62 int lsf, mpeg25, sample_rate_index, bitrate_index, frame_size; in find_expected_header() local 69 if (sample_rate < (32000 + 44100) / 2) sample_rate_index = 2; in find_expected_header() 70 else if (sample_rate < (44100 + 48000) / 2) sample_rate_index = 0; in find_expected_header() 71 else sample_rate_index = 1; in find_expected_header() 73 sample_rate = avpriv_mpa_freq_tab[sample_rate_index] >> (lsf + mpeg25); in find_expected_header() 95 header |= sample_rate_index << 10; in find_expected_header()
|
/third_party/gstreamer/gstplugins_good/gst/isomp4/ |
D | qtdemux.c | 13051 gint sample_rate_index = -1; in qtdemux_parse_trak() local 13068 sample_rate_index = in qtdemux_parse_trak() 13070 if (sample_rate_index >= 0 && channels > 0) { in qtdemux_parse_trak() 13076 codec_data[0] |= ((sample_rate_index >> 1) & 0x7); in qtdemux_parse_trak() 13077 codec_data[1] = (sample_rate_index & 0x01) << 7; in qtdemux_parse_trak()
|