Home
last modified time | relevance | path

Searched refs:datalength (Results 1 – 25 of 46) sorted by relevance

12

/third_party/libsnd/src/
Dwve.c94 unsigned datalength ; in wve_read_header() local
131 psf_binheader_readf (psf, "E4", &datalength) ; in wve_read_header()
133 if (datalength != psf->filelength - psf->dataoffset) in wve_read_header()
134 { psf->datalength = psf->filelength - psf->dataoffset ; in wve_read_header()
135 psf_log_printf (psf, "Data length %d should be %D\n", datalength, psf->datalength) ; in wve_read_header()
138 psf->datalength = datalength ; in wve_read_header()
144 psf->sf.frames = psf->datalength ; in wve_read_header()
163 psf->datalength = psf->filelength - psf->dataoffset ; in wve_write_header()
165 psf->datalength -= psf->filelength - psf->dataend ; in wve_write_header()
167 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in wve_write_header()
[all …]
Dsvx.c93 psf->sf.frames = psf->datalength / psf->blockwidth ; in svx_open()
216 psf->datalength = chunk_size ; in svx_read_header()
222 if (psf->datalength > psf->filelength - psf->dataoffset) in svx_read_header()
223 …{ psf_log_printf (psf, " BODY : %D (should be %D)\n", psf->datalength, psf->filelength - psf->data… in svx_read_header()
224 psf->datalength = psf->filelength - psf->dataoffset ; in svx_read_header()
227 psf_log_printf (psf, " BODY : %D\n", psf->datalength) ; in svx_read_header()
234 psf_fseek (psf, psf->datalength, SEEK_CUR) ; in svx_read_header()
352 psf->datalength = psf->filelength - psf->dataoffset ; in svx_write_header()
355 psf->datalength -= psf->filelength - psf->dataend ; in svx_write_header()
357 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in svx_write_header()
[all …]
Dau.c201 int encoding, datalength ; in au_write_header() local
211 psf->datalength = psf->filelength - psf->dataoffset ; in au_write_header()
213 psf->datalength -= psf->filelength - psf->dataend ; in au_write_header()
236 if (psf->datalength < 0 || psf->datalength > 0x7FFFFFFF) in au_write_header()
237 datalength = -1 ; in au_write_header()
239 datalength = (int) (psf->datalength & 0x7FFFFFFF) ; in au_write_header()
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()
337 psf->datalength = psf->filelength - psf->dataoffset ; in au_read_header()
Dg72x.c119 psf->datalength = psf->filelength - psf->dataoffset ; in g72x_init()
121 psf->datalength -= psf->filelength - psf->dataend ; in g72x_init()
137 if (psf->datalength % pg72x->blocksize) in g72x_init()
138 …psf, "*** Odd psf->datalength (%D) should be a multiple of %d\n", psf->datalength, pg72x->blocksiz… in g72x_init()
139 pg72x->blocks_total = (psf->datalength / pg72x->blocksize) + 1 ; in g72x_init()
142 pg72x->blocks_total = psf->datalength / pg72x->blocksize ; in g72x_init()
160 if (psf->datalength % pg72x->blocksize) in g72x_init()
161 pg72x->blocks_total = (psf->datalength / pg72x->blocksize) + 1 ; in g72x_init()
163 pg72x->blocks_total = psf->datalength / pg72x->blocksize ; in g72x_init()
165 if (psf->datalength > 0) in g72x_init()
[all …]
Drf64.c306 psf->datalength = ds64_datalength ; in rf64_read_header()
315 psf->datalength = chunk_size ; in rf64_read_header()
324 psf->datalength = psf->filelength - psf->dataoffset ; in rf64_read_header()
328 if (psf->datalength + psf->dataoffset < psf->filelength) in rf64_read_header()
329 psf->dataend = psf->datalength + psf->dataoffset ; in rf64_read_header()
335 psf_fseek (psf, psf->datalength, SEEK_CUR) ; in rf64_read_header()
337 if (psf_ftell (psf) != psf->datalength + psf->dataoffset) in rf64_read_header()
413 { if (psf->filelength - psf->dataoffset < psf->datalength) in rf64_read_header()
416 psf->sf.frames = psf->datalength / psf->blockwidth ; in rf64_read_header()
652 psf->datalength = psf->filelength - psf->dataoffset ; in rf64_write_header()
[all …]
Davr.c167 psf->datalength = hdr.frames * (hdr.rez / 8) ; in avr_read_header()
170 psf->filelength = AVR_HDR_SIZE + psf->datalength ; in avr_read_header()
196 psf->datalength = psf->filelength - psf->dataoffset ; in avr_write_header()
198 psf->datalength -= psf->filelength - psf->dataend ; in avr_write_header()
200 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in avr_write_header()
Dwav.c202 psf->datalength = 0 ; in wav_open()
396 psf->datalength = chunk_size ; in wav_read_header()
397 if (psf->datalength & 1) in wav_read_header()
405 psf->datalength = psf->filelength - psf->dataoffset ; in wav_read_header()
408 if (psf->datalength > psf->filelength - psf->dataoffset) in wav_read_header()
409 …{ psf_log_printf (psf, "data : %D (should be %D)\n", psf->datalength, psf->filelength - psf->datao… in wav_read_header()
410 psf->datalength = psf->filelength - psf->dataoffset ; in wav_read_header()
413 psf_log_printf (psf, "data : %D\n", psf->datalength) ; in wav_read_header()
416 if (psf->datalength + psf->dataoffset < psf->filelength) in wav_read_header()
417 psf->dataend = psf->datalength + psf->dataoffset ; in wav_read_header()
[all …]
Dmpc2k.c118 psf->datalength = psf->filelength - psf->dataoffset ; in mpc2k_write_header()
120 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mpc2k_write_header()
196 psf->datalength = psf->filelength - psf->dataoffset ; in mpc2k_read_header()
198 psf->sf.frames = psf->datalength / psf->blockwidth ; in mpc2k_read_header()
Dw64.c159 psf->datalength = psf->filelength ; in w64_open()
310 psf->datalength = SF_MIN (chunk_size - 24, psf->filelength - psf->dataoffset) ; in w64_read_header()
388 { if (psf->filelength - psf->dataoffset < psf->datalength) in w64_read_header()
391 psf->sf.frames = psf->datalength / psf->blockwidth ; in w64_read_header()
447 psf->datalength = psf->filelength - psf->dataoffset ; in w64_write_header()
449 psf->datalength -= psf->filelength - psf->dataend ; in w64_write_header()
452 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in w64_write_header()
616 psf_binheader_writef (psf, "eh8", BHWh (data_MARKER16), BHW8 (psf->datalength + 24)) ; in w64_write_header()
Dnew.c103 psf->datalength = psf->filelength - psf->dataoffset ; in new_read_header()
107 psf->sf.frames = psf->datalength ; in new_read_header()
Dcaf.c149 psf->datalength = 0 ; in caf_open()
468 psf->datalength = psf->filelength - psf->header.indx - 8 ; in caf_read_header()
473 psf->datalength = chunk_size - 4 ; in caf_read_header()
479 if (psf->datalength + psf->dataoffset < psf->filelength) in caf_read_header()
480 psf->dataend = psf->datalength + psf->dataoffset ; in caf_read_header()
482 psf_binheader_readf (psf, "j", make_size_t (psf->datalength)) ; in caf_read_header()
569 psf->sf.frames = psf->datalength / psf->bytewidth ; in caf_read_header()
596 psf->datalength = psf->filelength - psf->dataoffset ; in caf_write_header()
599 psf->datalength -= psf->filelength - psf->dataend ; in caf_write_header()
602 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in caf_write_header()
[all …]
Dnist.c228 psf->datalength = psf->filelength - psf->dataoffset ; in nist_read_header()
297 psf->datalength = psf->filelength - psf->dataoffset ; in nist_write_header()
300 psf->datalength -= psf->filelength - psf->dataend ; in nist_write_header()
303 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in nist_write_header()
Dmat4.c155 psf->datalength = psf->filelength - psf->dataoffset ; in mat4_write_header()
157 psf->datalength -= psf->filelength - psf->dataend ; in mat4_write_header()
159 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mat4_write_header()
325 psf->datalength = psf->filelength - psf->dataoffset - psf->dataend ; in mat4_read_header()
Dtxw.c218 psf->datalength = psf->filelength - TXW_DATA_OFFSET ; in txw_read_header()
219 psf->sf.frames = 2 * psf->datalength / 3 ; in txw_read_header()
222 if (psf->datalength % 3 == 1) in txw_read_header()
224 (int) (psf->datalength % 3)) ; in txw_read_header()
Dpaf.c204 psf->datalength = psf->filelength - psf->dataoffset ; in paf_read_header()
227 psf->sf.frames = psf->datalength / psf->blockwidth ; in paf_read_header()
237 psf->sf.frames = psf->datalength / psf->blockwidth ; in paf_read_header()
247 psf->sf.frames = PAF24_SAMPLES_PER_BLOCK * psf->datalength / in paf_read_header()
389 psf->datalength = psf->filelength - psf->dataoffset ; in paf24_init()
391 if (psf->datalength % PAF24_BLOCK_SIZE) in paf24_init()
394 ppaf24->max_blocks = psf->datalength / ppaf24->blocksize + 1 ; in paf24_init()
397 ppaf24->max_blocks = psf->datalength / ppaf24->blocksize ; in paf24_init()
Dgsm610.c136 { if (psf->datalength % pgsm610->blocksize == 0) in gsm610_init()
137 pgsm610->blocks = psf->datalength / pgsm610->blocksize ; in gsm610_init()
138 else if (psf->datalength % pgsm610->blocksize == 1 && pgsm610->blocksize == GSM610_BLOCKSIZE) in gsm610_init()
146 pgsm610->blocks = psf->datalength / pgsm610->blocksize ; in gsm610_init()
150 pgsm610->blocks = psf->datalength / pgsm610->blocksize + 1 ; in gsm610_init()
180 psf->datalength = psf->filelength - psf->dataoffset ; in gsm610_init()
Dvoc.c430 psf->datalength = psf->filelength - psf->dataoffset ; in voc_write_header()
432 psf->datalength -= psf->filelength - psf->dataend ; in voc_write_header()
434 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in voc_write_header()
460 …psf_binheader_writef (psf, "e1311", BHW1 (VOC_SOUND_DATA), BHW3 ((int) (psf->datalength + 1)), BHW… in voc_write_header()
477 …psf_binheader_writef (psf, "e1311", BHW1 (VOC_SOUND_DATA), BHW3 ((int) (psf->datalength + 1)), BHW… in voc_write_header()
Daiff.c274 psf->datalength = 0 ; in aiff_open()
547 psf->datalength = SSNDsize - sizeof (ssnd_fmt) ; in aiff_read_header()
550 if (psf->datalength > psf->filelength - psf->dataoffset || psf->datalength < 0) in aiff_read_header()
552 psf->datalength = psf->filelength - psf->dataoffset ; in aiff_read_header()
562 psf->datalength -= ssnd_fmt.offset ; in aiff_read_header()
568 psf->datalength -= ssnd_fmt.offset ; in aiff_read_header()
572 if (psf->datalength + psf->dataoffset < psf->filelength) in aiff_read_header()
573 psf->dataend = psf->datalength + psf->dataoffset ; in aiff_read_header()
581 psf_fseek (psf, psf->dataoffset + psf->datalength, SEEK_SET) ; in aiff_read_header()
1198 …psf_binheader_writef (psf, "Etm8", BHWm (SSND_MARKER), BHW8 (psf->datalength + SIZEOF_SSND_CHUNK))… in aiff_rewrite_header()
[all …]
Dmat5.c171 psf->datalength = psf->filelength - psf->dataoffset ; in mat5_write_header()
173 psf->datalength -= psf->filelength - psf->dataend ; in mat5_write_header()
175 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mat5_write_header()
505 psf->datalength = psf->filelength - psf->dataoffset ; in mat5_read_header()
Dms_adpcm.c156 { pms->dataremaining = psf->datalength ; in wavlike_msadpcm_init()
158 if (psf->datalength % pms->blocksize) in wavlike_msadpcm_init()
159 pms->blocks = psf->datalength / pms->blocksize + 1 ; in wavlike_msadpcm_init()
161 pms->blocks = psf->datalength / pms->blocksize ; in wavlike_msadpcm_init()
169 psf->sf.frames = (psf->datalength / pms->blocksize) * pms->samplesperblock ; in wavlike_msadpcm_init()
468 if (psf->datalength < 0 || psf->dataoffset < 0) in msadpcm_seek()
Dulaw.c58 psf->datalength = (psf->dataend) ? psf->dataend - psf->dataoffset : in ulaw_init()
61 psf->datalength = 0 ; in ulaw_init()
63 psf->sf.frames = psf->blockwidth > 0 ? psf->datalength / psf->blockwidth : 0 ; in ulaw_init()
Dalaw.c69 …psf->datalength = (psf->dataend) ? psf->dataend - psf->dataoffset : psf->filelength - psf->dataoff… in alaw_init()
71 psf->datalength = 0 ; in alaw_init()
73 psf->sf.frames = psf->blockwidth > 0 ? psf->datalength / psf->blockwidth : 0 ; in alaw_init()
Drx2.c278 psf->datalength = psf->filelength - psf->dataoffset ; in rx2_open()
295 psf->sf.frames = psf->datalength / psf->blockwidth ; in rx2_open()
Dnms_adpcm.c1069 psf->datalength = psf->filelength - psf->dataoffset ; in nms_adpcm_init()
1071 psf->datalength -= psf->filelength - psf->dataend ; in nms_adpcm_init()
1086 if (psf->datalength % (pnms->shortsperblock * sizeof (short))) in nms_adpcm_init()
1088 psf->datalength, pnms->shortsperblock * sizeof (short)) ; in nms_adpcm_init()
1089 pnms->blocks_total = (psf->datalength / (pnms->shortsperblock * sizeof (short))) + 1 ; in nms_adpcm_init()
1092 pnms->blocks_total = psf->datalength / (pnms->shortsperblock * sizeof (short)) ; in nms_adpcm_init()
/third_party/python/Lib/
Daifc.py856 def _write_form_length(self, datalength): argument
866 8 + commlength + 16 + datalength)
872 datalength = self._datawritten + 1
875 datalength = self._datawritten
876 if datalength == self._datalength and \
882 dummy = self._write_form_length(datalength)
886 _write_ulong(self._file, datalength + 8)
889 self._datalength = datalength

12