Home
last modified time | relevance | path

Searched refs:lpc (Results 1 - 25 of 30) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
H A Dg723_1.c1188 * @param lpc buffer for LPC coefficients
1190 static void lsp2lpc(int16_t *lpc) in lsp2lpc() argument
1198 int index = (lpc[j] >> 7) & 0x1FF; in lsp2lpc()
1199 int offset = lpc[j] & 0x7f; in lsp2lpc()
1204 lpc[j] = -(av_sat_dadd32(1 << 15, temp1 + temp2) >> 16); in lsp2lpc()
1213 f1[1] = (lpc[0] + lpc[2]) * (1 << 14); in lsp2lpc()
1214 f1[2] = lpc[0] * lpc[2] + (2 << 28); in lsp2lpc()
1217 f2[1] = (lpc[ in lsp2lpc()
1252 ff_g723_1_lsp_interpolate(int16_t *lpc, int16_t *cur_lsp, int16_t *prev_lsp) ff_g723_1_lsp_interpolate() argument
[all...]
H A Dalacenc.c28 #include "lpc.h"
80 AlacLPCContext lpc[2]; member
161 s->lpc[ch].lpc_order = 6; in calc_predictor_params()
162 s->lpc[ch].lpc_quant = 6; in calc_predictor_params()
163 s->lpc[ch].lpc_coeff[0] = 160; in calc_predictor_params()
164 s->lpc[ch].lpc_coeff[1] = -190; in calc_predictor_params()
165 s->lpc[ch].lpc_coeff[2] = 170; in calc_predictor_params()
166 s->lpc[ch].lpc_coeff[3] = -130; in calc_predictor_params()
167 s->lpc[ch].lpc_coeff[4] = 80; in calc_predictor_params()
168 s->lpc[c in calc_predictor_params()
261 AlacLPCContext lpc = s->lpc[ch]; alac_linear_predictor() local
[all...]
H A Dlpc.h167 LPC_TYPE *lpc, int lpc_stride, int fail, in compute_lpc_coefs()
172 LPC_TYPE *lpc_last = lpc; in compute_lpc_coefs()
194 lpc[i] = r; in compute_lpc_coefs()
199 lpc[ j] = f + (LPC_TYPE_U)AAC_MUL26(r, b); in compute_lpc_coefs()
200 lpc[i-1-j] = b + (LPC_TYPE_U)AAC_MUL26(r, f); in compute_lpc_coefs()
206 lpc_last = lpc; in compute_lpc_coefs()
207 lpc += lpc_stride; in compute_lpc_coefs()
166 compute_lpc_coefs(const LPC_TYPE *autoc, int max_order, LPC_TYPE *lpc, int lpc_stride, int fail, int normalize) compute_lpc_coefs() argument
H A Dqcelpdec.c530 * @param lpc linear predictive coding coefficients
537 static void lspf2lpc(const float *lspf, float *lpc) in lspf2lpc() argument
546 ff_acelp_lspd2lpc(lsp, lpc, 5); in lspf2lpc()
549 lpc[i] *= bandwidth_expansion_coeff; in lspf2lpc()
562 * @param lpc float vector for the resulting LPC
566 float *lpc, const int subframe_num) in interpolate_lpc()
581 lspf2lpc(interpolated_lspf, lpc); in interpolate_lpc()
584 lspf2lpc(curr_lspf, lpc); in interpolate_lpc()
586 lspf2lpc(q->prev_lspf, lpc); in interpolate_lpc()
655 static void postfilter(QCELPContext *q, float *samples, float *lpc) in postfilter() argument
565 interpolate_lpc(QCELPContext *q, const float *curr_lspf, float *lpc, const int subframe_num) interpolate_lpc() argument
695 float quantized_lspf[10], lpc[10]; qcelp_decode_frame() local
[all...]
H A Dopus_silk.c36 float lpc[16]; member
143 static inline int silk_is_lpc_stable(const int16_t lpc[16], int order) in silk_is_lpc_stable() argument
152 DC_resp += lpc[k]; in silk_is_lpc_stable()
153 row[k] = lpc[k] * 4096; in silk_is_lpc_stable()
224 int16_t lpc[16]; // Q12 in silk_lsf2lpc() local
280 lpc[k] = av_clip_int16(x); in silk_lsf2lpc()
281 lpc32[k] = lpc[k] << 5; // shortcut mandated by the spec; drops lower 5 bits in silk_lsf2lpc()
285 lpc[k] = (lpc32[k] + 16) >> 5; in silk_lsf2lpc()
290 for (i = 1; i <= 16 && !silk_is_lpc_stable(lpc, order); i++) { in silk_lsf2lpc()
296 lpc[ in silk_lsf2lpc()
305 silk_decode_lpc(SilkContext *s, SilkFrame *frame, OpusRangeCoder *rc, float lpc_leadin[16], float lpc[16], int *lpc_order, int *has_lpc_leadin, int voiced) silk_decode_lpc() argument
680 float *lpc = frame->lpc_history + SILK_HISTORY + i * s->sflength; silk_decode_frame() local
[all...]
H A Dlpc.c27 #include "lpc.h"
210 double lpc[MAX_LPC_ORDER][MAX_LPC_ORDER]; in ff_lpc_calc_coefs() local
233 compute_lpc_coefs(autoc, max_order, &lpc[0][0], MAX_LPC_ORDER, 0, 1); in ff_lpc_calc_coefs()
236 ref[i] = fabs(lpc[i][i]); in ff_lpc_calc_coefs()
248 m[0].coeff[max_order-1][j] = -lpc[max_order-1][j]; in ff_lpc_calc_coefs()
277 lpc[i][j]=-m[(pass-1)&1].coeff[i][j]; in ff_lpc_calc_coefs()
289 quantize_lpc_coefs(lpc[i], i+1, precision, coefs[i], &shift[i], in ff_lpc_calc_coefs()
293 quantize_lpc_coefs(lpc[i], i+1, precision, coefs[i], &shift[i], in ff_lpc_calc_coefs()
H A Dtwinvq.c71 static void eval_lpcenv(TwinVQContext *tctx, const float *cos_vals, float *lpc) in eval_lpcenv() argument
79 lpc[i] = eval_lpc_spectrum(cos_vals, cos_i, mtab->n_lsp); in eval_lpcenv()
80 lpc[size_s - i - 1] = eval_lpc_spectrum(cos_vals, -cos_i, mtab->n_lsp); in eval_lpcenv()
153 const float *buf, float *lpc, in eval_lpcenv_2parts()
156 eval_lpcenv_or_interp(tctx, ftype, lpc, buf, size / 2, step, 0); in eval_lpcenv_2parts()
157 eval_lpcenv_or_interp(tctx, ftype, lpc + size / 2, buf, size / 2, in eval_lpcenv_2parts()
160 interpolate(lpc + size / 2 - step + 1, lpc[size / 2], in eval_lpcenv_2parts()
161 lpc[size / 2 - step], step); in eval_lpcenv_2parts()
163 twinvq_memset_float(lpc in eval_lpcenv_2parts()
152 eval_lpcenv_2parts(TwinVQContext *tctx, enum TwinVQFrameType ftype, const float *buf, float *lpc, int size, int step) eval_lpcenv_2parts() argument
304 dec_lpc_spectrum_inv(TwinVQContext *tctx, float *lsp, enum TwinVQFrameType ftype, float *lpc) dec_lpc_spectrum_inv() argument
[all...]
H A Dcngenc.c28 #include "lpc.h"
31 LPCContext lpc; member
40 ff_lpc_end(&p->lpc); in cng_encode_close()
53 if ((ret = ff_lpc_init(&p->lpc, avctx->frame_size, p->order, FF_LPC_TYPE_LEVINSON)) < 0) in cng_encode_init()
88 ff_lpc_calc_ref_coefs(&p->lpc, p->samples32, p->order, p->ref_coef); in cng_encode_frame()
H A Dcngdec.c82 static void make_lpc_coefs(float *lpc, const float *refl, int order) in make_lpc_coefs() argument
88 cur = lpc; in make_lpc_coefs()
95 if (cur != lpc) in make_lpc_coefs()
96 memcpy(lpc, cur, sizeof(*lpc) * order); in make_lpc_coefs()
H A Daacenc_tns.c108 float lpc[TNS_MAX_ORDER]; in ff_aac_apply_tns() local
120 compute_lpc_coefs(tns->coef[w][filt], order, lpc, 0, 0, 0); in ff_aac_apply_tns()
137 sce->coeffs[start] += lpc[i-1]*sce->pcoeffs[start - i*inc]; in ff_aac_apply_tns()
147 static inline void quantize_coefs(double *coef, int *idx, float *lpc, int order, in quantize_coefs() argument
154 lpc[i] = quant_arr[idx[i]]; in quantize_coefs()
196 gain = ff_lpc_calc_ref_coefs_f(&s->lpc, &sce->coeffs[w*128 + coef_start], in ff_aac_search_for_tns()
H A Dra288.c33 #include "lpc.h"
177 float *lpc, const float *tab, in backward_filter()
184 if (!compute_lpc_coefs(temp, order, lpc, 0, 1, 1)) in backward_filter()
185 ractx->vector_fmul(lpc, lpc, tab, FFALIGN(order, 16)); in backward_filter()
175 backward_filter(RA288Context *ractx, float *hist, float *rec, const float *window, float *lpc, const float *tab, int order, int n, int non_rec, int move_size) backward_filter() argument
H A Damrnbdec.c113 float lpc[4][LP_FILTER_ORDER]; ///< lpc coefficient vectors for 4 subframes member
794 * @param lpc pointer to the LPC coefficients
800 static int synthesis(AMRContext *p, float *lpc, in synthesis() argument
833 p->celpf_ctx.celp_lp_synthesis_filterf(samples, lpc, excitation, in synthesis()
911 * @param lpc interpolated LP coefficients for this subframe
914 static void postfilter(AMRContext *p, float *lpc, float *buf_out) in postfilter() argument
935 lpc_n[i] = lpc[i] * gamma_n[i]; in postfilter()
936 lpc_d[i] = lpc[i] * gamma_d[i]; in postfilter()
1001 ff_acelp_lspd2lpc(p->lsp[i], p->lpc[ in amrnb_decode_frame()
[all...]
H A Dlsp.c209 void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order) in ff_acelp_lspd2lpc() argument
212 float *lpc2 = lpc + (lp_half_order << 1) - 1; in ff_acelp_lspd2lpc()
223 lpc [ lp_half_order] = 0.5*(paf+qaf); in ff_acelp_lspd2lpc()
H A Dg723_1enc.c179 * @param lpc LPC coefficients vector
183 static void levinson_durbin(int16_t *lpc, int16_t *autocorr, int16_t error) in levinson_durbin() argument
189 memset(lpc, 0, LPC_ORDER * sizeof(int16_t)); in levinson_durbin()
195 temp -= lpc[j] * autocorr[i - j - 1]; in levinson_durbin()
203 lpc[i] = av_clipl_int32((int64_t) (partial_corr << 14) + in levinson_durbin()
211 memcpy(vector, lpc, i * sizeof(int16_t)); in levinson_durbin()
214 lpc[j] = av_clipl_int32((int64_t) (lpc[j] << 16) - temp + in levinson_durbin()
225 * @param lpc LPC coefficients vector
227 static void comp_lpc_coeff(int16_t *buf, int16_t *lpc) in comp_lpc_coeff() argument
243 lpc2lsp(int16_t *lpc, int16_t *prev_lsp, int16_t *lsp) lpc2lsp() argument
[all...]
H A Dg723_1dec.c654 * @param lpc quantized lpc coefficients
658 static void formant_postfilter(G723_1_ChannelContext *p, int16_t *lpc, in formant_postfilter() argument
670 filter_coef[0][k] = (-lpc[k] * postfilter_tbl[0][k] + in formant_postfilter()
672 filter_coef[1][k] = (-lpc[k] * postfilter_tbl[1][k] + in formant_postfilter()
676 lpc += LPC_ORDER; in formant_postfilter()
939 int16_t lpc[SUBFRAMES * LPC_ORDER]; in g723_1_decode_frame() local
979 ff_g723_1_lsp_interpolate(lpc, cur_lsp, p->prev_lsp); in g723_1_decode_frame()
1070 ff_g723_1_lsp_interpolate(lpc, p->sid_lsp, p->prev_lsp); in g723_1_decode_frame()
1079 ff_celp_lp_synthesis_filter(p->audio + i, &lpc[ in g723_1_decode_frame()
[all...]
H A Dlsp.h101 * @param lpc linear predictive coding coefficients
109 void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order);
H A Dsipr.c274 static void postfilter_5k0(SiprContext *ctx, const float *lpc, float *samples) in postfilter_5k0() argument
283 lpc_d[i] = lpc[i] * ff_pow_0_75[i]; in postfilter_5k0()
284 lpc_n[i] = lpc[i] * ff_pow_0_5 [i]; in postfilter_5k0()
H A Dg723_1.h204 * @param lpc buffer for LPC coefficients
208 void ff_g723_1_lsp_interpolate(int16_t *lpc, int16_t *cur_lsp,
H A Damrwbdec.c775 * @param[in] lpc Pointer to the LPC coefficients
781 static void synthesis(AMRWBContext *ctx, float *lpc, float *excitation, in synthesis() argument
805 ctx->celpf_ctx.celp_lp_synthesis_filterf(samples, lpc, excitation, in synthesis()
1000 * @param[in] lpc LP coefficients array
1004 static void lpc_weighting(float *out, const float *lpc, float gamma, int size) in lpc_weighting() argument
1010 out[i] = lpc[i] * fac; in lpc_weighting()
H A Daacenc.h36 #include "lpc.h"
393 LPCContext lpc; ///< used by TNS member
H A Dspeexdec.c940 float lpc[NB_ORDER]; in nb_decode() local
943 bw_lpc(0.93f, st->interp_qlpc, lpc, NB_ORDER); in nb_decode()
949 iir_mem(st->exc, lpc, out, NB_FRAME_SIZE, NB_ORDER, st->mem_sp); in nb_decode()
/third_party/ffmpeg/tests/fate/
H A Dflac.mak6 fate-flac-16-lpc-cholesky \
7 fate-flac-16-lpc-levinson \
13 fate-flac-16-lpc-%: OPTS = -lpc_type $(@:fate-flac-16-lpc-%=%)
H A Dalac.mak4 fate-alac-16-lpc-orders \
8 fate-alac-24-lpc-orders \
12 fate-alac-%-lpc-orders: OPTS = -min_prediction_order 1 -max_prediction_order 30
/third_party/ffmpeg/libavfilter/
H A Daf_arnndn.c667 static void celt_lpc(float *lpc, /* out: [0...p-1] LPC coefficients */ in celt_lpc() argument
673 RNN_CLEAR(lpc, p); in celt_lpc()
679 rr += (lpc[j] * ac[i - j]); in celt_lpc()
683 lpc[i] = r; in celt_lpc()
686 tmp1 = lpc[j]; in celt_lpc()
687 tmp2 = lpc[i-1-j]; in celt_lpc()
688 lpc[j] = tmp1 + (r*tmp2); in celt_lpc()
689 lpc[i-1-j] = tmp2 + (r*tmp1); in celt_lpc()
748 float lpc[4], mem[5]={0,0,0,0,0}; in pitch_downsample() local
771 celt_lpc(lpc, a in pitch_downsample()
[all...]
H A Daf_acrossover.c429 const type *const lpc = (type *)&s->lp[band][f].c ## ff; \
431 biquad_process_## name(lpc, lp, dst, lsrc, nb_samples); \

Completed in 24 milliseconds

12