Home
last modified time | relevance | path

Searched refs:SIGNED_SIZEOF (Results 1 – 24 of 24) sorted by relevance

/third_party/libsnd/src/
Dinterleave.c119 { if (templen > SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (short)) in interleave_read_short()
120 count = SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (short) ; in interleave_read_short()
166 { if (templen > SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (int)) in interleave_read_int()
167 count = SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (int) ; in interleave_read_int()
216 { if (templen > SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (float)) in interleave_read_float()
217 count = SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (float) ; in interleave_read_float()
264 { if (templen > SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (double)) in interleave_read_double()
265 count = SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (double) ; in interleave_read_double()
Dcommand.c109 …if (data->format < 0 || data->format >= (SIGNED_SIZEOF (simple_formats) / SIGNED_SIZEOF (SF_FORMAT… in psf_get_format_simple()
113 memcpy (data, &(simple_formats [indx]), SIGNED_SIZEOF (SF_FORMAT_INFO)) ; in psf_get_format_simple()
165 …if (data->format < 0 || data->format >= (SIGNED_SIZEOF (major_formats) / SIGNED_SIZEOF (SF_FORMAT_… in psf_get_format_major()
169 memcpy (data, &(major_formats [indx]), SIGNED_SIZEOF (SF_FORMAT_INFO)) ; in psf_get_format_major()
233 …if (data->format < 0 || data->format >= (SIGNED_SIZEOF (subtype_formats) / SIGNED_SIZEOF (SF_FORMA… in psf_get_format_subtype()
254 for (k = 0 ; k < (SIGNED_SIZEOF (major_formats) / SIGNED_SIZEOF (SF_FORMAT_INFO)) ; k++) in psf_get_format_info()
264 for (k = 0 ; k < (SIGNED_SIZEOF (subtype_formats) / SIGNED_SIZEOF (SF_FORMAT_INFO)) ; k++) in psf_get_format_info()
Dtest_file_io.c192 test_seek_or_die (psf, 0, SEEK_END, 2 * SIGNED_SIZEOF (data_out), __LINE__) ; in file_read_write_test()
193 …test_seek_or_die (psf, -1 * SIGNED_SIZEOF (data_out), SEEK_CUR, (sf_count_t) sizeof (data_out), __… in file_read_write_test()
195 …test_seek_or_die (psf, SIGNED_SIZEOF (data_out), SEEK_CUR, 2 * SIGNED_SIZEOF (data_out), __LINE__)… in file_read_write_test()
204 …test_seek_or_die (psf, 2 * SIGNED_SIZEOF (data_out), SEEK_SET, 2 * SIGNED_SIZEOF (data_out), __LIN… in file_read_write_test()
209 test_seek_or_die (psf, SIGNED_SIZEOF (data_out), SEEK_SET, SIGNED_SIZEOF (data_out), __LINE__) ; in file_read_write_test()
235 test_seek_or_die (psf, SIGNED_SIZEOF (data_out), SEEK_SET, SIGNED_SIZEOF (data_out), __LINE__) ; in file_read_write_test()
303 for (k = 0 ; k < SIGNED_SIZEOF (buffer) / 2 ; k++) in file_truncate_test()
309 for (k = SIGNED_SIZEOF (buffer) / 2 ; k < SIGNED_SIZEOF (buffer) ; k++) in file_truncate_test()
324 test_seek_or_die (psf, 0, SEEK_END, SIGNED_SIZEOF (buffer) / 4, __LINE__) ; in file_truncate_test()
Dsndfile.c929 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in sf_command()
935 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command()
940 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in sf_command()
946 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command()
951 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in sf_command()
957 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command()
962 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command()
983 if (data == NULL || datasize != SIGNED_SIZEOF (SF_INFO)) in sf_command()
1081 if (data == NULL || datasize != SIGNED_SIZEOF (double) * psf->sf.channels) in sf_command()
1086 if (data == NULL || datasize != SIGNED_SIZEOF (double) * psf->sf.channels) in sf_command()
[all …]
Dmat4.c235 if (namesize >= SIGNED_SIZEOF (name)) in mat4_read_header()
265 if (namesize >= SIGNED_SIZEOF (name)) in mat4_read_header()
Daiff.c468 else if (FORMsize != psf->filelength - 2 * SIGNED_SIZEOF (chunk_size)) in aiff_read_header()
587 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf)) in aiff_read_header()
606 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 1) in aiff_read_header()
633 if (len + 1 > SIGNED_SIZEOF (ubuf.scbuf)) in aiff_read_header()
654 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 1) in aiff_read_header()
685 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 2) in aiff_read_header()
701 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 2) in aiff_read_header()
922 if (psf_ftell (psf) >= psf->filelength - (2 * SIGNED_SIZEOF (int32_t))) in aiff_read_header()
1011 &(comm_fmt->sampleSize), &(comm_fmt->sampleRate), SIGNED_SIZEOF (comm_fmt->sampleRate)) ; in aiff_read_comm_chunk()
Dwav.c346 else if (psf->filelength < RIFFsize + 2 * SIGNED_SIZEOF (marker)) in wav_read_header()
348 …rintf (psf, "RIFF : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (marker)) ; in wav_read_header()
350 …rintf (psf, "RIFX : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (marker)) ; in wav_read_header()
352 RIFFsize = psf->filelength - 2 * SIGNED_SIZEOF (RIFFsize) ; in wav_read_header()
444 if (chunk_size > SIGNED_SIZEOF (fact_chunk)) in wav_read_header()
445 psf_binheader_readf (psf, "j", (int) (chunk_size - SIGNED_SIZEOF (fact_chunk))) ; in wav_read_header()
634 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in wav_read_header()
Dmat5.c334 if (size > SIGNED_SIZEOF (name) - 1) in mat5_read_header()
428 if (size > SIGNED_SIZEOF (name) - 1) in mat5_read_header()
Drx2.c121 if (length >= SIGNED_SIZEOF (ubuf.cbuf)) in rx2_open()
Dsd2.c524 read_rsrc_str (rsrc, str_offset + 1, name, SF_MIN (SIGNED_SIZEOF (name), slen + 1)) ; in parse_str_rsrc()
548 read_rsrc_str (rsrc, data_offset + 5, value, SF_MIN (SIGNED_SIZEOF (value), slen + 1)) ; in parse_str_rsrc()
Dcaf.c368 if (chunk_size < SIGNED_SIZEOF (DESC_CHUNK)) in caf_read_header()
386 if (chunk_size > SIGNED_SIZEOF (DESC_CHUNK)) in caf_read_header()
550 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in caf_read_header()
Dogg_opus.c1671 if (data == NULL || datasize != SIGNED_SIZEOF (double)) in ogg_opus_command()
1689 if (data == NULL || datasize != SIGNED_SIZEOF (double)) in ogg_opus_command()
1704 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in ogg_opus_command()
1731 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in ogg_opus_command()
Dsvx.c320 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in svx_read_header()
Dwavlike.c1009 if (chunk_size >= SIGNED_SIZEOF (buffer) || chunk_size >= chunk_length) in wavlike_subchunk_parse()
1025 if (chunk_size < 1 || chunk_size >= SIGNED_SIZEOF (buffer) || chunk_size >= chunk_length) in wavlike_subchunk_parse()
1056 if (chunk_size >= SIGNED_SIZEOF (buffer) || chunk_size >= chunk_length) in wavlike_subchunk_parse()
Dvoc.c165 offset = psf_binheader_readf (psf, "pb", 0, creative, SIGNED_SIZEOF (creative)) ; in voc_read_header()
Dw64.c364 if (psf_ftell (psf) >= (psf->filelength - (2 * SIGNED_SIZEOF (dword)))) in w64_read_header()
Ddwvw.c443 if (pdwvw->b.index > SIGNED_SIZEOF (pdwvw->b.buffer) - 4) in dwvw_encode_store_bits()
Drf64.c379 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (marker)) in rf64_read_header()
Dcommon.h98 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro
Dcommon.c96 { if (psf->parselog.indx < SIGNED_SIZEOF (psf->parselog.buf) - 1) in log_putchar()
/third_party/libsnd/tests/
Dwin32_test.c40 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro
116 printf ("0) Create a file, write %d bytes and close it.\n", SIGNED_SIZEOF (data)) ; in show_fstat_error()
126 … Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ; in show_fstat_error()
176 printf ("0) Create a file, write %d bytes and close it.\n", SIGNED_SIZEOF (data)) ; in show_lseek_error()
186 … Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ; in show_lseek_error()
236 printf ("0) Create a file and write %d bytes.\n", SIGNED_SIZEOF (data)) ; in show_stat_fstat_error()
Dvirtual_io_test.c110 if (vf->offset >= SIGNED_SIZEOF (vf->data)) in vfwrite()
113 if (vf->offset + count > SIGNED_SIZEOF (vf->data)) in vfwrite()
Dutils.tpl40 #define SIGNED_SIZEOF(x) ((int64_t) (sizeof (x)))
464 for (m = readcount ; m < SIGNED_SIZEOF (buffer) ; m++)
473 if (readcount < SIGNED_SIZEOF (buffer))
/third_party/libsnd/programs/
Dsndfile-play.c78 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro