Mercurial > libavcodec.hg
diff dsputil.c @ 10424:94595d0e617c libavcodec
Move autocorrelation function from flacenc.c to lpc.c. Also rename the
corresponding dsputil functions and remove their dependency on the FLAC
encoder.
Fixes Issue1486.
author | jbr |
---|---|
date | Sat, 17 Oct 2009 21:00:39 +0000 |
parents | 6ca681cc3264 |
children | 289dd8daf4ee |
line wrap: on
line diff
--- a/dsputil.c Sat Oct 17 19:35:47 2009 +0000 +++ b/dsputil.c Sat Oct 17 21:00:39 2009 +0000 @@ -45,8 +45,8 @@ /* ac3dec.c */ void ff_ac3_downmix_c(float (*samples)[256], float (*matrix)[2], int out_ch, int in_ch, int len); -/* flacenc.c */ -void ff_flac_compute_autocorr(const int32_t *data, int len, int lag, double *autoc); +/* lpc.c */ +void ff_lpc_compute_autocorr(const int32_t *data, int len, int lag, double *autoc); /* pngdec.c */ void ff_add_png_paeth_prediction(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp); @@ -4837,9 +4837,7 @@ #if CONFIG_AC3_DECODER c->ac3_downmix = ff_ac3_downmix_c; #endif -#if CONFIG_FLAC_ENCODER - c->flac_compute_autocorr = ff_flac_compute_autocorr; -#endif + c->lpc_compute_autocorr = ff_lpc_compute_autocorr; c->vector_fmul = vector_fmul_c; c->vector_fmul_reverse = vector_fmul_reverse_c; c->vector_fmul_add = vector_fmul_add_c;