diff options
author | Mans Rullgard <mans@mansr.com> | 2012-08-25 14:35:52 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-09-02 16:32:57 +0100 |
commit | 15616eb04206b64bcf08ad351f4c754e69e00666 (patch) | |
tree | a1c88084e31cf10946f29b19bb0d6acc05aa6893 /libavcodec/intrax8dsp.c | |
parent | 12c8912de2f2c1a235a7578d6a288e217c3fb504 (diff) | |
download | ffmpeg-15616eb04206b64bcf08ad351f4c754e69e00666.tar.gz |
intrax8: move functions from dsputil to own context
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/intrax8dsp.c')
-rw-r--r-- | libavcodec/intrax8dsp.c | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/libavcodec/intrax8dsp.c b/libavcodec/intrax8dsp.c index 5ba210e7f5..ddceb2c9ff 100644 --- a/libavcodec/intrax8dsp.c +++ b/libavcodec/intrax8dsp.c @@ -22,6 +22,7 @@ */ #include "dsputil.h" +#include "intrax8dsp.h" #include "libavutil/common.h" /* @@ -412,20 +413,21 @@ static void x8_v_loop_filter(uint8_t *src, int stride, int qscale){ x8_loop_filter(src, 1, stride, qscale); } -av_cold void ff_intrax8dsp_init(DSPContext* dsp, AVCodecContext *avctx) { - dsp->x8_h_loop_filter=x8_h_loop_filter; - dsp->x8_v_loop_filter=x8_v_loop_filter; - dsp->x8_setup_spatial_compensation=x8_setup_spatial_compensation; - dsp->x8_spatial_compensation[0]=spatial_compensation_0; - dsp->x8_spatial_compensation[1]=spatial_compensation_1; - dsp->x8_spatial_compensation[2]=spatial_compensation_2; - dsp->x8_spatial_compensation[3]=spatial_compensation_3; - dsp->x8_spatial_compensation[4]=spatial_compensation_4; - dsp->x8_spatial_compensation[5]=spatial_compensation_5; - dsp->x8_spatial_compensation[6]=spatial_compensation_6; - dsp->x8_spatial_compensation[7]=spatial_compensation_7; - dsp->x8_spatial_compensation[8]=spatial_compensation_8; - dsp->x8_spatial_compensation[9]=spatial_compensation_9; - dsp->x8_spatial_compensation[10]=spatial_compensation_10; - dsp->x8_spatial_compensation[11]=spatial_compensation_11; +av_cold void ff_intrax8dsp_init(IntraX8DSPContext *dsp) +{ + dsp->h_loop_filter=x8_h_loop_filter; + dsp->v_loop_filter=x8_v_loop_filter; + dsp->setup_spatial_compensation=x8_setup_spatial_compensation; + dsp->spatial_compensation[0]=spatial_compensation_0; + dsp->spatial_compensation[1]=spatial_compensation_1; + dsp->spatial_compensation[2]=spatial_compensation_2; + dsp->spatial_compensation[3]=spatial_compensation_3; + dsp->spatial_compensation[4]=spatial_compensation_4; + dsp->spatial_compensation[5]=spatial_compensation_5; + dsp->spatial_compensation[6]=spatial_compensation_6; + dsp->spatial_compensation[7]=spatial_compensation_7; + dsp->spatial_compensation[8]=spatial_compensation_8; + dsp->spatial_compensation[9]=spatial_compensation_9; + dsp->spatial_compensation[10]=spatial_compensation_10; + dsp->spatial_compensation[11]=spatial_compensation_11; } |