Home
last modified time | relevance | path

Searched refs:MAX_16 (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dcnst_vad.h56 #define TONE_THR (Word16)(0.65*MAX_16) /* Threshold for tone detection */
59 #define ALPHA_UP1 (Word16)((1.0 - 0.95)*MAX_16) /* Normal update, upwards: */
60 #define ALPHA_DOWN1 (Word16)((1.0 - 0.936)*MAX_16) /* Normal update, downwards */
61 #define ALPHA_UP2 (Word16)((1.0 - 0.985)*MAX_16) /* Forced update, upwards */
62 #define ALPHA_DOWN2 (Word16)((1.0 - 0.943)*MAX_16) /* Forced update, downwards */
63 #define ALPHA3 (Word16)((1.0 - 0.95)*MAX_16) /* Update downwards */
64 #define ALPHA4 (Word16)((1.0 - 0.9)*MAX_16) /* For stationary estimation */
65 #define ALPHA5 (Word16)((1.0 - 0.5)*MAX_16) /* For stationary estimation */
72 #define VAD_SLOPE (Word16)(MAX_16*(float)(VAD_THR_LOW-VAD_THR_HIGH)/(float)(VAD_P2-VAD_P1))
115 #define CVAD_THRESH_ADAPT_HIGH (Word16)(0.6 * MAX_16) /* threshold for adapt stopping high */
[all …]
Dbasic_op.h246 return (((var1 == MIN_16) ? MAX_16 : -var1)); in negate()
295 var_out = (var1 >> 15) ^ MAX_16; in shl()
Dbasicop_malloc.h79 #define MAX_16 (Word16)0x7fff macro
Dmult.h172 product = (Word32) MAX_16;
Dbasic_op_c_equivalent.h467 product = (Word32) MAX_16; in mult()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dwb_vad_c.h33 #define TONE_THR (Word16)(0.65*MAX_16) /* Threshold for tone detection */
38 #define ALPHA_SP_UP (Word16)((1.0 - 0.85)*MAX_16)
39 #define ALPHA_SP_DOWN (Word16)((1.0 - 0.85)*MAX_16)
48 #define ALPHA_UP1 (Word16)((1.0 - 0.95)*MAX_16) /* Normal update, upwards: */
49 #define ALPHA_DOWN1 (Word16)((1.0 - 0.936)*MAX_16) /* Normal update, downwards */
50 #define ALPHA_UP2 (Word16)((1.0 - 0.985)*MAX_16) /* Forced update, upwards */
51 #define ALPHA_DOWN2 (Word16)((1.0 - 0.943)*MAX_16) /* Forced update, downwards */
52 #define ALPHA3 (Word16)((1.0 - 0.95)*MAX_16) /* Update downwards */
53 #define ALPHA4 (Word16)((1.0 - 0.9)*MAX_16) /* For stationary estimation */
54 #define ALPHA5 (Word16)((1.0 - 0.5)*MAX_16) /* For stationary estimation */
[all …]
Dbasic_op.h28 #define MAX_16 ((Word16)+32767) /* 0x7fff */ macro
34 #define saturate(L_var1) (((L_var1) > 0X00007fffL) ? (MAX_16): (((L_var1) < (Word32) 0xffff8000L) ?…
36 #define abs_s(x) ((Word16)(((x) != MIN_16) ? (((x) >= 0) ? (x) : (-(x))) : MAX_16)) /* Short…
40 #define negate(var1) ((Word16)(((var1) == MIN_16) ? MAX_16 : (-(var1)))) /* Short…
227 var_out = (Word16)((var1 > 0) ? MAX_16 : MIN_16); in shl()
233 var_out = (Word16)((var1 > 0) ? MAX_16 : MIN_16); in shl()
1007 var_out = MAX_16; in div_s()
1012 var_out = MAX_16; in div_s()
1023 var_out = MAX_16; in div_s()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dpvamrwbdecoder_basic_op.h59 #define MAX_16 ((int16)+32767) /* 0x7fff */ macro
86 return (((var1 == MIN_16) ? MAX_16 : -var1)); in negate_int16()
129 var_out = (var1 >> 15) ^ MAX_16; in shl_int16()
Dpvamrwbdecoder_basic_op_cequivalent.h95 L_sum = (L_sum >> 31) ^ MAX_16; in add_int16()
134 L_diff = (L_diff >> 31) ^ MAX_16; in sub_int16()
173 L_product = (L_product >> 31) ^ MAX_16; in mult_int16()
Dpvamrwb_math_op.cpp103 L_product_arr = (L_product_arr >> 31) ^ MAX_16; in mult_int16_r()
254 var_out = MAX_16; in div_16by16()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dsyn_filt.cpp310 temp = MAX_16; in Syn_filt()
331 temp = MAX_16; in Syn_filt()
368 temp = MAX_16; in Syn_filt()
386 *(p_y++) = MAX_16; in Syn_filt()
Dnegate.cpp173 var1 = (var1 == MIN_16) ? MAX_16 : -var1; in negate()
Dadd.cpp191 sum = MAX_16; in add()
Dsub.cpp209 diff = MAX_16; in sub()
Dmult_r.cpp209 L_product_arr = MAX_16; in mult_r()
Dshr.cpp246 result = ((var1 > 0) ? MAX_16 : MIN_16); in shr()
Ddiv_s.cpp265 var_out = MAX_16; in div_s()
Daz_lsp.cpp312 cheb = MAX_16; in Chebps()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Ddtx_dec.cpp1058 L_temp = (Word32)((tmp_int_length > 0) ? MAX_16 : MIN_16); in dtx_dec()
1079 st->log_en = (log_en_index > 0) ? MAX_16 : MIN_16; in dtx_dec()
1146 temp = MAX_16; in dtx_dec()
1204 L_temp = (Word32)((lsp_int[i] > 0) ? MAX_16 : MIN_16); in dtx_dec()
1217 lsf_variab_factor = MAX_16; in dtx_dec()
1274 pred_err = MAX_16; /* 0.99997 in Q15 */ in dtx_dec()
1280 temp = MAX_16 - (Word16) L_temp; in dtx_dec()
1358 L_temp = (Word32)((tmp_int_length > 0) ? MAX_16 : MIN_16); in dtx_dec()
1538 L_temp = (Word32)((log_en_e > 0) ? MAX_16 : MIN_16); in dtx_dec_activity_update()
Dbgnscd.cpp438 currEnergy = MAX_16; in Bgn_scd()
460 noiseFloor = MAX_16; in Bgn_scd()
Ddec_amr.cpp1682 pit_sharp = (st->sharp > 0) ? MAX_16 : MIN_16; in Decoder_amr()
1699 pit_sharp = (st->sharp > 0) ? MAX_16 : MIN_16; in Decoder_amr()
1716 pit_sharp = (st->sharp > 0) ? MAX_16 : MIN_16; in Decoder_amr()
1733 pit_sharp = (st->sharp > 0) ? MAX_16 : MIN_16; in Decoder_amr()
1748 pit_sharp = (st->sharp > 0) ? MAX_16 : MIN_16; in Decoder_amr()
1788 pit_sharp = (gain_pit > 0) ? MAX_16 : MIN_16; in Decoder_amr()
Dagc.cpp1053 sig_out[i] = MAX_16; in agc2()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dton_stab.cpp542 dist_min1 = MAX_16; in check_lsp()
553 dist_min2 = MAX_16; in check_lsp()
Dpitch_ol.cpp443 *cor_max = MAX_16; in Lag_max()
1102 j = (pit_min > 0) ? MAX_16 : MIN_16; in Pitch_ol()
1129 j = (pit_min > 0) ? MAX_16 : MIN_16; in Pitch_ol()
Dcl_ltp.cpp705 *gp_limit = MAX_16; in cl_ltp()

12