Home
last modified time | relevance | path

Searched refs:filelength (Results 1 – 25 of 44) sorted by relevance

12

/third_party/libsnd/src/
Dvoc.c110 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in voc_open()
252 if (offset + size - 1 > psf->filelength) in voc_read_header()
254 …et: %d size: %d sum: %d filelength: %D\n", offset, size, offset + size, psf->filelength) ; in voc_read_header()
257 else if (psf->filelength - offset - size > 4) in voc_read_header()
259 …et: %d size: %d sum: %d filelength: %D\n", offset, size, offset + size, psf->filelength) ; in voc_read_header()
264 psf->dataend = psf->filelength - 1 ; in voc_read_header()
315 if (offset + size - 1 > psf->filelength) in voc_read_header()
317 …et: %d size: %d sum: %d filelength: %D\n", offset, size, offset + size, psf->filelength) ; in voc_read_header()
320 else if (offset + size - 1 < psf->filelength) in voc_read_header()
322 …et: %d size: %d sum: %d filelength: %D\n", offset, size, offset + size, psf->filelength) ; in voc_read_header()
[all …]
Dsvx.c85 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in svx_open()
137 if (psf->filelength > SF_PLATFORM_S64 (0xffffffff)) in svx_read_header()
156 if (chunk_size != psf->filelength - 2 * sizeof (chunk_size)) in svx_read_header()
157 …psf_log_printf (psf, "FORM : %u (should be %u)\n", chunk_size, (uint32_t) psf->filelength - 2 * si… 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()
320 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in svx_read_header()
350 { psf->filelength = psf_get_filelen (psf) ; in svx_write_header()
352 psf->datalength = psf->filelength - psf->dataoffset ; in svx_write_header()
[all …]
Dhtk.c58 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in htk_open()
112 psf->filelength = psf_get_filelen (psf) ; in htk_write_header()
119 if (psf->filelength > 12) in htk_write_header()
120 sample_count = (psf->filelength - 12) / 2 ; in htk_write_header()
191 if (2 * sample_count + 12 != psf->filelength) in htk_read_header()
217 psf->datalength = psf->filelength - psf->dataoffset ; in htk_read_header()
222 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in htk_read_header()
Dw64.c132 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR &&psf->filelength > 0)) in w64_open()
158 psf->filelength = SF_COUNT_MAX - 10000 ; in w64_open()
159 psf->datalength = psf->filelength ; in w64_open()
161 psf->sf.frames = (psf->blockwidth) ? psf->filelength / psf->blockwidth : psf->filelength ; in w64_open()
253 if (psf->filelength != chunk_size) in w64_read_header()
254 psf_log_printf (psf, "riff : %D (should be %D)\n", chunk_size, psf->filelength) ; in w64_read_header()
310 psf->datalength = SF_MIN (chunk_size - 24, psf->filelength - psf->dataoffset) ; in w64_read_header()
356 if (chunk_size >= psf->filelength) in w64_read_header()
357 …rintf (psf, "*** Chunk size %u > file length %D. Exiting parser.\n", chunk_size, psf->filelength) ; in w64_read_header()
364 if (psf_ftell (psf) >= (psf->filelength - (2 * SIGNED_SIZEOF (dword)))) in w64_read_header()
[all …]
Dau.c109 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in au_open()
209 { psf->filelength = psf_get_filelen (psf) ; in au_write_header()
211 psf->datalength = psf->filelength - psf->dataoffset ; in au_write_header()
213 psf->datalength -= psf->filelength - psf->dataend ; in au_write_header()
321 { psf->filelength = au_fmt.dataoffset + au_fmt.datasize ; in au_read_header()
324 else if (au_fmt.datasize == -1 || au_fmt.dataoffset + au_fmt.datasize == psf->filelength) in au_read_header()
326 else if (au_fmt.dataoffset + au_fmt.datasize < psf->filelength) in au_read_header()
327 { psf->filelength = au_fmt.dataoffset + au_fmt.datasize ; in au_read_header()
331 { dword = psf->filelength - au_fmt.dataoffset ; in au_read_header()
337 psf->datalength = psf->filelength - psf->dataoffset ; in au_read_header()
[all …]
Dwve.c61 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in wve_open()
133 if (datalength != psf->filelength - psf->dataoffset) in wve_read_header()
134 { psf->datalength = psf->filelength - psf->dataoffset ; in wve_read_header()
161 { psf->filelength = psf_get_filelen (psf) ; in wve_write_header()
163 psf->datalength = psf->filelength - psf->dataoffset ; in wve_write_header()
165 psf->datalength -= psf->filelength - psf->dataend ; in wve_write_header()
Drf64.c101 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in rf64_open()
245 if (psf->filelength != riff_size + 8) in rf64_read_header()
246 psf_log_printf (psf, " Riff size : %D (should be %D)\n", riff_size, psf->filelength - 8) ; in rf64_read_header()
322 { if (chunk_size == 0 && riff_size == 8 && psf->filelength > 44) 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()
374 if (marker != data_MARKER && chunk_size >= psf->filelength) in rf64_read_header()
375 …rintf (psf, "*** Chunk size %u > file length %D. Exiting parser.\n", chunk_size, psf->filelength) ; in rf64_read_header()
379 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (marker)) in rf64_read_header()
413 { if (psf->filelength - psf->dataoffset < psf->datalength) in rf64_read_header()
[all …]
Dwav.c170 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in wav_open()
200 if (psf->file.mode != SFM_RDWR || psf->filelength < 44) in wav_open()
201 { psf->filelength = 0 ; in wav_open()
280 if (psf->file.mode == SFM_WRITE || (psf->file.mode == SFM_RDWR && psf->filelength == 0)) in wav_open()
298 if (psf->is_pipe == 0 && psf->filelength > SF_PLATFORM_S64 (0xffffffff)) in wav_read_header()
338 if (psf->fileoffset > 0 && psf->filelength > RIFFsize + 8) in wav_read_header()
340 psf->filelength = RIFFsize + 8 ; in wav_read_header()
346 else if (psf->filelength < RIFFsize + 2 * SIGNED_SIZEOF (marker)) in wav_read_header()
348 …psf_log_printf (psf, "RIFF : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (… in wav_read_header()
350 …psf_log_printf (psf, "RIFX : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (… in wav_read_header()
[all …]
Dmat4.c79 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in mat4_open()
153 { psf->filelength = psf_get_filelen (psf) ; in mat4_write_header()
155 psf->datalength = psf->filelength - psf->dataoffset ; in mat4_write_header()
157 psf->datalength -= psf->filelength - psf->dataend ; in mat4_write_header()
318 if ((psf->filelength - psf->dataoffset) < psf->sf.channels * psf->sf.frames * psf->bytewidth) in mat4_read_header()
320 psf->filelength - psf->dataoffset, psf->sf.channels * psf->sf.frames * psf->bytewidth) ; in mat4_read_header()
322 else if ((psf->filelength - psf->dataoffset) > psf->sf.channels * psf->sf.frames * psf->bytewidth) in mat4_read_header()
325 psf->datalength = psf->filelength - psf->dataoffset - psf->dataend ; in mat4_read_header()
Davr.c83 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in avr_open()
170 psf->filelength = AVR_HDR_SIZE + psf->datalength ; in avr_read_header()
178 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in avr_read_header()
194 { psf->filelength = psf_get_filelen (psf) ; in avr_write_header()
196 psf->datalength = psf->filelength - psf->dataoffset ; in avr_write_header()
198 psf->datalength -= psf->filelength - psf->dataend ; in avr_write_header()
Dmpc2k.c68 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in mpc2k_open()
115 { psf->filelength = psf_get_filelen (psf) ; in mpc2k_write_header()
118 psf->datalength = psf->filelength - psf->dataoffset ; in mpc2k_write_header()
196 psf->datalength = psf->filelength - psf->dataoffset ; in mpc2k_read_header()
200 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in mpc2k_read_header()
Ddwd.c74 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in dwd_open()
174 if (psf->filelength != dwdh.offset + dwdh.datalen) in dwd_read_header()
175 …{ psf_log_printf (psf, " Data Length : %d (should be %D)\n", dwdh.datalen, psf->filelength - dw… in dwd_read_header()
176 dwdh.datalen = (unsigned int) (psf->filelength - dwdh.offset) ; in dwd_read_header()
Dcaf.c126 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in caf_open()
147 if (psf->file.mode != SFM_RDWR || psf->filelength < 44) in caf_open()
148 { psf->filelength = 0 ; in caf_open()
405 if (chunk_size > psf->filelength) in caf_read_header()
464 chunk_size = psf->filelength - psf->header.indx ; in caf_read_header()
466 else if (psf->filelength > 0 && chunk_size > psf->filelength - psf->header.indx + 10) in caf_read_header()
467 …{ psf_log_printf (psf, "%M : %D (should be %D)\n", marker, chunk_size, psf->filelength - psf->head… in caf_read_header()
468 psf->datalength = psf->filelength - psf->header.indx - 8 ; in caf_read_header()
479 if (psf->datalength + psf->dataoffset < psf->filelength) in caf_read_header()
497 else if (chunk_size > psf->filelength - psf->header.indx) in caf_read_header()
[all …]
Drx2.c98 if (length != psf->filelength - 8) in rx2_open()
99 psf_log_printf (psf, "%M : %d (should be %d)\n", marker, length, psf->filelength - 8) ; in rx2_open()
238 if (psf->dataoffset + length != psf->filelength) in rx2_open()
239 …_log_printf (psf, " %M : %d (should be %d)\n", marker, length, psf->dataoffset + psf->filelength) ; in rx2_open()
278 psf->datalength = psf->filelength - psf->dataoffset ; in rx2_open()
Dnist.c57 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in nist_open()
228 psf->datalength = psf->filelength - psf->dataoffset ; in nist_read_header()
295 { psf->filelength = psf_get_filelen (psf) ; in nist_write_header()
297 psf->datalength = psf->filelength - psf->dataoffset ; in nist_write_header()
300 psf->datalength -= psf->filelength - psf->dataend ; in nist_write_header()
Dpvf.c54 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in pvf_open()
181 psf->datalength = psf->filelength - psf->dataoffset ; in pvf_read_header()
185 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in pvf_read_header()
Daiff.c248 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in aiff_open()
272 if (psf->file.mode != SFM_RDWR || psf->filelength < 40) in aiff_open()
273 { psf->filelength = 0 ; in aiff_open()
407 if (psf->filelength > SF_PLATFORM_S64 (0xffffffff)) in aiff_read_header()
463 if (psf->fileoffset > 0 && psf->filelength > FORMsize + 8) in aiff_read_header()
465 psf->filelength = FORMsize + 8 ; in aiff_read_header()
468 else if (FORMsize != psf->filelength - 2 * SIGNED_SIZEOF (chunk_size)) in aiff_read_header()
469 { chunk_size = psf->filelength - 2 * sizeof (chunk_size) ; in aiff_read_header()
550 if (psf->datalength > psf->filelength - psf->dataoffset || psf->datalength < 0) in aiff_read_header()
551 …{ psf_log_printf (psf, " SSND : %u (should be %D)\n", SSNDsize, psf->filelength - psf->dataoffset … in aiff_read_header()
[all …]
Dmat5.c89 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in mat5_open()
168 psf->filelength = psf_ftell (psf) ; in mat5_write_header()
171 psf->datalength = psf->filelength - psf->dataoffset ; in mat5_write_header()
173 psf->datalength -= psf->filelength - psf->dataend ; in mat5_write_header()
505 psf->datalength = psf->filelength - psf->dataoffset ; in mat5_read_header()
Dg72x.c115 psf->filelength = psf_get_filelen (psf) ; in g72x_init()
116 if (psf->filelength < psf->dataoffset) in g72x_init()
117 psf->filelength = psf->dataoffset ; in g72x_init()
119 psf->datalength = psf->filelength - psf->dataoffset ; in g72x_init()
121 psf->datalength -= psf->filelength - psf->dataend ; in g72x_init()
Did3.c51 if (psf->fileoffset + offset < psf->filelength) in id3_skip()
Dfile_io.c213 if (psf->fileoffset > 0 && psf->filelength > 0) in psf_get_filelen()
214 filelen = psf->filelength ; in psf_get_filelen()
261 psf->filelength = 0 ; in psf_set_stdio()
719 if (psf->fileoffset > 0 && psf->filelength > 0) in psf_get_filelen()
720 filelen = psf->filelength ; in psf_get_filelen()
894 psf->filelength = 0 ; in psf_set_stdio()
1512 if (psf->fileoffset > 0 && psf->filelength > 0) in psf_get_filelen()
1513 filelen = psf->filelength ; in psf_get_filelen()
Dircam.c83 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in ircam_open()
221 psf->datalength = psf->filelength - psf->dataoffset ; in ircam_read_header()
Dnew.c103 psf->datalength = psf->filelength - psf->dataoffset ; in new_read_header()
Dpaf.c107 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in paf_open()
162 if (psf->filelength < PAF_HEADER_LENGTH) in paf_read_header()
204 psf->datalength = psf->filelength - psf->dataoffset ; in paf_read_header()
388 psf->filelength = psf_get_filelen (psf) ; in paf24_init()
389 psf->datalength = psf->filelength - psf->dataoffset ; in paf24_init()
Draw.c45 psf->datalength = psf->filelength ; in raw_open()

12