/frameworks/av/media/codecs/amrwb/enc/src/ |
D | math_op.c | 101 Word32 * frac, /* (i/o) Q31: normalized value (1.0 < frac <= 0.5) */ in Isqrt_n() argument 107 if (*frac <= (Word32) 0) in Isqrt_n() 110 *frac = 0x7fffffffL; in Isqrt_n() 115 *frac = (*frac) >> 1; in Isqrt_n() 119 *frac = (*frac >> 9); in Isqrt_n() 120 i = extract_h(*frac); /* Extract b25-b31 */ in Isqrt_n() 121 *frac = (*frac >> 1); in Isqrt_n() 122 a = (Word16)(*frac); /* Extract b10-b24 */ in Isqrt_n() 125 *frac = L_deposit_h(table_isqrt[i]); /* table[i] << 16 */ in Isqrt_n() 127 *frac = vo_L_msu(*frac, tmp, a); /* frac -= tmp*a*2 */ in Isqrt_n()
|
D | pred_lt4.c | 54 Word16 frac, /* input : fraction of lag */ in Pred_lt4() argument 64 frac = -frac; in Pred_lt4() 65 if (frac < 0) in Pred_lt4() 67 frac += UP_SAMP; in Pred_lt4() 71 k = 3 - frac; /* k = UP_SAMP - 1 - frac */ in Pred_lt4()
|
D | q_gain2.c | 79 Word16 exp, frac, gcode0, exp_gcode0, e_max, exp_code, qua_ener; in Q_gain2() local 184 Log2(L_tmp, &exp, &frac); in Q_gain2() 186 L_tmp = Mpy_32_16(exp, frac, -24660); /* x -3.0103(Q13) -> Q14 */ in Q_gain2() 210 VO_L_Extract(L_tmp, &exp_gcode0, &frac); /* Extract exponent of gcode0 */ in Q_gain2() 212 gcode0 = (Word16)(Pow2(14, frac)); /* Put 14 as exponent so that */ in Q_gain2() 328 Log2(L_tmp, &exp, &frac); in Q_gain2() 330 L_tmp = Mpy_32_16(exp, frac, 24660); /* x 6.0206 in Q12 */ in Q_gain2()
|
D | int_lpc.c | 35 Word16 frac[], /* input : fraction for 3 first subfr (Q15) */ in Int_isp() argument 46 fac_new = frac[k]; in Int_isp()
|
D | pitch_f4.c | 62 Word32 frac /* (i) : fraction (-4..+3) */ 296 Word32 frac /* (i) : fraction (-4..+3) */ in Interpol_4() argument 303 if (frac < 0) in Interpol_4() 305 frac += UP_SAMP; in Interpol_4() 309 k = UP_SAMP - 1 - frac; in Interpol_4()
|
D | decim54.c | 96 Word32 i, j, frac, pos; in Down_samp() local 104 frac = pos & 3; /* fractional part */ in Down_samp() 106 y = (Word16 *)(fir_down1 + frac); in Down_samp()
|
/frameworks/av/media/codecs/amrnb/enc/src/ |
D | pitch_fr.cpp | 567 Word16 *frac, /* i/o : start point of search - in searchFrac() argument 585 max = Interpol_3or6(&corr[*lag], *frac, flag3, pOverflow); in searchFrac() 588 for (i = *frac + 1; i <= last_frac; i++) in searchFrac() 594 *frac = i; in searchFrac() 603 if (*frac == -3) in searchFrac() 607 *frac = 3; in searchFrac() 612 *frac = -2; in searchFrac() 620 if (*frac == -2) in searchFrac() 624 *frac = 1; in searchFrac() 629 *frac = -1; in searchFrac() [all …]
|
D | inter_36.cpp | 196 Word16 frac, /* i : fraction (-2..2 for 3*, -3..3 for 6*) */ in Interpol_3or6() argument 214 frac <<= 1; in Interpol_3or6() 218 if (frac < 0) in Interpol_3or6() 220 frac += UP_SAMP_MAX; in Interpol_3or6() 226 pC1 = &inter_6[frac]; in Interpol_3or6() 227 temp1 = UP_SAMP_MAX - frac; in Interpol_3or6()
|
D | qgain475.cpp | 486 Word16 frac; in MR475_quant_store_results() local 519 Log2((Word32) g_code, &exp, &frac, pOverflow); in MR475_quant_store_results() 522 tmp = shr_r(frac, 5, pOverflow); in MR475_quant_store_results() 527 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_quant_store_results() 704 Word16 frac; in MR475_update_unq_pred() local 750 frac = div_s(cod_gain_frac, frac_gcode0); in MR475_update_unq_pred() 754 Log2((Word32) frac, &exp, &frac, pOverflow); in MR475_update_unq_pred() 758 qua_ener_MR122 = shr_r(frac, 5, pOverflow); in MR475_update_unq_pred() 770 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_update_unq_pred()
|
D | calc_en.cpp | 613 Word16 frac; /* fractional part */ in calc_filt_energies() local 678 frac = (Word16)(L_shl(s1, exp, pOverflow) >> 16); in calc_filt_energies() 681 if (frac <= 0) in calc_filt_energies() 694 *cod_gain_frac = div_s(shr(frac, 1, pOverflow), frac_coeff[2]); in calc_filt_energies()
|
/frameworks/av/media/codecs/amrnb/common/src/ |
D | pred_lt.cpp | 257 Word16 frac, /* input : fraction of lag */ in Pred_lt_3or6() argument 285 frac = -frac; in Pred_lt_3or6() 289 frac <<= 1; /* inter_3l[k] = inter_6[2*k] -> k' = 2*k */ in Pred_lt_3or6() 292 if (frac < 0) in Pred_lt_3or6() 294 frac += UP_SAMP_MAX; in Pred_lt_3or6() 298 pC1_ref = &inter_6_pred_lt[frac]; in Pred_lt_3or6() 299 pC2_ref = &inter_6_pred_lt[UP_SAMP_MAX-frac]; in Pred_lt_3or6()
|
D | gc_pred.cpp | 485 Word16 exp, frac; in gc_pred() local 534 Log2(ener_code, &exp, &frac, pOverflow); in gc_pred() 540 ener_code = L_temp1 + ((Word32)frac << 1); in gc_pred() 593 Log2_norm(ener_code, exp_code, &exp, &frac); in gc_pred() 599 L_tmp = (((Word32) frac) * -24660) >> 15; in gc_pred()
|
/frameworks/av/media/codecs/amrwb/dec/src/ |
D | pvamrwb_math_op.cpp | 324 int32 * frac, /* (i/o) Q31: normalized value (1.0 < frac <= 0.5) */ in one_ov_sqrt_norm() argument 331 if (*frac <= (int32) 0) in one_ov_sqrt_norm() 334 *frac = 0x7fffffffL; in one_ov_sqrt_norm() 339 *frac >>= 1; in one_ov_sqrt_norm() 343 *frac >>= 9; in one_ov_sqrt_norm() 344 i = extract_h(*frac); /* Extract b25-b31 */ in one_ov_sqrt_norm() 345 *frac >>= 1; in one_ov_sqrt_norm() 346 a = (int16)(*frac); /* Extract b10-b24 */ in one_ov_sqrt_norm() 351 *frac = L_deposit_h(table_isqrt[i]); /* table[i] << 16 */ in one_ov_sqrt_norm() 354 *frac = msu_16by16_from_int32(*frac, tmp, a); /* frac -= tmp*a*2 */ in one_ov_sqrt_norm()
|
D | pred_lt4.cpp | 165 int16 frac, /* input : fraction of lag */ in Pred_lt4() argument 178 frac = -frac; in Pred_lt4() 180 if (frac < 0) in Pred_lt4() 182 frac += UP_SAMP; in Pred_lt4() 188 pt_inter4_2 = inter4_2[UP_SAMP-1 - frac]; in Pred_lt4()
|
D | dec_gain2_amr_wb.cpp | 187 int16 i, tmp, exp, frac, gcode0, exp_gcode0, qua_ener, gcode_inov; in dec_gain2_amr_wb() local 318 int32_to_dpf(L_tmp, &exp_gcode0, &frac); /* Extract exponant of gcode0 */ in dec_gain2_amr_wb() 320 gcode0 = (int16)(power_of_2(14, frac)); /* Put 14 as exponant so that */ in dec_gain2_amr_wb() 377 int32_to_dpf(*gain_cod, &exp, &frac); in dec_gain2_amr_wb() 378 L_tmp = mul_32by16(exp, frac, gcode_inov); in dec_gain2_amr_wb() 393 amrwb_log_2(L_tmp, &exp, &frac); in dec_gain2_amr_wb() 395 L_tmp = mul_32by16(exp, frac, 24660); /* x 6.0206 in Q12 */ in dec_gain2_amr_wb()
|
D | oversamp_12k8_to_16k.cpp | 243 int16 frac, j; in AmrWbUp_samp() local 246 frac = 1; in AmrWbUp_samp() 251 frac--; in AmrWbUp_samp() 252 if (frac) in AmrWbUp_samp() 255 fir_up[(FAC5-1) - frac], in AmrWbUp_samp() 261 frac = FAC5; in AmrWbUp_samp()
|
D | interpolate_isp.cpp | 118 const int16 frac[], /* input : fraction for 3 first subfr (Q15) */ in interpolate_isp() argument 128 fac_new = frac[k]; in interpolate_isp()
|
/frameworks/av/media/codecs/amrnb/dec/src/ |
D | dec_gain.cpp | 193 Word16 frac; in Dec_gain() local 242 Log2(temp1, &exp, &frac, pOverflow); in Dec_gain() 245 temp1 = shr_r(frac, 5, pOverflow); in Dec_gain() 250 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in Dec_gain() 275 gc_pred(pred_state, mode, code, &exp, &frac, NULL, NULL, pOverflow); in Dec_gain() 277 gcode0 = (Word16) Pow2(14, frac, pOverflow); in Dec_gain()
|
D | d_gain_c.cpp | 199 Word16 gcode0, exp, frac; in d_gain_code() local 217 gc_pred(pred_state, mode, code, &exp, &frac, in d_gain_code() 229 gcode0 = (Word16)(Pow2(exp, frac, pOverflow)); /* predicted gain */ in d_gain_code() 235 gcode0 = (Word16)(Pow2(14, frac, pOverflow)); in d_gain_code()
|
/frameworks/av/media/codecs/amrwb/enc/src/asm/ARMV7/ |
D | pred_lt4_1_neon.s | 20 @ Word16 frac, /* input : fraction of lag */ 26 @ r2 --- frac 38 RSB r2, r2, #0 @ frac = - frac 41 ADDLT r2, r2, #4 @ frac += UP_SAMP 47 RSB r2, r2, #3 @ k = UP_SAMP - 1 - frac
|
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
D | RadialGlow.kt | 73 val frac = (drawingTime % 5000) / 5000f in onDraw() constant 74 canvas.translate(rect.width() * frac, rect.height() - (rect.height() * frac)) in onDraw()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | RenderingJitter.java | 351 float frac = (AnimationUtils.currentAnimationTimeMillis() - mStartTime) in stepColor() local 353 if (frac > 1.0f) frac = 1.0f; in stepColor() 356 int r = (int) (Color.red(src) + (Color.red(dest) - Color.red(src)) * frac); in stepColor() 357 int g = (int) (Color.green(src) + (Color.green(dest) - Color.green(src)) * frac); in stepColor() 358 int b = (int) (Color.blue(src) + (Color.blue(dest) - Color.blue(src)) * frac); in stepColor() 360 if (frac == 1.0f) { in stepColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarView.java | 283 public void panelExpansionChanged(float frac, boolean expanded) { in panelExpansionChanged() argument 284 super.panelExpansionChanged(frac, expanded); in panelExpansionChanged() 286 if ((frac == 0 || frac == 1) && mBar.getNavigationBarView() != null) { in panelExpansionChanged() 292 listener.onExpansionChanged(frac, expanded); in panelExpansionChanged()
|
D | PanelBar.java | 172 public void panelExpansionChanged(float frac, boolean expanded) { in panelExpansionChanged() argument 173 if (isNaN(frac)) { in panelExpansionChanged() 181 mPanelFraction = frac; in panelExpansionChanged()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioCoefInterpolator.cpp | 79 uint32_t frac) { in interp() argument 80 int64_t delta = static_cast<int64_t>(hi-lo) * frac; in interp()
|