comparison x86/dsputilenc_mmx.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 7f594601d5e9
children 289dd8daf4ee
comparison
equal deleted inserted replaced
10423:2e4967487e59 10424:94595d0e617c
1346 #undef PMULHRW 1346 #undef PMULHRW
1347 #undef PHADDD 1347 #undef PHADDD
1348 #endif //HAVE_SSSE3 1348 #endif //HAVE_SSSE3
1349 1349
1350 1350
1351 /* FLAC specific */ 1351 void ff_lpc_compute_autocorr_sse2(const int32_t *data, int len, int lag,
1352 void ff_flac_compute_autocorr_sse2(const int32_t *data, int len, int lag,
1353 double *autoc); 1352 double *autoc);
1354 1353
1355 1354
1356 void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx) 1355 void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx)
1357 { 1356 {
1412 if(mm_flags & FF_MM_SSE2){ 1411 if(mm_flags & FF_MM_SSE2){
1413 c->get_pixels = get_pixels_sse2; 1412 c->get_pixels = get_pixels_sse2;
1414 c->sum_abs_dctelem= sum_abs_dctelem_sse2; 1413 c->sum_abs_dctelem= sum_abs_dctelem_sse2;
1415 c->hadamard8_diff[0]= hadamard8_diff16_sse2; 1414 c->hadamard8_diff[0]= hadamard8_diff16_sse2;
1416 c->hadamard8_diff[1]= hadamard8_diff_sse2; 1415 c->hadamard8_diff[1]= hadamard8_diff_sse2;
1417 if (CONFIG_FLAC_ENCODER) 1416 c->lpc_compute_autocorr = ff_lpc_compute_autocorr_sse2;
1418 c->flac_compute_autocorr = ff_flac_compute_autocorr_sse2;
1419 } 1417 }
1420 1418
1421 #if HAVE_SSSE3 1419 #if HAVE_SSSE3
1422 if(mm_flags & FF_MM_SSSE3){ 1420 if(mm_flags & FF_MM_SSSE3){
1423 if(!(avctx->flags & CODEC_FLAG_BITEXACT)){ 1421 if(!(avctx->flags & CODEC_FLAG_BITEXACT)){