/third_party/libsnd/src/ |
D | ima_adpcm.c | 34 int channels, blocksize, samplesperblock, blocks ; member 64 static int ima_reader_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) ; 108 wavlike_ima_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) in wavlike_ima_init() argument 120 if ((error = ima_reader_init (psf, blockalign, samplesperblock))) in wavlike_ima_init() 134 aiff_ima_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) in aiff_ima_init() argument 141 if ((error = ima_reader_init (psf, blockalign, samplesperblock))) in aiff_ima_init() 164 if (pima->samplecount && pima->samplecount < pima->samplesperblock) in ima_close() 167 psf->sf.frames = pima->samplesperblock * pima->blockcount / psf->sf.channels ; in ima_close() 178 ima_reader_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) in ima_reader_init() argument 185 …zeof (IMA_ADPCM_PRIVATE) + blockalign * psf->sf.channels + 3 * psf->sf.channels * samplesperblock ; in ima_reader_init() [all …]
|
D | ms_adpcm.c | 33 { int channels, blocksize, samplesperblock, blocks, dataremaining ; member 118 wavlike_msadpcm_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) in wavlike_msadpcm_init() argument 129 samplesperblock = 2 + 2 * (blockalign - 7 * psf->sf.channels) / psf->sf.channels ; in wavlike_msadpcm_init() 136 pmssize = sizeof (MSADPCM_PRIVATE) + blockalign + 3 * psf->sf.channels * samplesperblock ; in wavlike_msadpcm_init() 144 pms->block = (unsigned char*) (pms->dummydata + psf->sf.channels * samplesperblock) ; in wavlike_msadpcm_init() 148 pms->samplesperblock = samplesperblock ; in wavlike_msadpcm_init() 164 if (pms->samplesperblock != count) in wavlike_msadpcm_init() 169 psf->sf.frames = (psf->datalength / pms->blocksize) * pms->samplesperblock ; in wavlike_msadpcm_init() 223 { memset (pms->samples, 0, pms->samplesperblock * pms->channels) ; in msadpcm_decode_block() 285 for (k = 2 * pms->channels ; k < (pms->samplesperblock * pms->channels) ; k ++) in msadpcm_decode_block() [all …]
|
D | gsm610.c | 38 int samplesperblock, blocksize ; member 117 pgsm610->samplesperblock = WAVLIKE_GSM610_SAMPLES ; in gsm610_init() 126 pgsm610->samplesperblock = GSM610_SAMPLES ; in gsm610_init() 153 psf->sf.frames = pgsm610->samplesperblock * pgsm610->blocks ; in gsm610_init() 245 { if (pgsm610->blockcount >= pgsm610->blocks && pgsm610->samplecount >= pgsm610->samplesperblock) in gsm610_read_block() 250 if (pgsm610->samplecount >= pgsm610->samplesperblock) in gsm610_read_block() 253 count = pgsm610->samplesperblock - pgsm610->samplecount ; in gsm610_read_block() 404 if (offset < 0 || offset > pgsm610->blocks * pgsm610->samplesperblock) in gsm610_seek() 409 newblock = offset / pgsm610->samplesperblock ; in gsm610_seek() 410 newsample = offset % pgsm610->samplesperblock ; in gsm610_seek() [all …]
|
D | sds.c | 49 int samplesperblock, total_blocks ; member 160 …{ memset (&(psds->write_data [psds->write_count]), 0, (psds->samplesperblock - psds->write_count) … in sds_close() 179 psds->samplesperblock = SDS_AUDIO_BYTES_PER_BLOCK / 2 ; in sds_init() 184 psds->samplesperblock = SDS_AUDIO_BYTES_PER_BLOCK / 3 ; in sds_init() 189 psds->samplesperblock = SDS_AUDIO_BYTES_PER_BLOCK / 4 ; in sds_init() 296 psds->samplesperblock = SDS_AUDIO_BYTES_PER_BLOCK / ((psds->bitwidth + 6) / 7) ; in sds_read_header() 297 psf_log_printf (psf, "Samples/Block : %d\n", psds->samplesperblock) ; in sds_read_header() 299 psf_log_printf (psf, "Frames : %d\n", blockcount * psds->samplesperblock) ; in sds_read_header() 429 if (psds->read_block * psds->samplesperblock > psds->frames) in sds_2byte_read() 430 { memset (psds->read_samples, 0, psds->samplesperblock * sizeof (int)) ; in sds_2byte_read() [all …]
|
D | g72x.c | 40 int blocksize, samplesperblock, bytesperblock ; member 124 { pg72x->private = g72x_reader_init (codec, &(pg72x->blocksize), &(pg72x->samplesperblock)) ; in g72x_init() 144 psf->sf.frames = pg72x->blocks_total * pg72x->samplesperblock ; in g72x_init() 149 { pg72x->private = g72x_writer_init (codec, &(pg72x->blocksize), &(pg72x->samplesperblock)) ; in g72x_init() 212 if (pg72x->sample_curr >= pg72x->samplesperblock) in g72x_read_block() 215 count = pg72x->samplesperblock - pg72x->sample_curr ; in g72x_read_block() 452 { count = pg72x->samplesperblock - pg72x->sample_curr ; in g72x_write_block() 462 if (pg72x->sample_curr >= pg72x->samplesperblock) in g72x_write_block()
|
D | wavlike.h | 224 unsigned short samplesperblock ; member 240 unsigned short samplesperblock ; member 263 unsigned short samplesperblock ; member
|
D | wavlike.c | 229 …d += psf_binheader_readf (psf, "22", &(wav_fmt->ima.extrabytes), &(wav_fmt->ima.samplesperblock)) ; in wavlike_read_fmt_chunk() 231 if (wav_fmt->ima.samplesperblock < 1) in wavlike_read_fmt_chunk() 232 { psf_log_printf (psf, " Samples/Block : %d (should be > 0)\n", wav_fmt->ima.samplesperblock) ; in wavlike_read_fmt_chunk() 236 psf_log_printf (psf, " Samples/Block : %d\n", wav_fmt->ima.samplesperblock) ; in wavlike_read_fmt_chunk() 238 … bytespersec = (wav_fmt->ima.samplerate * wav_fmt->ima.blockalign) / wav_fmt->ima.samplesperblock ; in wavlike_read_fmt_chunk() 253 &(wav_fmt->msadpcm.samplesperblock), &(wav_fmt->msadpcm.numcoeffs)) ; in wavlike_read_fmt_chunk() 256 if (wav_fmt->ima.samplesperblock < 1) in wavlike_read_fmt_chunk() 257 { psf_log_printf (psf, " Samples/Block : %d (should be > 0)\n", wav_fmt->ima.samplesperblock) ; in wavlike_read_fmt_chunk() 261 psf_log_printf (psf, " Samples/Block : %d\n", wav_fmt->ima.samplesperblock) ; in wavlike_read_fmt_chunk() 263 …espersec = (wav_fmt->min.samplerate * wav_fmt->min.blockalign) / wav_fmt->msadpcm.samplesperblock ; in wavlike_read_fmt_chunk() [all …]
|
D | common.h | 952 int wavlike_ima_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) ; 953 int wavlike_msadpcm_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) ; 955 int aiff_ima_init (SF_PRIVATE *psf, int blockalign, int samplesperblock) ;
|
D | rf64.c | 431 *framesperblock = wav_fmt->msadpcm.samplesperblock ; in rf64_read_header() 452 *framesperblock = wav_fmt->msadpcm.samplesperblock ; in rf64_read_header() 458 *framesperblock = wav_fmt->ima.samplesperblock ; in rf64_read_header()
|
D | w64.c | 412 *framesperblock = wav_fmt->msadpcm.samplesperblock ; in w64_read_header() 418 *framesperblock = wav_fmt->ima.samplesperblock ; in w64_read_header()
|
D | wav.c | 681 *framesperblock = wav_fmt->msadpcm.samplesperblock ; in wav_read_header() 721 *framesperblock = wav_fmt->msadpcm.samplesperblock ; in wav_read_header() 727 *framesperblock = wav_fmt->ima.samplesperblock ; in wav_read_header()
|
/third_party/libsnd/src/G72x/ |
D | g72x.c | 134 struct g72x_state * g72x_reader_init (int codec, int *blocksize, int *samplesperblock) in g72x_reader_init() argument 148 *samplesperblock = G723_16_SAMPLES_PER_BLOCK ; in g72x_reader_init() 151 pstate->samplesperblock = G723_16_SAMPLES_PER_BLOCK ; in g72x_reader_init() 157 *samplesperblock = G723_24_SAMPLES_PER_BLOCK ; in g72x_reader_init() 160 pstate->samplesperblock = G723_24_SAMPLES_PER_BLOCK ; in g72x_reader_init() 166 *samplesperblock = G721_32_SAMPLES_PER_BLOCK ; in g72x_reader_init() 169 pstate->samplesperblock = G721_32_SAMPLES_PER_BLOCK ; in g72x_reader_init() 175 *samplesperblock = G721_40_SAMPLES_PER_BLOCK ; in g72x_reader_init() 178 pstate->samplesperblock = G721_40_SAMPLES_PER_BLOCK ; in g72x_reader_init() 189 struct g72x_state * g72x_writer_init (int codec, int *blocksize, int *samplesperblock) in g72x_writer_init() argument [all …]
|
D | g72x.h | 68 struct g72x_state * g72x_reader_init (int codec, int *blocksize, int *samplesperblock) ; 69 struct g72x_state * g72x_writer_init (int codec, int *blocksize, int *samplesperblock) ;
|
D | g72x_priv.h | 78 int codec_bits, blocksize, samplesperblock ; member
|
/third_party/gstreamer/gstplugins_good/gst/isomp4/ |
D | atoms.c | 5694 gint samplesperblock; in build_ima_adpcm_atom() local 5710 samplesperblock = 2 * blocksize / channels - 7; in build_ima_adpcm_atom() 5711 bytespersec = rate * blocksize / samplesperblock; in build_ima_adpcm_atom() 5719 GST_WRITE_UINT16_LE (data + 18, samplesperblock); in build_ima_adpcm_atom()
|