summaryrefslogtreecommitdiff
path: root/libavcodec/snow.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-03-10 14:14:35 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-03-13 03:58:49 +0100
commit771ba8f206e23f753f4f8ab04d2f6251911bfd99 (patch)
treec5fa1244716070873ca17e494372171cf4c6d05d /libavcodec/snow.c
parent05dd583426db7962e610bd924e840bce78abce6c (diff)
downloadffmpeg-771ba8f206e23f753f4f8ab04d2f6251911bfd99.tar.gz
snow: use hpeldsp instead of dsputil for half-pel functions.
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r--libavcodec/snow.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index db5a95685a..eea729716e 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -401,6 +401,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
s->max_ref_frames=1; //just make sure it's not an invalid value in case of no initial keyframe
ff_dsputil_init(&s->dsp, avctx);
+ ff_hpeldsp_init(&s->hdsp, avctx->flags);
ff_videodsp_init(&s->vdsp, 8);
ff_dwt_init(&s->dwt);
ff_h264qpel_init(&s->h264qpel, 8);
@@ -431,11 +432,11 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
mcf(12,12)
#define mcfh(dx,dy)\
- s->dsp.put_pixels_tab [0][dy/4+dx/8]=\
- s->dsp.put_no_rnd_pixels_tab[0][dy/4+dx/8]=\
+ s->hdsp.put_pixels_tab [0][dy/4+dx/8]=\
+ s->hdsp.put_no_rnd_pixels_tab[0][dy/4+dx/8]=\
mc_block_hpel ## dx ## dy ## 16;\
- s->dsp.put_pixels_tab [1][dy/4+dx/8]=\
- s->dsp.put_no_rnd_pixels_tab[1][dy/4+dx/8]=\
+ s->hdsp.put_pixels_tab [1][dy/4+dx/8]=\
+ s->hdsp.put_no_rnd_pixels_tab[1][dy/4+dx/8]=\
mc_block_hpel ## dx ## dy ## 8;
mcfh(0, 0)