/third_party/libsnd/src/ |
D | mat5.c | 225 if (psf->sf.samplerate > 0xFFFF) in mat5_write_header() 226 psf_binheader_writef (psf, "44", BHW4 (MAT5_TYPE_COMP_UINT), BHW4 (psf->sf.samplerate)) ; in mat5_write_header() 228 { unsigned short samplerate = psf->sf.samplerate ; in mat5_write_header() local 230 psf_binheader_writef (psf, "422", BHW4 (MAT5_TYPE_COMP_USHORT), BHW2 (samplerate), BHW2 (0)) ; in mat5_write_header() 325 { if (psf->sf.samplerate == 0) in mat5_read_header() 326 psf->sf.samplerate = 44100 ; in mat5_read_header() 367 { double samplerate ; in mat5_read_header() local 369 psf_binheader_readf (psf, "d", &samplerate) ; in mat5_read_header() 370 snprintf (name, sizeof (name), "%f\n", samplerate) ; in mat5_read_header() 373 psf->sf.samplerate = psf_lrint (samplerate) ; in mat5_read_header() [all …]
|
D | ircam.c | 138 float samplerate ; in ircam_read_header() local 141 psf_binheader_readf (psf, "epmf44", 0, &marker, &samplerate, &(psf->sf.channels), &encoding) ; in ircam_read_header() 151 { psf_binheader_readf (psf, "Epmf44", 0, &marker, &samplerate, &(psf->sf.channels), &encoding) ; in ircam_read_header() 164 psf->sf.samplerate = (int) samplerate ; in ircam_read_header() 169 psf->sf.samplerate, psf->sf.channels, encoding, get_encoding_str (encoding)) ; in ircam_read_header() 244 float samplerate ; in ircam_write_header() local 265 samplerate = psf->sf.samplerate ; in ircam_write_header() 269 psf_binheader_writef (psf, "Emf", BHWm (IRCAM_02B_MARKER), BHWf (samplerate)) ; in ircam_write_header() 274 psf_binheader_writef (psf, "emf", BHWm (IRCAM_03L_MARKER), BHWf (samplerate)) ; in ircam_write_header()
|
D | w64.c | 151 { blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in w64_open() 475 …24", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_PCM), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in w64_write_header() 477 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 489 …W8 (fmt_size), BHW2 (WAVE_FORMAT_IEEE_FLOAT), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in w64_write_header() 491 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 504 …", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_MULAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in w64_write_header() 506 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 519 …4", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_ALAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in w64_write_header() 521 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 532 blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in w64_write_header() [all …]
|
D | voc.c | 64 int samplerate, channels, bitwidth ; member 247 psf->sf.samplerate = 1000000 / (256 - (rate_byte & 0xFF)) ; in voc_read_header() 250 size, rate_byte, psf->sf.samplerate, compression) ; in voc_read_header() 292 psf->sf.samplerate = 128000000 / (65536 - rate_short) ; in voc_read_header() 296 psf->sf.samplerate = 256000000 / (65536 - rate_short) ; in voc_read_header() 299 psf_log_printf (psf, " sr : %d => %dHz\n", (rate_short & 0xFFFF), psf->sf.samplerate) ; in voc_read_header() 340 offset += psf_binheader_readf (psf, "e341124", &size, &psf->sf.samplerate, in voc_read_header() 354 " channels : %d\n", psf->sf.samplerate, bitwidth, channels) ; in voc_read_header() 457 rate_const = 256 - 1000000 / psf->sf.samplerate ; in voc_write_header() 464 rate_const = 65536 - 128000000 / psf->sf.samplerate ; in voc_write_header() [all …]
|
D | pvf.c | 116 psf->sf.channels, psf->sf.samplerate, psf->bytewidth * 8) ; in pvf_write_header() 137 int marker, channels, samplerate, bitwidth ; in pvf_read_header() local 148 if (sscanf (buffer, "%d %d %d", &channels, &samplerate, &bitwidth) != 3) in pvf_read_header() 152 channels, samplerate, bitwidth) ; in pvf_read_header() 155 psf->sf.samplerate = samplerate ; in pvf_read_header()
|
D | wavlike.h | 199 unsigned int samplerate ; member 208 unsigned int samplerate ; member 219 unsigned int samplerate ; member 235 unsigned int samplerate ; member 246 unsigned int samplerate ; member 258 unsigned int samplerate ; member 276 unsigned int samplerate ; member
|
D | txw.c | 170 psf->sf.samplerate = 33333 ; in txw_read_header() 174 psf->sf.samplerate = 50000 ; in txw_read_header() 178 psf->sf.samplerate = 16667 ; in txw_read_header() 186 psf->sf.samplerate = 33333 ; in txw_read_header() 190 psf->sf.samplerate = 50000 ; in txw_read_header() 194 psf->sf.samplerate = 166667 ; in txw_read_header() 199 psf->sf.samplerate = 33333 ; in txw_read_header() 208 …log_printf (psf, " Sample Rate : %d (0x%X) => %d\n", txwh.srate, txwh.srhash, psf->sf.samplerate) ; in txw_read_header() 210 psf_log_printf (psf, " Sample Rate : %d => %d\n", txwh.srate, psf->sf.samplerate) ; in txw_read_header()
|
D | htk.c | 124 sample_period = 10000000 / psf->sf.samplerate ; in htk_write_header() 200 { psf->sf.samplerate = 10000000 / sample_period ; in htk_read_header() 202 sample_count, sample_period, psf->sf.samplerate) ; in htk_read_header() 205 { psf->sf.samplerate = 16000 ; in htk_read_header() 207 sample_count, sample_period, psf->sf.samplerate) ; in htk_read_header()
|
D | au.c | 84 int samplerate ; member 243 …psf_binheader_writef (psf, "E4444", BHW4 (datalength), BHW4 (encoding), BHW4 (psf->sf.samplerate),… in au_write_header() 247 …psf_binheader_writef (psf, "e4444", BHW4 (datalength), BHW4 (encoding), BHW4 (psf->sf.samplerate),… in au_write_header() 303 &(au_fmt.encoding), &(au_fmt.samplerate), &(au_fmt.channels)) ; in au_read_header() 308 &(au_fmt.encoding), &(au_fmt.samplerate), &(au_fmt.channels)) ; in au_read_header() 342 psf->sf.samplerate = au_fmt.samplerate ; in au_read_header() 435 psf_log_printf (psf, " Sample Rate : %d\n", au_fmt.samplerate) ; in au_read_header()
|
D | wav.c | 208 { blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in wav_open() 770 …24", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_PCM), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in wav_write_fmt_chunk() 772 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 782 …W4 (fmt_size), BHW2 (WAVE_FORMAT_IEEE_FLOAT), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in wav_write_fmt_chunk() 784 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 795 …", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_MULAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in wav_write_fmt_chunk() 797 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 808 …4", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_ALAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate)) ; in wav_write_fmt_chunk() 810 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 821 blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in wav_write_fmt_chunk() [all …]
|
D | ogg_speex.c | 181 psf->sf.samplerate = 0 ; in spx_read_header() 313 if (!psf->sf.samplerate) in spx_header_read() 314 psf->sf.samplerate = spx->header.rate ; in spx_header_read() 318 { psf->sf.samplerate <<= (force_mode - spx->header.mode) ; in spx_header_read() 322 { psf->sf.samplerate >>= (spx->header.mode - force_mode) ; in spx_header_read() 327 speex_decoder_ctl (st, SPEEX_SET_SAMPLING_RATE, &psf->sf.samplerate) ; in spx_header_read() 351 psf->sf.samplerate, mode->modeName, (spx->header.vbr ? "yes" : "no"), psf->sf.channels) ; in spx_header_read()
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtpg722depay.c | 127 gint clock_rate, payload, samplerate; in gst_rtp_g722_depay_setcaps() local 146 samplerate = 16000; in gst_rtp_g722_depay_setcaps() 152 samplerate = 0; in gst_rtp_g722_depay_setcaps() 163 samplerate = 16000; in gst_rtp_g722_depay_setcaps() 165 if (samplerate == 0) in gst_rtp_g722_depay_setcaps() 166 samplerate = clock_rate; in gst_rtp_g722_depay_setcaps() 179 rtpg722depay->rate = samplerate; in gst_rtp_g722_depay_setcaps() 183 "rate", G_TYPE_INT, samplerate, "channels", G_TYPE_INT, channels, NULL); in gst_rtp_g722_depay_setcaps()
|
/third_party/gstreamer/gstplugins_good/gst/audioparsers/ |
D | gstflacparse.c | 348 flacparse->samplerate = 0; in gst_flac_parse_start() 410 guint32 samplerate = 0; in gst_flac_parse_frame_header_is_valid() local 434 samplerate = gst_bit_reader_get_bits_uint16_unchecked (&reader, 4); in gst_flac_parse_frame_header_is_valid() 435 if (samplerate == 0x0f) in gst_flac_parse_frame_header_is_valid() 528 if (samplerate == 0 && flacparse->samplerate == 0) { in gst_flac_parse_frame_header_is_valid() 530 } else if (samplerate < 12) { in gst_flac_parse_frame_header_is_valid() 531 samplerate = sample_rate_table[samplerate]; in gst_flac_parse_frame_header_is_valid() 532 } else if (samplerate == 12) { in gst_flac_parse_frame_header_is_valid() 533 if (!gst_bit_reader_get_bits_uint32 (&reader, &samplerate, 8)) in gst_flac_parse_frame_header_is_valid() 535 samplerate *= 1000; in gst_flac_parse_frame_header_is_valid() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/lame/ |
D | gstlamemp3enc.c | 342 lame->samplerate = GST_AUDIO_INFO_RATE (info); in gst_lamemp3enc_set_format() 355 if (out_samplerate != lame->samplerate) { in gst_lamemp3enc_set_format() 358 out_samplerate, lame->samplerate); in gst_lamemp3enc_set_format() 386 GST_SECOND, lame->samplerate); in gst_lamemp3enc_set_format() 542 gulong mode, samplerate, bitrate, layer, channels, padding, crc; in mp3_type_frame_length_from_header() local 566 samplerate = (header >> 10) & 0x3; in mp3_type_frame_length_from_header() 567 samplerate = mp3types_freqs[lsf + mpg25][samplerate]; in mp3_type_frame_length_from_header() 576 length = 4 * ((bitrate * 12) / samplerate + padding); in mp3_type_frame_length_from_header() 579 length = (bitrate * 144) / samplerate + padding; in mp3_type_frame_length_from_header() 583 length = (bitrate * 144) / (samplerate << lsf) + padding; in mp3_type_frame_length_from_header() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/musepack/ |
D | gstmusepackdec.c | 172 gint samplerate; in gst_musepackdec_handle_seek_event() local 182 samplerate = g_atomic_int_get (&dec->rate); in gst_musepackdec_handle_seek_event() 186 start = gst_util_uint64_scale_int (start, samplerate, GST_SECOND); in gst_musepackdec_handle_seek_event() 188 stop = gst_util_uint64_scale_int (stop, samplerate, GST_SECOND); in gst_musepackdec_handle_seek_event() 285 gint samplerate; in gst_musepackdec_src_query() local 287 samplerate = g_atomic_int_get (&musepackdec->rate); in gst_musepackdec_src_query() 293 if (samplerate == 0) in gst_musepackdec_src_query() 303 cur = gst_util_uint64_scale_int (cur_off, GST_SECOND, samplerate); in gst_musepackdec_src_query() 315 if (samplerate == 0) in gst_musepackdec_src_query() 325 len = gst_util_uint64_scale_int (len_off, GST_SECOND, samplerate); in gst_musepackdec_src_query() [all …]
|
/third_party/libsnd/include/ |
D | sndfile.hh | 83 int format = 0, int channels = 0, int samplerate = 0) ; 85 int format = 0, int channels = 0, int samplerate = 0) ; 87 int format = 0, int channels = 0, int samplerate = 0) ; 89 int format = 0, int channels = 0, int samplerate = 0) ; 93 int format = 0, int channels = 0, int samplerate = 0) ; 111 int samplerate (void) const { return p ? p->sfinfo.samplerate : 0 ; } in samplerate() function in SndfileHandle 126 static int formatCheck (int format, int channels, int samplerate) ; 183 p->sfinfo.samplerate = srate ; in SndfileHandle() 205 p->sfinfo.samplerate = srate ; in SndfileHandle() 230 p->sfinfo.samplerate = srate ; in SndfileHandle() [all …]
|
/third_party/libsnd/tests/ |
D | external_libs_test.c | 178 int samplerate ; in flac_subset_test() local 188 for (samplerate = 65536 ; samplerate < 655350 ; samplerate *= 4) in flac_subset_test() 189 { sfinfo.samplerate = samplerate ; in flac_subset_test()
|
D | checksum_test.c | 93 info.samplerate = SAMPLE_RATE ; in checksum_test() 108 info.samplerate = SAMPLE_RATE ; in checksum_test() 116 info.samplerate = SAMPLE_RATE ; in checksum_test()
|
/third_party/ffmpeg/libavformat/ |
D | tta.c | 53 int i, channels, bps, samplerate; in tta_read_header() local 69 samplerate = avio_rl32(s->pb); in tta_read_header() 70 if(samplerate <= 0 || samplerate > 1000000){ in tta_read_header() 87 c->frame_size = samplerate * 256 / 245; in tta_read_header() 103 avpriv_set_pts_info(st, 64, 1, samplerate); in tta_read_header() 138 st->codecpar->sample_rate = samplerate; in tta_read_header()
|
D | omadec.c | 410 int ret, framesize, jsflag, samplerate; in oma_read_header() local 467 samplerate = ff_oma_srate_tab[(codec_params >> 13) & 7] * 100; in oma_read_header() 468 if (!samplerate) { in oma_read_header() 473 if (samplerate != 44100) in oma_read_header() 474 avpriv_request_sample(s, "Sample rate %d", samplerate); in oma_read_header() 483 st->codecpar->sample_rate = samplerate; in oma_read_header() 493 AV_WL32(&edata[2], samplerate); // samples rate in oma_read_header() 512 samplerate = ff_oma_srate_tab[(codec_params >> 13) & 7] * 100; in oma_read_header() 513 if (!samplerate) { in oma_read_header() 518 st->codecpar->sample_rate = samplerate; in oma_read_header() [all …]
|
D | oggparseflac.c | 48 uint32_t samplerate; in flac_header() local 68 samplerate = AV_RB24(st->codecpar->extradata + 10) >> 4; in flac_header() 69 if (!samplerate) in flac_header() 72 avpriv_set_pts_info(st, 64, 1, samplerate); in flac_header()
|
/third_party/ffmpeg/libavcodec/ |
D | flac.c | 122 fi->samplerate = ff_flac_sample_rate_table[sr_code]; in ff_flac_decode_frame_header() 124 fi->samplerate = get_bits(gb, 8) * 1000; in ff_flac_decode_frame_header() 126 fi->samplerate = get_bits(gb, 16); in ff_flac_decode_frame_header() 128 fi->samplerate = get_bits(gb, 16) * 10; in ff_flac_decode_frame_header() 222 s->samplerate = get_bits(&gb, 20); in ff_flac_parse_streaminfo() 233 avctx->sample_rate = s->samplerate; in ff_flac_parse_streaminfo()
|
/third_party/gstreamer/gstplugins_bad/ext/ladspa/ |
D | gstladspasource.c | 197 gint samplerate, bpf; in gst_ladspa_source_type_do_seek() local 205 samplerate = GST_AUDIO_INFO_RATE (&ladspa->info); in gst_ladspa_source_type_do_seek() 209 next_sample = gst_util_uint64_scale_int (time, samplerate, GST_SECOND); in gst_ladspa_source_type_do_seek() 211 if (samplerate == 0) in gst_ladspa_source_type_do_seek() 215 gst_util_uint64_scale_round (next_sample, GST_SECOND, samplerate); in gst_ladspa_source_type_do_seek() 238 gst_util_uint64_scale_round (time, samplerate, GST_SECOND); in gst_ladspa_source_type_do_seek() 265 gint samplerate, bpf; in gst_ladspa_source_type_fill() local 286 samplerate = GST_AUDIO_INFO_RATE (&ladspa->info); in gst_ladspa_source_type_fill() 306 gst_util_uint64_scale_int (ladspa->next_sample, GST_SECOND, samplerate); in gst_ladspa_source_type_fill() 330 next_time = gst_util_uint64_scale_int (next_sample, GST_SECOND, samplerate); in gst_ladspa_source_type_fill() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/lv2/ |
D | gstlv2source.c | 248 gint samplerate, bpf; in gst_lv2_source_do_seek() local 256 samplerate = GST_AUDIO_INFO_RATE (&lv2->info); in gst_lv2_source_do_seek() 260 next_sample = gst_util_uint64_scale_int (time, samplerate, GST_SECOND); in gst_lv2_source_do_seek() 262 if (samplerate == 0) in gst_lv2_source_do_seek() 266 gst_util_uint64_scale_round (next_sample, GST_SECOND, samplerate); in gst_lv2_source_do_seek() 289 gst_util_uint64_scale_round (time, samplerate, GST_SECOND); in gst_lv2_source_do_seek() 375 gint samplerate, bpf; in gst_lv2_source_fill() local 399 samplerate = GST_AUDIO_INFO_RATE (&lv2->info); in gst_lv2_source_fill() 419 gst_util_uint64_scale_int (lv2->next_sample, GST_SECOND, samplerate); in gst_lv2_source_fill() 443 next_time = gst_util_uint64_scale_int (next_sample, GST_SECOND, samplerate); in gst_lv2_source_fill() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/faad/ |
D | gstfaad.c | 152 faad->samplerate = -1; in gst_faad_reset() 238 unsigned long samplerate; in gst_faad_set_format() local 263 if ((gint8) faacDecInit2 (faad->handle, cdata, csize, &samplerate, in gst_faad_set_format() 275 (guint32) samplerate); in gst_faad_set_format() 279 faad->samplerate = 0; in gst_faad_set_format() 433 if (info->samplerate != faad->samplerate || in gst_faad_update_caps() 451 faad->samplerate = info->samplerate; in gst_faad_update_caps() 484 gst_audio_info_set_format (&ainfo, GST_AUDIO_FORMAT_S16, faad->samplerate, in gst_faad_update_caps() 675 faad->samplerate = 0; in gst_faad_handle_frame()
|