/external/libxaac/decoder/ |
D | ixheaacd_lpc_dec.c | 103 static WORD32 ixheaacd_avq_first_approx_abs(FLOAT32 *lsf, WORD32 *indx) { in ixheaacd_avq_first_approx_abs() argument 117 lsf[i] = ixheaacd_dico_lsf_abs_8b_flt[indx[0] * ORDER + i]; in ixheaacd_avq_first_approx_abs() 122 d[0] = lsf[0]; in ixheaacd_avq_first_approx_abs() 123 d[ORDER] = FREQ_MAX - lsf[ORDER - 1]; in ixheaacd_avq_first_approx_abs() 125 d[i] = lsf[i] - lsf[i - 1]; in ixheaacd_avq_first_approx_abs() 130 lsf[i] += (ptr_w[i] * avq[i]); in ixheaacd_avq_first_approx_abs() 132 if (lsf[i] < lsf_min) lsf[i] = lsf_min; in ixheaacd_avq_first_approx_abs() 134 lsf_min = lsf[i] + LSF_GAP; in ixheaacd_avq_first_approx_abs() 140 WORD32 ixheaacd_avq_first_approx_rel(FLOAT32 *lsf, WORD32 *indx, WORD32 mode) { in ixheaacd_avq_first_approx_rel() argument 147 ixheaacd_lsf_weight_2st_flt(lsf, w, mode); in ixheaacd_avq_first_approx_rel() [all …]
|
D | ixheaacd_lpc.c | 188 void ixheaacd_lsp_2_lsf_conversion(float lsp[], float lsf[], WORD32 m) { in ixheaacd_lsp_2_lsf_conversion() argument 191 lsf[i] = (float)(acos(lsp[i]) * SCALE1); in ixheaacd_lsp_2_lsf_conversion() 196 static VOID ixheaacd_lsf_2_lsp_conversion_float(FLOAT32 lsf[], FLOAT32 lsp[], in ixheaacd_lsf_2_lsp_conversion_float() argument 200 lsp[i] = (FLOAT32)cos((double)lsf[i] * (double)PI_BY_6400); in ixheaacd_lsf_2_lsp_conversion_float() 296 void ixheaacd_reorder_lsf(float *lsf, float min_dist, int n) { in ixheaacd_reorder_lsf() argument 302 if (lsf[i] < lsf_min) lsf[i] = lsf_min; in ixheaacd_reorder_lsf() 304 lsf_min = lsf[i] + min_dist; in ixheaacd_reorder_lsf() 309 if (lsf[i] > lsf_min) lsf[i] = lsf_min; in ixheaacd_reorder_lsf() 311 lsf_min = lsf[i] - min_dist; in ixheaacd_reorder_lsf()
|
D | ixheaacd_tcx_fwd_mdct.c | 204 FLOAT32 lsf[ORDER], *ptr_a; in ixheaacd_lpc_coef_gen() local 215 lsf[i] = (lsf_old[i] * fold) + (lsf_new[i] * fnew); in ixheaacd_lpc_coef_gen() 217 ixheaacd_lsp_to_lp_conversion(lsf, ptr_a); in ixheaacd_lpc_coef_gen()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
D | lsf_check.c | 27 int16_t *lsf, /* LSF parameters */ in WebRtcIlbcfix_LsfCheck() argument 44 if ((lsf[pos+1]-lsf[pos])<eps) { in WebRtcIlbcfix_LsfCheck() 46 if (lsf[pos+1]<lsf[pos]) { in WebRtcIlbcfix_LsfCheck() 47 lsf[pos+1]= lsf[pos]+eps2; in WebRtcIlbcfix_LsfCheck() 48 lsf[pos]= lsf[pos+1]-eps2; in WebRtcIlbcfix_LsfCheck() 50 lsf[pos]-=eps2; in WebRtcIlbcfix_LsfCheck() 51 lsf[pos+1]+=eps2; in WebRtcIlbcfix_LsfCheck() 57 if (lsf[pos]<minlsf) { in WebRtcIlbcfix_LsfCheck() 58 lsf[pos]=minlsf; in WebRtcIlbcfix_LsfCheck() 62 if (lsf[pos]>maxlsf) { in WebRtcIlbcfix_LsfCheck() [all …]
|
D | simple_interpolate_lsf.c | 35 int16_t *lsf, /* (i) the unquantized lsf coefficients Q13 */ in WebRtcIlbcfix_SimpleInterpolateLsf() argument 52 lsf2 = lsf + length; in WebRtcIlbcfix_SimpleInterpolateLsf() 67 WebRtcIlbcfix_LsfInterpolate2PloyEnc(lp, lsfold, lsf, in WebRtcIlbcfix_SimpleInterpolateLsf() 87 WebRtcIlbcfix_LsfInterpolate2PloyEnc(lp, lsf, lsf2, in WebRtcIlbcfix_SimpleInterpolateLsf() 113 WebRtcIlbcfix_LsfInterpolate2PloyEnc(lp, lsfold, lsf, in WebRtcIlbcfix_SimpleInterpolateLsf() 125 WEBRTC_SPL_MEMCPY_W16(lsfold, lsf, length); in WebRtcIlbcfix_SimpleInterpolateLsf()
|
D | lpc_encode.c | 41 int16_t lsf[LPC_FILTERORDER * LPC_N_MAX]; in WebRtcIlbcfix_LpcEncode() local 45 WebRtcIlbcfix_SimpleLpcAnalysis(lsf, data, iLBCenc_inst); in WebRtcIlbcfix_LpcEncode() 48 WebRtcIlbcfix_SimpleLsfQ(lsfdeq, lsf_index, lsf, iLBCenc_inst->lpc_n); in WebRtcIlbcfix_LpcEncode() 56 lsf, lsfdeq, iLBCenc_inst->lsfold, in WebRtcIlbcfix_LpcEncode()
|
D | pack_bits.c | 38 (*bitstreamPtr) = ((uint16_t)enc_bits->lsf[0])<<10; /* Bit 0..5 */ in WebRtcIlbcfix_PackBits() 39 (*bitstreamPtr) |= (enc_bits->lsf[1])<<3; /* Bit 6..12 */ in WebRtcIlbcfix_PackBits() 40 (*bitstreamPtr) |= (enc_bits->lsf[2]&0x70)>>4; /* Bit 13..15 */ in WebRtcIlbcfix_PackBits() 43 (*bitstreamPtr) = ((uint16_t)enc_bits->lsf[2]&0xF)<<12; /* Bit 0..3 */ in WebRtcIlbcfix_PackBits() 60 (*bitstreamPtr) |= (enc_bits->lsf[3])<<6; /* Bit 4..9 */ in WebRtcIlbcfix_PackBits() 61 (*bitstreamPtr) |= (enc_bits->lsf[4]&0x7E)>>1; /* Bit 10..15 */ in WebRtcIlbcfix_PackBits() 64 (*bitstreamPtr) = ((uint16_t)enc_bits->lsf[4]&0x1)<<15; /* Bit 0 */ in WebRtcIlbcfix_PackBits() 65 (*bitstreamPtr) |= (enc_bits->lsf[5])<<8; /* Bit 1..7 */ in WebRtcIlbcfix_PackBits()
|
D | unpack_bits.c | 37 enc_bits->lsf[0] = (*bitstreamPtr)>>10; /* Bit 0..5 */ in WebRtcIlbcfix_UnpackBits() 38 enc_bits->lsf[1] = ((*bitstreamPtr)>>3)&0x7F; /* Bit 6..12 */ in WebRtcIlbcfix_UnpackBits() 39 enc_bits->lsf[2] = ((*bitstreamPtr)&0x7)<<4; /* Bit 13..15 */ in WebRtcIlbcfix_UnpackBits() 42 enc_bits->lsf[2] |= ((*bitstreamPtr)>>12)&0xF; /* Bit 0..3 */ in WebRtcIlbcfix_UnpackBits() 59 enc_bits->lsf[3] = ((*bitstreamPtr)>>6)&0x3F; /* Bit 4..9 */ in WebRtcIlbcfix_UnpackBits() 60 enc_bits->lsf[4] = ((*bitstreamPtr)<<1)&0x7E; /* Bit 10..15 */ in WebRtcIlbcfix_UnpackBits() 63 enc_bits->lsf[4] |= ((*bitstreamPtr)>>15)&0x1; /* Bit 0 */ in WebRtcIlbcfix_UnpackBits() 64 enc_bits->lsf[5] = ((*bitstreamPtr)>>8)&0x7F; /* Bit 1..7 */ in WebRtcIlbcfix_UnpackBits()
|
D | simple_lsf_quant.c | 31 int16_t *lsf, /* (i) the lsf coefficient vector to be in WebRtcIlbcfix_SimpleLsfQ() argument 37 WebRtcIlbcfix_SplitVq( lsfdeq, index, lsf, in WebRtcIlbcfix_SimpleLsfQ() 43 lsf + LPC_FILTERORDER, (int16_t*)WebRtcIlbcfix_kLsfCb, in WebRtcIlbcfix_SimpleLsfQ()
|
D | poly_to_lsf.c | 25 int16_t *lsf, /* (o) lsf coefficients (Q13) */ in WebRtcIlbcfix_Poly2Lsf() argument 30 WebRtcIlbcfix_Lsp2Lsf(lsp, lsf, 10); in WebRtcIlbcfix_Poly2Lsf()
|
D | lsf_to_lsp.c | 27 int16_t *lsf, /* (i) lsf in Q13 values between 0 and pi */ in WebRtcIlbcfix_Lsf2Lsp() argument 39 freq = (int16_t)((lsf[i] * 20861) >> 15); in WebRtcIlbcfix_Lsf2Lsp()
|
D | lsp_to_lsf.c | 28 int16_t *lsf, /* (o) Lsf vector 0...Pi in Q13 in WebRtcIlbcfix_Lsp2Lsf() argument 48 lsfPtr = &lsf[9]; in WebRtcIlbcfix_Lsp2Lsf()
|
D | lsf_to_poly.c | 26 int16_t *lsf /* (i) line spectral frequencies in Q13 */ in WebRtcIlbcfix_Lsf2Poly() argument 37 WebRtcIlbcfix_Lsf2Lsp(lsf, lsp, LPC_FILTERORDER); in WebRtcIlbcfix_Lsf2Poly()
|
D | simple_lpc_analysis.c | 30 int16_t *lsf, /* (o) lsf coefficients */ in WebRtcIlbcfix_SimpleLpcAnalysis() argument 86 WebRtcIlbcfix_Poly2Lsf(lsf + k*LPC_FILTERORDER, A); in WebRtcIlbcfix_SimpleLpcAnalysis()
|
D | poly_to_lsf.h | 29 int16_t *lsf, /* (o) lsf coefficients (Q13) */
|
D | lsf_to_poly.h | 30 int16_t *lsf /* (i) line spectral frequencies in Q13 */
|
D | lsf_check.h | 29 int16_t *lsf, /* LSF parameters */
|
D | lsf_to_lsp.h | 29 int16_t *lsf, /* (i) lsf in Q13 values between 0 and pi */
|
D | simple_lpc_analysis.h | 29 int16_t *lsf, /* (o) lsf coefficients */
|
D | lsp_to_lsf.h | 30 int16_t *lsf, /* (o) Lsf vector 0...Pi in Q13
|
D | simple_lsf_quant.h | 32 int16_t *lsf, /* (i) the lsf coefficient vector to be
|
D | simple_interpolate_lsf.h | 35 int16_t *lsf, /* (i) the unquantized lsf coefficients Q13 */
|
/external/apache-http/src/org/apache/http/impl/conn/ |
D | DefaultClientConnectionOperator.java | 238 final LayeredSocketFactory lsf = (LayeredSocketFactory) schm.getSocketFactory(); in updateSecureConnection() local 241 sock = lsf.createSocket in updateSecureConnection() 247 conn.update(sock, target, lsf.isSecure(sock), params); in updateSecureConnection()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/ |
D | NonLinearConjugateGradientOptimizer.java | 163 final UnivariateRealFunction lsf = new LineSearchFunction(searchDirection); in doOptimize() local 164 final double step = solver.solve(lsf, 0, findUpperBound(lsf, 0, initialStep)); in doOptimize()
|
/external/aac/libAACdec/src/ |
D | usacdec_lpc.cpp | 641 static void reorder_lsf(FIXP_LPC *lsf, FIXP_LPC min_dist, int n) { in reorder_lsf() argument 647 if (lsf[i] < lsf_min) { in reorder_lsf() 648 lsf[i] = lsf_min; in reorder_lsf() 650 lsf_min = fAddSaturate(lsf[i], min_dist); in reorder_lsf() 656 if (lsf[i] > lsf_min) { in reorder_lsf() 657 lsf[i] = lsf_min; in reorder_lsf() 660 lsf_min = lsf[i] - min_dist; in reorder_lsf()
|