Home
last modified time | relevance | path

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

/external/libopus/celt/
Drate.c338 rem = IMAX(left-(m->eBands[j]-m->eBands[start]),0); in interp_bits2pulses()
344 if (band_bits >= IMAX(thresh[j], alloc_floor+(1<<BITRES))) in interp_bits2pulses()
468 ebits[j] = IMAX(0, (bits[j] + offset + (den<<(BITRES-1))) / (den<<BITRES)); in interp_bits2pulses()
541 total = IMAX(total, 0); in compute_allocation()
569 thresh[j] = IMAX((C)<<BITRES, (3*(m->eBands[j+1]-m->eBands[j])<<LM<<BITRES)>>4); in compute_allocation()
591 bitsj = IMAX(0, bitsj + trim_offset[j]); in compute_allocation()
620 bits1j = IMAX(0, bits1j + trim_offset[j]); in compute_allocation()
622 bits2j = IMAX(0, bits2j + trim_offset[j]); in compute_allocation()
628 bits2j = IMAX(0,bits2j-bits1j); in compute_allocation()
Dcelt_encoder.c349 id = IMAX(0,IMIN(127,MULT16_32_Q15(tmp[i],norm))); /* Do not round to nearest */ in transient_analysis()
351 id = IMAX(0,IMIN(127,(int)floor(64*norm*tmp[i]))); /* Do not round to nearest */ in transient_analysis()
1096 qg = IMAX(0, IMIN(7, qg)); in run_prefilter()
1104 st->prefilter_period=IMAX(st->prefilter_period, COMBFILTER_MINPERIOD); in run_prefilter()
1205 target = IMAX(target/4, surround_target); in compute_vbr()
1214 floor_depth = IMAX(floor_depth, target>>2); in compute_vbr()
1237 amount = MULT16_16_Q15(QCONST16(.0000031f, 30), IMAX(0, IMIN(32000, 96000-bitrate))); in compute_vbr()
1356 st->end = IMAX(1, mode->effEBands-tmp); in celt_encode_with_ec()
1398 nbCompressedBytes = IMAX(2, IMIN(nbCompressedBytes, in celt_encode_with_ec()
1426 max_allowed = IMIN(IMAX(tell==1?2:0, in celt_encode_with_ec()
[all …]
Dcelt_decoder.c384 effEnd = IMAX(start, IMIN(end, mode->effEBands)); in celt_decode_lost()
529 … int shift = IMAX(0,2*celt_zlog2(celt_maxabs16(&exc[MAX_PERIOD-exc_length], exc_length))-20); in celt_decode_lost()
728 st->end = IMAX(1, mode->effEBands-2*(data0>>5));
857 quanta = IMIN(width<<BITRES, IMAX(6<<BITRES, width));
874 dynalloc_logp = IMAX(2, dynalloc_logp-1);
914 ALLOC(freq, IMAX(CC,C)*N, celt_sig); /**< Interleaved signal MDCTs */
957 st->postfilter_period=IMAX(st->postfilter_period, COMBFILTER_MINPERIOD);
958 st->postfilter_period_old=IMAX(st->postfilter_period_old, COMBFILTER_MINPERIOD);
Darch.h80 #define IMAX(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum int value. */ macro
Dquant_bands.c223 qi = IMAX(-1, qi); in quant_coarse_energy_impl()
236 qi = IMAX(-1, IMIN(qi, 1)); in quant_coarse_energy_impl()
Dbands.c952 mbits = IMAX(0, IMIN(b, (b-delta)/2)); in quant_partition()
1300 mbits = IMAX(0, IMIN(b, (b-delta)/2)); in quant_band_stereo()
1432 b = IMAX(0, IMIN(16383, IMIN(remaining_bits+1,pulses[i]+curr_balance))); in quant_all_bands()
1460 effective_lowband = IMAX(0, M*eBands[lowband_offset]-norm_offset-N); in quant_all_bands()
Dcwrs.c196 # define CELT_PVQ_U(_n,_k) (CELT_PVQ_U_ROW[IMIN(_n,_k)][IMAX(_n,_k)])
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_opcode_tmp.h146 OP12(IMAX)
/external/libopus/src/
Danalysis.c177 curr_lookahead = IMAX(curr_lookahead-10, 0); in tonality_get_info()
384 noise_floor = 5.7e-4f/(1<<(IMAX(0,lsb_depth-8))); in tonality_analysis()
Dopus_decoder.c328 pcm_silk_size = (mode != MODE_CELT_ONLY) ? IMAX(F10, frame_size)*st->channels : ALLOC_NONE; in opus_decode_frame()
341 st->DecControl.payloadSize_ms = IMAX(10, 1000 * audiosize / st->Fs); in opus_decode_frame()
Dopus_encoder.c861 short_alpha = Q15ONE - 25*Q15ONE/IMAX(50,frame_rate); in compute_stereo_width()
1320 st->detected_bandwidth = IMAX(st->detected_bandwidth, min_detected_bandwidth); in opus_encode_native()
1586 st->silk_mode.bitRate = IMAX(1, st->silk_mode.bitRate-2000); in opus_encode_native()
1747 st->silk_mode.stereoWidth_Q14 = IMIN((1<<14),2*IMAX(0,equiv_rate-30000)); in opus_encode_native()
1783 redundancy_bytes = IMIN(257, IMAX(2, redundancy_bytes)); in opus_encode_native()
Dopus_multistream_encoder.c847 curr_max -= IMAX(0,4*(st->layout.nb_streams-s-1)-1); in opus_multistream_encode_native()
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d1x/
Dsm4_to_tgsi.cpp501 OP2(IMAX); in translate_insns()
/external/speex/libspeex/
Dresample.c91 #define IMAX(a,b) ((a) > (b) ? (a) : (b)) macro
/external/mesa3d/src/gallium/drivers/nv50/codegen/
Dnv50_ir_from_tgsi.cpp524 NV50_IR_OPCODE_CASE(IMAX, MAX); in translateOpcode()
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp661 case3(MAX, IMAX, UMAX); in get_opcode()