Home
last modified time | relevance | path

Searched refs:lpc (Results 1 – 25 of 39) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dg723_1.c1189 static void lsp2lpc(int16_t *lpc) in lsp2lpc() argument
1197 int index = (lpc[j] >> 7) & 0x1FF; in lsp2lpc()
1198 int offset = lpc[j] & 0x7f; in lsp2lpc()
1203 lpc[j] = -(av_sat_dadd32(1 << 15, temp1 + temp2) >> 16); in lsp2lpc()
1212 f1[1] = (lpc[0] + lpc[2]) * (1 << 14); in lsp2lpc()
1213 f1[2] = lpc[0] * lpc[2] + (2 << 28); in lsp2lpc()
1216 f2[1] = (lpc[1] + lpc[3]) * (1 << 14); in lsp2lpc()
1217 f2[2] = lpc[1] * lpc[3] + (2 << 28); in lsp2lpc()
1224 f1[i + 1] = av_clipl_int32(f1[i - 1] + (int64_t)MULL2(f1[i], lpc[2 * i])); in lsp2lpc()
1225 f2[i + 1] = av_clipl_int32(f2[i - 1] + (int64_t)MULL2(f2[i], lpc[2 * i + 1])); in lsp2lpc()
[all …]
Dalacenc.c79 AlacLPCContext lpc[2]; member
160 s->lpc[ch].lpc_order = 6; in calc_predictor_params()
161 s->lpc[ch].lpc_quant = 6; in calc_predictor_params()
162 s->lpc[ch].lpc_coeff[0] = 160; in calc_predictor_params()
163 s->lpc[ch].lpc_coeff[1] = -190; in calc_predictor_params()
164 s->lpc[ch].lpc_coeff[2] = 170; in calc_predictor_params()
165 s->lpc[ch].lpc_coeff[3] = -130; in calc_predictor_params()
166 s->lpc[ch].lpc_coeff[4] = 80; in calc_predictor_params()
167 s->lpc[ch].lpc_coeff[5] = -25; in calc_predictor_params()
178 s->lpc[ch].lpc_order = opt_order; in calc_predictor_params()
[all …]
Dlpc.h167 LPC_TYPE *lpc, int lpc_stride, int fail, in AAC_RENAME()
172 LPC_TYPE *lpc_last = lpc; in AAC_RENAME()
194 lpc[i] = r; in AAC_RENAME()
199 lpc[ j] = f + (LPC_TYPE_U)AAC_MUL26(r, b); in AAC_RENAME()
200 lpc[i-1-j] = b + (LPC_TYPE_U)AAC_MUL26(r, f); in AAC_RENAME()
206 lpc_last = lpc; in AAC_RENAME()
207 lpc += lpc_stride; in AAC_RENAME()
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()
152 DC_resp += lpc[k]; in silk_is_lpc_stable()
153 row[k] = lpc[k] * 4096; in silk_is_lpc_stable()
223 int16_t lpc[16]; // Q12 in silk_lsf2lpc() local
279 lpc[k] = av_clip_int16(x); in silk_lsf2lpc()
280 lpc32[k] = lpc[k] << 5; // shortcut mandated by the spec; drops lower 5 bits in silk_lsf2lpc()
284 lpc[k] = (lpc32[k] + 16) >> 5; in silk_lsf2lpc()
289 for (i = 1; i <= 16 && !silk_is_lpc_stable(lpc, order); i++) { in silk_lsf2lpc()
295 lpc[k] = (lpc32[k] + 16) >> 5; in silk_lsf2lpc()
[all …]
Dqcelpdec.c536 static void lspf2lpc(const float *lspf, float *lpc) in lspf2lpc() argument
545 ff_acelp_lspd2lpc(lsp, lpc, 5); in lspf2lpc()
548 lpc[i] *= bandwidth_expansion_coeff; in lspf2lpc()
565 float *lpc, const int subframe_num) in interpolate_lpc() argument
580 lspf2lpc(interpolated_lspf, lpc); in interpolate_lpc()
583 lspf2lpc(curr_lspf, lpc); in interpolate_lpc()
585 lspf2lpc(q->prev_lspf, lpc); in interpolate_lpc()
654 static void postfilter(QCELPContext *q, float *samples, float *lpc) in postfilter() argument
667 lpc_s[n] = lpc[n] * pow_0_625[n]; in postfilter()
668 lpc_p[n] = lpc[n] * pow_0_775[n]; in postfilter()
[all …]
Dcngenc.c30 LPCContext lpc; member
39 ff_lpc_end(&p->lpc); in cng_encode_close()
57 if ((ret = ff_lpc_init(&p->lpc, avctx->frame_size, p->order, FF_LPC_TYPE_LEVINSON)) < 0) in cng_encode_init()
92 ff_lpc_calc_ref_coefs(&p->lpc, p->samples32, p->order, p->ref_coef); in cng_encode_frame()
Dlpc.c210 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()
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() argument
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 + size - 2 * step + 1, lpc[size - 2 * step], in eval_lpcenv_2parts()
304 enum TwinVQFrameType ftype, float *lpc) in dec_lpc_spectrum_inv() argument
[all …]
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()
Dcngdec.c80 static void make_lpc_coefs(float *lpc, const float *refl, int order) in make_lpc_coefs() argument
86 cur = lpc; in make_lpc_coefs()
93 if (cur != lpc) in make_lpc_coefs()
94 memcpy(lpc, cur, sizeof(*lpc) * order); in make_lpc_coefs()
Dra288.c176 float *lpc, const float *tab, in backward_filter() argument
183 if (!compute_lpc_coefs(temp, order, lpc, 0, 1, 1)) in backward_filter()
184 ractx->vector_fmul(lpc, lpc, tab, FFALIGN(order, 16)); in backward_filter()
Damrnbdec.c112 float lpc[4][LP_FILTER_ORDER]; ///< lpc coefficient vectors for 4 subframes member
790 static int synthesis(AMRContext *p, float *lpc, in synthesis() argument
823 p->celpf_ctx.celp_lp_synthesis_filterf(samples, lpc, excitation, in synthesis()
904 static void postfilter(AMRContext *p, float *lpc, float *buf_out) in postfilter() argument
925 lpc_n[i] = lpc[i] * gamma_n[i]; in postfilter()
926 lpc_d[i] = lpc[i] * gamma_d[i]; in postfilter()
987 ff_acelp_lspd2lpc(p->lsp[i], p->lpc[i], 5); in amrnb_decode_frame()
1046 if (synthesis(p, p->lpc[subframe], synth_fixed_gain, in amrnb_decode_frame()
1051 synthesis(p, p->lpc[subframe], synth_fixed_gain, in amrnb_decode_frame()
1054 postfilter(p, p->lpc[subframe], buf_out + subframe * AMR_SUBFRAME_SIZE); in amrnb_decode_frame()
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()
Dg723_1enc.c187 static void levinson_durbin(int16_t *lpc, int16_t *autocorr, int16_t error) in levinson_durbin() argument
193 memset(lpc, 0, LPC_ORDER * sizeof(int16_t)); in levinson_durbin()
199 temp -= lpc[j] * autocorr[i - j - 1]; in levinson_durbin()
207 lpc[i] = av_clipl_int32((int64_t) (partial_corr << 14) + in levinson_durbin()
215 memcpy(vector, lpc, i * sizeof(int16_t)); in levinson_durbin()
218 lpc[j] = av_clipl_int32((int64_t) (lpc[j] << 16) - temp + in levinson_durbin()
231 static void comp_lpc_coeff(int16_t *buf, int16_t *lpc) in comp_lpc_coeff() argument
235 int16_t *lpc_ptr = lpc; in comp_lpc_coeff()
247 static void lpc2lsp(int16_t *lpc, int16_t *prev_lsp, int16_t *lsp) in lpc2lsp() argument
259 lsp[i] = (lpc[i] * bandwidth_expand[i] + (1 << 14)) >> 15; in lpc2lsp()
Dg723_1dec.c657 static void formant_postfilter(G723_1_ChannelContext *p, int16_t *lpc, in formant_postfilter() argument
669 filter_coef[0][k] = (-lpc[k] * postfilter_tbl[0][k] + in formant_postfilter()
671 filter_coef[1][k] = (-lpc[k] * postfilter_tbl[1][k] + in formant_postfilter()
675 lpc += LPC_ORDER; in formant_postfilter()
938 int16_t lpc[SUBFRAMES * LPC_ORDER]; in g723_1_decode_frame() local
978 ff_g723_1_lsp_interpolate(lpc, cur_lsp, p->prev_lsp); in g723_1_decode_frame()
1069 ff_g723_1_lsp_interpolate(lpc, p->sid_lsp, p->prev_lsp); in g723_1_decode_frame()
1078 ff_celp_lp_synthesis_filter(p->audio + i, &lpc[j * LPC_ORDER], in g723_1_decode_frame()
1084 formant_postfilter(p, lpc, p->audio, out); in g723_1_decode_frame()
Dlsp.h109 void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order);
Dsipr.c273 static void postfilter_5k0(SiprContext *ctx, const float *lpc, float *samples) in postfilter_5k0() argument
282 lpc_d[i] = lpc[i] * ff_pow_0_75[i]; in postfilter_5k0()
283 lpc_n[i] = lpc[i] * ff_pow_0_5 [i]; in postfilter_5k0()
Dg723_1.h208 void ff_g723_1_lsp_interpolate(int16_t *lpc, int16_t *cur_lsp,
Damrwbdec.c770 static void synthesis(AMRWBContext *ctx, float *lpc, float *excitation, in synthesis() argument
794 ctx->celpf_ctx.celp_lp_synthesis_filterf(samples, lpc, excitation, in synthesis()
993 static void lpc_weighting(float *out, const float *lpc, float gamma, int size) in lpc_weighting() argument
999 out[i] = lpc[i] * fac; in lpc_weighting()
/third_party/ffmpeg/tests/fate/
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-%=%)
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/
Daf_arnndn.c679 static void celt_lpc(float *lpc, /* out: [0...p-1] LPC coefficients */ in celt_lpc() argument
685 RNN_CLEAR(lpc, p); in celt_lpc()
691 rr += (lpc[j] * ac[i - j]); in celt_lpc()
695 lpc[i] = r; in celt_lpc()
698 tmp1 = lpc[j]; in celt_lpc()
699 tmp2 = lpc[i-1-j]; in celt_lpc()
700 lpc[j] = tmp1 + (r*tmp2); in celt_lpc()
701 lpc[i-1-j] = tmp2 + (r*tmp1); in celt_lpc()
760 float lpc[4], mem[5]={0,0,0,0,0}; in pitch_downsample() local
783 celt_lpc(lpc, ac, 4); in pitch_downsample()
[all …]
Daf_acrossover.c419 const type *const lpc = (type *)&s->lp[band][f].c ## ff; \ in BIQUAD_PROCESS()
421 biquad_process_## name(lpc, lp, dst, lsrc, nb_samples); \ in BIQUAD_PROCESS()
/third_party/cups/
Dcups.spec200 mv ${RPM_BUILD_ROOT}%{_sbindir}/lpc ${RPM_BUILD_ROOT}%{_sbindir}/lpc.cups
206 mv ${RPM_BUILD_ROOT}%{_mandir}/man8/lpc.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/lpc-cups.8
262 --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.cups \
265 --slave %{_mandir}/man8/lpc.8.gz print-lpcman %{_mandir}/man8/lpc-cups.8.gz \
306 %exclude %{_sbindir}/lpc.cups
357 %exclude %{_mandir}/man8/lpc-cups.8.gz
396 %{_sbindir}/lpc.cups
399 %{_mandir}/man8/lpc-cups.8.gz
/third_party/libsnd/
DBUILD.gn59 "src/GSM610/lpc.c",

12