diff options
author | Måns Rullgård <mans@mansr.com> | 2010-08-03 20:59:00 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-08-03 20:59:00 +0000 |
commit | f079a64aea0d19dd7adfc045747cd4b4dfb6225c (patch) | |
tree | f02085b637c2b6386bc96ed92aac18e7b8450383 /libavcodec/cavsdsp.c | |
parent | 61ee75bbf86cc2a69fb02c32e391c197ddd9fcf3 (diff) | |
download | ffmpeg-f079a64aea0d19dd7adfc045747cd4b4dfb6225c.tar.gz |
Move cavs dsp functions to their own struct
Originally committed as revision 24685 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cavsdsp.c')
-rw-r--r-- | libavcodec/cavsdsp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/cavsdsp.c b/libavcodec/cavsdsp.c index 808f62b69f..3593cfa05a 100644 --- a/libavcodec/cavsdsp.c +++ b/libavcodec/cavsdsp.c @@ -24,6 +24,7 @@ #include <stdio.h> #include "dsputil.h" +#include "cavsdsp.h" /***************************************************************************** * @@ -510,7 +511,7 @@ CAVS_MC(put_, 16) CAVS_MC(avg_, 8) CAVS_MC(avg_, 16) -av_cold void ff_cavsdsp_init(DSPContext* c, AVCodecContext *avctx) { +av_cold void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx) { #define dspfunc(PFX, IDX, NUM) \ c->PFX ## _pixels_tab[IDX][ 0] = ff_ ## PFX ## NUM ## _mc00_c; \ c->PFX ## _pixels_tab[IDX][ 1] = ff_ ## PFX ## NUM ## _mc10_c; \ @@ -537,4 +538,6 @@ av_cold void ff_cavsdsp_init(DSPContext* c, AVCodecContext *avctx) { c->cavs_filter_cv = cavs_filter_cv_c; c->cavs_filter_ch = cavs_filter_ch_c; c->cavs_idct8_add = cavs_idct8_add_c; + + if (HAVE_MMX) ff_cavsdsp_init_mmx(c, avctx); } |