Home
last modified time | relevance | path

Searched refs:SF_MIN (Results 1 – 16 of 16) sorted by relevance

/third_party/libsnd/src/
Dogg.c296 nb_read = SF_MIN ((sf_count_t) OGG_SYNC_READ_SIZE, readmax - position) ; in ogg_sync_next_page()
440 chunk_size = SF_MIN (2 * chunk_size, (sf_count_t) OGG_CHUNK_SIZE_MAX) ; in ogg_sync_last_page_before()
441 end = SF_MIN (begin + OGG_PAGE_SIZE_MAX - 1, original_end) ; in ogg_sync_last_page_before()
553 chunk_size = SF_MIN (2 * chunk_size, (sf_count_t) OGG_CHUNK_SIZE_MAX) ; in ogg_stream_seek_page_search()
570 next_boundary = SF_MIN (page_offset, next_boundary) ; in ogg_stream_seek_page_search()
Dogg_opus.c1076 …oopus->loc = SF_MIN ((oopus->header.preskip - (int) oopus->pkt_pos) / oopus->sr_factor, oopus->len… in ogg_opus_read_refill()
1155 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_s()
1192 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_i()
1228 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_f()
1252 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_d()
1285 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_s()
1317 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_i()
1348 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_f()
1376 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_d()
1504 readlen = SF_MIN ((int) (offset - total), (oopus->len - oopus->loc)) ; in ogg_opus_seek_null_read()
Dima_oki_adpcm.c95 state->step_index = SF_MIN (SF_MAX (state->step_index, 0), state->max_step_index) ; in adpcm_decode()
113 code = sign | SF_MIN (code, 7) ; in adpcm_encode()
Dcart.c94 size = SF_MIN (datasize, cart_min_size ((const SF_CART_INFO *) psf->cart_16k)) ; in cart_var_get()
Dbroadcast.c103 size = SF_MIN (datasize, bc_min_size ((const SF_BROADCAST_INFO *) psf->broadcast_16k)) ; in broadcast_var_get()
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()
Dcommon.h111 #define SF_MIN(x, y) ({ \ macro
118 #define SF_MIN(a, b) ((a) < (b) ? (a) : (b)) macro
Dflac.c194 channels = SF_MIN (frame->header.channels, FLAC__MAX_CHANNELS) ; in flac_buffer_copy()
213 len = SF_MIN (pflac->len, frame->header.blocksize) ; in flac_buffer_copy()
884 pflac->compression = psf_lrint (SF_MAX (0.0, SF_MIN (8.0, quality))) ; in flac_command()
Dcaf.c813 …{ size_t chanmap_size = SF_MIN (psf->sf.channels, layout_tag & 0xff) * sizeof (psf->channel_map [0… in caf_read_chanmap()
1029 …psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf)… in caf_get_chunk_data()
Daiff.c1031 comm_fmt->size = SF_MIN (sizeof (ubuf.scbuf), make_size_t (comm_fmt->size)) ; in aiff_read_comm_chunk()
1776 …{ size_t chanmap_size = SF_MIN (psf->sf.channels, layout_tag & 0xffff) * sizeof (psf->channel_map … in aiff_read_chanmap()
1830 …psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf)… in aiff_get_chunk_data()
Dw64.c310 psf->datalength = SF_MIN (chunk_size - 24, psf->filelength - psf->dataoffset) ; in w64_read_header()
Drf64.c890 …psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf)… in rf64_get_chunk_data()
Dogg_vorbis.c533 vdata->quality = SF_MAX (0.0, SF_MIN (1.0, vdata->quality)) ; in vorbis_command()
Dwav.c1567 …psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf)… in wav_get_chunk_data()
Dcommon.c1285 cue_count = SF_MIN (cue_count, psf->cues->cue_count) ; in psf_get_cues()
Dsndfile.c1391 quality = 1.0 - SF_MAX (0.0, SF_MIN (1.0, quality)) ; in sf_command()