Lines Matching refs:chunk_size
183 uint32_t marks [2], marker, chunk_size, parsestage = 0 ; in rf64_read_header() local
202 marker = chunk_size = 0 ; in rf64_read_header()
203 psf_binheader_readf (psf, "em4", &marker, &chunk_size) ; in rf64_read_header()
211 psf_store_read_chunk_u32 (&psf->rchunks, marker, psf_ftell (psf), chunk_size) ; in rf64_read_header()
230 if (chunk_size == bytesread) in rf64_read_header()
231 psf_log_printf (psf, "%M : %u\n", marker, chunk_size) ; in rf64_read_header()
232 else if (chunk_size >= bytesread + 4) in rf64_read_header()
236 { psf_log_printf (psf, "%M : %u (should be %u)\n", marker, chunk_size, bytesread) ; in rf64_read_header()
240 { psf_log_printf (psf, "%M : %u\n", marker, chunk_size) ; in rf64_read_header()
241 psf_binheader_readf (psf, "j", chunk_size - bytesread - 4) ; in rf64_read_header()
260 psf_log_printf (psf, "%M : %u\n", marker, chunk_size) ; in rf64_read_header()
261 if ((error = wavlike_read_fmt_chunk (psf, chunk_size)) != 0) in rf64_read_header()
268 if ((error = wavlike_read_bext_chunk (psf, chunk_size)) != 0) in rf64_read_header()
274 if ((error = wavlike_read_cart_chunk (psf, chunk_size)) != 0) in rf64_read_header()
281 if ((error = wavlike_subchunk_parse (psf, marker, chunk_size)) != 0) in rf64_read_header()
292 psf_log_printf (psf, "%M : %u\n", marker, chunk_size) ; in rf64_read_header()
293 if ((error = wavlike_read_peak_chunk (psf, chunk_size)) != 0) in rf64_read_header()
302 { if (chunk_size == 0xffffffff) in rf64_read_header()
303 psf_log_printf (psf, "%M : 0x%x\n", marker, chunk_size) ; in rf64_read_header()
305 psf_log_printf (psf, "%M : 0x%x (should be 0xffffffff\n", marker, chunk_size) ; in rf64_read_header()
309 { if (chunk_size == 0xffffffff) in rf64_read_header()
310 { psf_log_printf (psf, "%M : 0x%x\n", marker, chunk_size) ; in rf64_read_header()
314 …x\n**** Weird, RF64 file without a 'ds64' chunk and no valid 'data' size.\n", marker, chunk_size) ; in rf64_read_header()
315 psf->datalength = chunk_size ; in rf64_read_header()
322 { if (chunk_size == 0 && riff_size == 8 && psf->filelength > 44) in rf64_read_header()
344 psf_log_printf (psf, "%M : %d\n", marker, chunk_size) ; in rf64_read_header()
345 psf_binheader_readf (psf, "j", chunk_size) ; in rf64_read_header()
349 if (chunk_size >= 0xffff0000) in rf64_read_header()
350 … (%X) at position %D with length %u. Exiting parser.\n", marker, psf_ftell (psf) - 8, chunk_size) ; in rf64_read_header()
357 { psf_log_printf (psf, "*** %M : %d (unknown marker)\n", marker, chunk_size) ; in rf64_read_header()
358 psf_binheader_readf (psf, "j", chunk_size) ; in rf64_read_header()
362 … { psf_log_printf (psf, " Unknown chunk marker at position 0x%x. Resynching.\n", chunk_size - 4) ; in rf64_read_header()
374 if (marker != data_MARKER && chunk_size >= psf->filelength) in rf64_read_header()
375 …{ psf_log_printf (psf, "*** Chunk size %u > file length %D. Exiting parser.\n", chunk_size, psf->f… in rf64_read_header()