/frameworks/av/media/libstagefright/codecs/amrnb/common/include/ |
D | basic_op_arm_gcc_v5.h | 121 __inline Word32 L_add(register Word32 L_var1, register Word32 L_var2, Flag *pOverflow) in L_add() 123 register Word32 ra = L_var1; in L_add() 124 register Word32 rb = L_var2; in L_add() 125 Word32 result; in L_add() 158 __inline Word32 L_sub(Word32 L_var1, Word32 L_var2, Flag *pOverflow) in L_sub() 160 register Word32 ra = L_var1; in L_sub() 161 register Word32 rb = L_var2; in L_sub() 162 Word32 result; in L_sub() 197 static inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() 199 register Word32 ra = L_var3; in L_mac() [all …]
|
D | basic_op_c_equivalent.h | 118 static inline Word32 L_add(Word32 L_var1, Word32 L_var2, Flag *pOverflow) in L_add() 120 Word32 L_sum; in L_add() 157 static inline Word32 L_sub(Word32 L_var1, Word32 L_var2, in L_sub() 160 Word32 L_diff; in L_sub() 199 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() 201 Word32 result; in L_mac() 202 Word32 L_sum; in L_mac() 203 result = (Word32) var1 * var2; in L_mac() 204 if (result != (Word32) 0x40000000L) in L_mac() 247 static inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() [all …]
|
D | basic_op_arm_v5.h | 119 __inline Word32 L_add(register Word32 L_var1, register Word32 L_var2, Flag *pOverflow) in L_add() 121 Word32 result; in L_add() 152 __inline Word32 L_sub(Word32 L_var1, Word32 L_var2, Flag *pOverflow) in L_sub() 154 Word32 result; in L_sub() 190 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() 192 Word32 result; in L_mac() 193 Word32 L_sum; in L_mac() 223 __inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() 225 Word32 result; in L_mult() 226 Word32 product; in L_mult() [all …]
|
D | mpy_32.h | 107 __inline Word32 Mpy_32(Word16 L_var1_hi, in Mpy_32() 117 Word32 L_product; in Mpy_32() 118 Word32 L_sum; in Mpy_32() 119 Word32 product32; in Mpy_32() 141 static inline Word32 Mpy_32(Word16 L_var1_hi, 147 register Word32 product32; 148 register Word32 L_sum; 149 register Word32 L_product, result; 150 register Word32 ra = L_var1_hi; 151 register Word32 rb = L_var1_lo; [all …]
|
D | l_mac.h | 108 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() 110 Word32 result; in L_mac() 111 Word32 L_sum; in L_mac() 122 static inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) 124 register Word32 ra = L_var3; 125 register Word32 rb = var1; 126 register Word32 rc = var2; 127 Word32 result; 146 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) 148 Word32 result; [all …]
|
D | l_add.h | 111 __inline Word32 L_add(register Word32 L_var1, register Word32 L_var2, Flag *pOverflow) in L_add() 113 Word32 result; in L_add() 125 __inline Word32 L_add(register Word32 L_var1, register Word32 L_var2, Flag *pOverflow) 127 register Word32 ra = L_var1; 128 register Word32 rb = L_var2; 129 Word32 result; 144 static inline Word32 L_add(register Word32 L_var1, register Word32 L_var2, Flag *pOverflow) 146 Word32 L_sum;
|
D | l_sub.h | 109 __inline Word32 L_sub(Word32 L_var1, Word32 L_var2, Flag *pOverflow) in L_sub() 111 Word32 result; in L_sub() 126 __inline Word32 L_sub(Word32 L_var1, Word32 L_var2, Flag *pOverflow) 128 register Word32 ra = L_var1; 129 register Word32 rb = L_var2; 130 Word32 result; 144 static inline Word32 L_sub(register Word32 L_var1, register Word32 L_var2, 147 Word32 L_diff;
|
D | mpy_32_16.h | 93 __inline Word32 Mpy_32_16(Word16 L_var1_hi, in Mpy_32_16() 99 Word32 L_product; in Mpy_32_16() 100 Word32 L_sum; in Mpy_32_16() 101 Word32 result; in Mpy_32_16() 115 static inline Word32 Mpy_32_16(Word16 L_var1_hi, 121 register Word32 ra = L_var1_hi; 122 register Word32 rb = L_var1_lo; 123 register Word32 rc = var2; 124 Word32 result, L_product; 159 __inline Word32 Mpy_32_16(Word16 L_var1_hi, [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
D | basic_op.h | 28 #define MAX_32 (Word32)0x7fffffffL 29 #define MIN_32 (Word32)0x80000000L 39 #define L_deposit_h(x) (((Word32)(x)) << 16) 43 #define L_deposit_l(x) ((Word32)(x)) 63 __inline Word16 saturate(Word32 L_var1); 65 Word16 saturate(Word32 L_var1); 83 __inline Word32 L_mult(Word16 var1, Word16 var2); 85 Word32 L_mult(Word16 var1, Word16 var2); 90 __inline Word32 L_msu (Word32 L_var3, Word16 var1, Word16 var2); 92 Word32 L_msu (Word32 L_var3, Word16 var1, Word16 var2); [all …]
|
D | basicop2.c | 60 Word16 saturate(Word32 L_var1) in saturate() 68 else if (L_var1 < (Word32) 0xffff8000L) in saturate() 119 Word32 L_sum; in add() 121 L_sum = (Word32)var1 + (Word32)var2; in add() 165 Word32 L_diff; in sub() 167 L_diff = (Word32) var1 - var2; in sub() 264 Word32 result; in shl() 274 result = (Word32) var1 *((Word32) 1 << var2); in shl() 276 if ((var2 > 15 && var1 != 0) || (result != (Word32) ((Word16) result))) in shl() 400 Word32 L_product; in mult() [all …]
|
D | oper_32b.h | 35 void L_Extract (Word32 L_32, Word16 *hi, Word16 *lo); 36 Word32 L_Comp (Word16 hi, Word16 lo); 37 Word32 Mpy_32 (Word16 hi1, Word16 lo1, Word16 hi2, Word16 lo2); 38 Word32 Mpy_32_16 (Word16 hi, Word16 lo, Word16 n); 39 Word32 Div_32 (Word32 L_num, Word32 denom); 40 Word16 iLog4(Word32 value); 41 Word32 rsqrt(Word32 value, Word32 accuracy); 42 Word32 pow2_xy(Word32 x, Word32 y); 44 __inline Word32 L_mpy_ls(Word32 L_var2, Word16 var1) in L_mpy_ls() 48 Word32 l_var_out; in L_mpy_ls() [all …]
|
D | oper_32b.c | 44 void L_Extract (Word32 L_32, Word16 *hi, Word16 *lo) in L_Extract() 72 Word32 L_Comp (Word16 hi, Word16 lo) in L_Comp() 74 Word32 L_32; in L_Comp() 100 Word32 Mpy_32 (Word16 hi1, Word16 lo1, Word16 hi2, Word16 lo2) in Mpy_32() 102 Word32 L_32; in Mpy_32() 129 Word32 Mpy_32_16 (Word16 hi, Word16 lo, Word16 n) in Mpy_32_16() 131 Word32 L_32; in Mpy_32_16() 181 Word32 Div_32 (Word32 L_num, Word32 denom) in Div_32() 184 Word32 L_32; in Div_32() 193 L_32 = L_sub ((Word32) 0x7fffffffL, L_32); in Div_32() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
D | basic_op.h | 25 #define MAX_32 (Word32)0x7fffffffL 26 #define MIN_32 (Word32)0x80000000L 34 #define saturate(L_var1) (((L_var1) > 0X00007fffL) ? (MAX_16): (((L_var1) < (Word32) 0xffff8000L) ?… 37 #define L_deposit_h(x) (((Word32)(x)) << 16) /* 16 bi… 38 #define L_deposit_l(x) ((Word32)(x)) /* 16 bi… 53 #define vo_L_deposit_h(a) ((Word32)((a) << 16)) 60 #define vo_L_shr_r(L_var1, var2) ((L_var1+((Word32)(1L<<(var2-1))))>>var2) 73 static_vo Word32 L_mult (Word16 var1, Word16 var2); /* Long mult, … 74 static_vo Word16 voround (Word32 L_var1); /* Round, … 75 static_vo Word32 L_mac (Word32 L_var3, Word16 var1, Word16 var2); /* Mac, 1 */ [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | syn_filt.cpp | 259 Word32 s1; in Syn_filt() 260 Word32 s2; in Syn_filt() 287 s1 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_a), 0x00000800L); in Syn_filt() 288 s2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_a++), 0x00000800L); in Syn_filt() 289 s1 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a++), (Word32) * (p_yy1), s1); in Syn_filt() 293 s2 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a), (Word32) * (p_yy1--), s2); in Syn_filt() 294 s1 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a++), (Word32) * (p_yy1), s1); in Syn_filt() 295 s2 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a), (Word32) * (p_yy1--), s2); in Syn_filt() 296 s1 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a++), (Word32) * (p_yy1), s1); in Syn_filt() 297 s2 = amrnb_fxp_msu_16_by_16bb((Word32) * (p_a), (Word32) * (p_yy1--), s2); in Syn_filt() [all …]
|
D | q_plsf_5.cpp | 219 Word32 dist_min; in Vq_subvec() 220 Word32 dist; in Vq_subvec() 225 Word32 aux1; in Vq_subvec() 226 Word32 aux2; in Vq_subvec() 227 Word32 aux3; in Vq_subvec() 228 Word32 aux4; in Vq_subvec() 240 aux1 = ((Word32) lsf_r1[0] * wf1_0); in Vq_subvec() 241 aux2 = ((Word32) lsf_r1[1] * wf1_1); in Vq_subvec() 242 aux3 = ((Word32) lsf_r2[0] * wf2_0); in Vq_subvec() 243 aux4 = ((Word32) lsf_r2[1] * wf2_1); in Vq_subvec() [all …]
|
D | residu.cpp | 206 Word32 s1; in Residu() 207 Word32 s2; in Residu() 208 Word32 s3; in Residu() 209 Word32 s4; in Residu() 232 s1 += ((Word32) * (p_coef) * *(p_input1++)); in Residu() 233 s2 += ((Word32) * (p_coef) * *(p_input2++)); in Residu() 234 s3 += ((Word32) * (p_coef) * *(p_input3++)); in Residu() 235 s4 += ((Word32) * (p_coef--) * *(p_input4++)); in Residu() 236 s1 += ((Word32) * (p_coef) * *(p_input1++)); in Residu() 237 s2 += ((Word32) * (p_coef) * *(p_input2++)); in Residu() [all …]
|
D | lsp_az.cpp | 254 Word32 *f, in Get_lsp_pol() 262 Word32 t0; in Get_lsp_pol() 266 *f++ = (Word32) 0x01000000; in Get_lsp_pol() 267 *f++ = (Word32) - *(lsp++) << 10; /* f[1] = -2.0 * lsp[0]; */ in Get_lsp_pol() 278 lo = (Word16)((*(f - 1) >> 1) - ((Word32) hi << 15)); in Get_lsp_pol() 280 t0 = ((Word32)hi * *lsp); in Get_lsp_pol() 281 t0 += ((Word32)lo * *lsp) >> 15; in Get_lsp_pol() 288 *f -= (Word32)(*lsp++) << 10; in Get_lsp_pol() 377 Word32 *f, in Get_lsp_pol_wrapper() 517 Word32 f1[6]; in Lsp_Az() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | s10_8pf.cpp | 574 Word32 s; in search_10and8i40() 575 Word32 alp0, alp1, alp2; in search_10and8i40() 621 ps0 = (Word16)((Word32) dn[i0] + dn[i1]); in search_10and8i40() 624 alp0 = (Word32) rr[i0][i0] << 12; in search_10and8i40() 627 alp0 += (Word32) rr[i1][i1] << 12; in search_10and8i40() 630 alp0 += (Word32) rr[i0][i1] << 13; in search_10and8i40() 641 s = (Word32) * (p_temp2 + i3) >> 1; in search_10and8i40() 642 s += (Word32) * (p_temp2 + i0); in search_10and8i40() 643 s += (Word32) * (p_temp2 + i1); in search_10and8i40() 662 alp1 = (s + (Word32) * (p_temp2 + j)) >> 1; in search_10and8i40() [all …]
|
D | calc_cor.cpp | 205 Word32 corr[]) /* o : correlation of selected lag */ in comp_corr() 227 Word32 t1; in comp_corr() 228 Word32 t2; in comp_corr() 229 Word32 t3; in comp_corr() 230 Word32 t4; in comp_corr() 248 t1 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p1++), t1); in comp_corr() 249 t2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p1), t2); in comp_corr() 250 t3 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p2++), t3); in comp_corr() 251 t4 = amrnb_fxp_mac_16_by_16bb((Word32) * (p++), (Word32) * (p2), t4); in comp_corr() 253 t1 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p1++), t1); in comp_corr() [all …]
|
D | pitch_ol.cpp | 294 Word32 corr[], /* i : correlation vector. */ in Lag_max() 302 Word32 *rmax, /* o : max(<s[i]*s[j]>) */ in Lag_max() 303 Word32 *r0, /* o : residual energy */ in Lag_max() 310 Word32 corr[], /* i : correlation vector. */ in Lag_max() 325 Word32 max; in Lag_max() 326 Word32 t0; in Lag_max() 332 Word32 L_temp; in Lag_max() 333 Word32 L_temp_2; in Lag_max() 334 Word32 L_temp_3; in Lag_max() 335 Word32 *p_corr = &corr[-lag_max]; in Lag_max() [all …]
|
D | cor_h.cpp | 279 Word32 s; in cor_h() 280 Word32 s2; in cor_h() 306 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s); in cor_h() 308 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s); in cor_h() 332 if (s < (Word32) 0x00ffffffL) in cor_h() 347 … *(p_h2++) = (Word16)((amrnb_fxp_mac_16_by_16bb((Word32) * (p_h++), (Word32) dec, 0x020L)) >> 6); in cor_h() 348 … *(p_h2++) = (Word16)((amrnb_fxp_mac_16_by_16bb((Word32) * (p_h++), (Word32) dec, 0x020L)) >> 6); in cor_h() 362 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s); in cor_h() 366 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s); in cor_h() 392 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_h2), (Word32) * (p_h++), s); in cor_h() [all …]
|
D | g_pitch.cpp | 315 Word32 s; in G_pitch() 316 Word32 s1; in G_pitch() 317 Word32 L_temp; /* Use this as an intermediate value */ in G_pitch() 329 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch() 331 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch() 333 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch() 335 s = amrnb_fxp_mac_16_by_16bb((Word32) * (p_y1), (Word32) * (p_y1), s); in G_pitch() 354 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp, (Word32) tmp, s); in G_pitch() 356 s = amrnb_fxp_mac_16_by_16bb((Word32) tmp, (Word32) tmp, s); in G_pitch() 377 L_temp = ((Word32) * (p_xn++) * *(p_y1++)); in G_pitch() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | quantize.c | 32 static const Word32 XROUND = 0x33e425af; /* final rounding constant (-0.0946f+ 0.5f) */ 41 __inline Word32 pow34(Word32 x) in pow34() 56 static Word16 quantizeSingleLine(const Word16 gain, const Word32 absSpectrum) in quantizeSingleLine() 58 Word32 e, minusFinalExp, finalShift; in quantizeSingleLine() 59 Word32 x; in quantizeSingleLine() 106 const Word32 *mdctSpectrum, in quantizeLines() 109 Word32 line; in quantizeLines() 110 Word32 m = gain&3; in quantizeLines() 111 Word32 g = (gain >> 2) + 4; in quantizeLines() 112 Word32 mdctSpeL; in quantizeLines() [all …]
|
D | tns.c | 40 static const Word32 TNS_PARCOR_THRESH = 0x0ccccccd; /* 0.1*(1 << 31) */ 57 static void CalcWeightedSpectrum(const Word32 spectrum[], 59 Word32* sfbEnergy, 62 Word32 *pWork32); 66 void AutoCorrelation(const Word16 input[], Word32 corr[], 68 static Word16 AutoToParcor(Word32 workBuffer[], Word32 reflCoeff[], Word16 numOfCoeff); 70 static Word16 CalcTnsFilter(const Word16* signal, const Word32 window[], Word16 numOfLines, 71 Word16 tnsOrder, Word32 parcor[]); 74 static void Parcor2Index(const Word32 parcor[], Word16 index[], Word16 order, 77 static void Index2Parcor(const Word16 index[], Word32 parcor[], Word16 order, [all …]
|
D | band_nrg.c | 33 void CalcBandEnergy(const Word32 *mdctSpectrum, in CalcBandEnergy() 36 Word32 *bandEnergy, in CalcBandEnergy() 37 Word32 *bandEnergySum) in CalcBandEnergy() 39 Word32 i, j; in CalcBandEnergy() 40 Word32 accuSum = 0; in CalcBandEnergy() 43 Word32 accu = 0; in CalcBandEnergy() 60 void CalcBandEnergyMS(const Word32 *mdctSpectrumLeft, in CalcBandEnergyMS() 61 const Word32 *mdctSpectrumRight, in CalcBandEnergyMS() 64 Word32 *bandEnergyMid, in CalcBandEnergyMS() 65 Word32 *bandEnergyMidSum, in CalcBandEnergyMS() [all …]
|