comparison cavsdsp.c @ 12423:4269ae88366b libavcodec

Remove duplicate definitions of fullpel MC functions This removes duplicated definitions of 8x8 and 16x16 fullpel MC functions with various names reducing dsputil.o by 8k on x86_64.
author mru
date Wed, 25 Aug 2010 20:14:21 +0000
parents 1241c824de46
children
comparison
equal deleted inserted replaced
12422:ce660f4bda0d 12423:4269ae88366b
509 CAVS_MC(put_, 8) 509 CAVS_MC(put_, 8)
510 CAVS_MC(put_, 16) 510 CAVS_MC(put_, 16)
511 CAVS_MC(avg_, 8) 511 CAVS_MC(avg_, 8)
512 CAVS_MC(avg_, 16) 512 CAVS_MC(avg_, 16)
513 513
514 #define ff_put_cavs_qpel8_mc00_c ff_put_pixels8x8_c
515 #define ff_avg_cavs_qpel8_mc00_c ff_avg_pixels8x8_c
516 #define ff_put_cavs_qpel16_mc00_c ff_put_pixels16x16_c
517 #define ff_avg_cavs_qpel16_mc00_c ff_avg_pixels16x16_c
518
514 av_cold void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx) { 519 av_cold void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx) {
515 #define dspfunc(PFX, IDX, NUM) \ 520 #define dspfunc(PFX, IDX, NUM) \
516 c->PFX ## _pixels_tab[IDX][ 0] = ff_ ## PFX ## NUM ## _mc00_c; \ 521 c->PFX ## _pixels_tab[IDX][ 0] = ff_ ## PFX ## NUM ## _mc00_c; \
517 c->PFX ## _pixels_tab[IDX][ 1] = ff_ ## PFX ## NUM ## _mc10_c; \ 522 c->PFX ## _pixels_tab[IDX][ 1] = ff_ ## PFX ## NUM ## _mc10_c; \
518 c->PFX ## _pixels_tab[IDX][ 2] = ff_ ## PFX ## NUM ## _mc20_c; \ 523 c->PFX ## _pixels_tab[IDX][ 2] = ff_ ## PFX ## NUM ## _mc20_c; \