/third_party/libsnd/src/ |
D | mpeg_l3_encode.c | 455 return SF_MIN (byterate, (int) calculated_byterate) ; in mpeg_l3_encoder_byterate() 471 { writecount = SF_MIN (len, (sf_count_t) pmpeg->frame_samples) ; in mpeg_l3_encode_write_short_mono() 504 const sf_count_t max_samples = SF_MIN (ARRAY_LEN (ubuf.sbuf), pmpeg->frame_samples) ; in mpeg_l3_encode_write_short_stereo() 506 { writecount = SF_MIN (len, max_samples) ; in mpeg_l3_encode_write_short_stereo() 543 { writecount = SF_MIN (len, (sf_count_t) pmpeg->frame_samples) ; in mpeg_l3_encode_write_int_mono() 576 { writecount = SF_MIN (len, (sf_count_t) pmpeg->frame_samples) ; in mpeg_l3_encode_write_int_stereo() 609 { writecount = SF_MIN (len, (sf_count_t) pmpeg->frame_samples) ; in mpeg_l3_encode_write_float_mono() 653 const sf_count_t max_samples = SF_MIN (ARRAY_LEN (ubuf.fbuf), pmpeg->frame_samples) ; in mpeg_l3_encode_write_float_stereo() 655 { writecount = SF_MIN (len, max_samples) ; in mpeg_l3_encode_write_float_stereo() 703 const sf_count_t max_samples = SF_MIN (ARRAY_LEN (ubuf.dbuf), pmpeg->frame_samples) ; in mpeg_l3_encode_write_double_mono() [all …]
|
D | ogg.c | 298 nb_read = SF_MIN ((sf_count_t) OGG_SYNC_READ_SIZE, readmax - position) ; in ogg_sync_next_page() 446 chunk_size = SF_MIN (2 * chunk_size, (sf_count_t) OGG_CHUNK_SIZE_MAX) ; in ogg_sync_last_page_before() 447 end = SF_MIN (begin + OGG_PAGE_SIZE_MAX - 1, original_end) ; in ogg_sync_last_page_before() 561 chunk_size = SF_MIN (2 * chunk_size, (sf_count_t) OGG_CHUNK_SIZE_MAX) ; in ogg_stream_seek_page_search() 578 next_boundary = SF_MIN (page_offset, next_boundary) ; in ogg_stream_seek_page_search()
|
D | ima_oki_adpcm.c | 95 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()
|
D | ogg_opus.c | 1088 …oopus->loc = SF_MIN ((oopus->header.preskip - (int) oopus->pkt_pos) / oopus->sr_factor, oopus->len… in ogg_opus_read_refill() 1163 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_s() 1200 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_i() 1236 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_f() 1260 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_d() 1293 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_s() 1325 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_i() 1356 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_f() 1384 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_write_d() 1504 { sf_count_t readlen = SF_MIN ((int) (offset - total), (oopus->len - oopus->loc)) ; in ogg_opus_null_read()
|
D | cart.c | 94 size = SF_MIN (datasize, cart_min_size ((const SF_CART_INFO *) psf->cart_16k)) ; in cart_var_get()
|
D | mpeg_decode.c | 115 { readlen = mpeg_dec_decode (psf, ubuf.fbuf, SF_MIN (buflen, len - total)) ; in mpeg_dec_read_s() 134 { readlen = mpeg_dec_decode (psf, ubuf.fbuf, SF_MIN (buflen, len - total)) ; in mpeg_dec_read_i() 177 { readlen = mpeg_dec_decode (psf, ubuf.fbuf, SF_MIN (buflen, len - total)) ; in mpeg_dec_read_d()
|
D | broadcast.c | 103 size = SF_MIN (datasize, bc_min_size ((const SF_BROADCAST_INFO *) psf->broadcast_16k)) ; in broadcast_var_get()
|
D | sd2.c | 524 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()
|
D | flac.c | 203 channels = SF_MIN (frame->header.channels, FLAC__MAX_CHANNELS) ; in flac_buffer_copy() 222 len = SF_MIN (pflac->len, frame->header.blocksize) ; in flac_buffer_copy() 893 pflac->compression = psf_lrint (SF_MAX (0.0, SF_MIN (8.0, quality))) ; in flac_command()
|
D | ogg_vorbis.c | 528 vdata->quality = SF_MAX (0.0, SF_MIN (1.0, vdata->quality)) ; in vorbis_command() 809 thisblock = SF_MIN (thisblock, (int) (target - vdata->gp)) ; in vorbis_skip()
|
D | caf.c | 814 …{ size_t chanmap_size = SF_MIN (psf->sf.channels, layout_tag & 0xff) * sizeof (psf->channel_map [0… in caf_read_chanmap() 1030 …psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf)… in caf_get_chunk_data()
|
D | aiff.c | 1031 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()
|
D | w64.c | 312 psf->datalength = SF_MIN (chunk_size - 24, psf->filelength - psf->dataoffset) ; in w64_read_header()
|
D | common.c | 930 size_t to_skip = SF_MIN (skip, sizeof (junk)) ; in header_seek() 1353 cue_count = SF_MIN (cue_count, psf->cues->cue_count) ; in psf_get_cues()
|
D | common.h | 92 #define SF_MIN(a, b) ((a) < (b) ? (a) : (b)) macro
|
D | rf64.c | 890 …psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf)… in rf64_get_chunk_data()
|
D | wav.c | 1649 …psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf)… in wav_get_chunk_data()
|
D | sndfile.c | 1479 quality = 1.0 - SF_MAX (0.0, SF_MIN (1.0, quality)) ; in sf_command()
|