diff options
author | David Conrad <lessen42@gmail.com> | 2009-04-14 23:56:10 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-04-14 23:56:10 +0000 |
commit | 8013da736467d0111e96801dbb1acdccc0bb0b10 (patch) | |
tree | 5ae63d716eddffa53b3c59f3e8665025f1049949 /libavcodec/vc1.c | |
parent | c374691b28638763045ae55fc45c39da9bb5b6eb (diff) | |
download | ffmpeg-8013da736467d0111e96801dbb1acdccc0bb0b10.tar.gz |
VC1: add and use avg_no_rnd chroma MC functions
Originally committed as revision 18518 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r-- | libavcodec/vc1.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index edb26590a6..56f361f54a 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -1925,8 +1925,13 @@ static void vc1_interp_mc(VC1Context *v) uvdxy = ((uvmy & 3) << 2) | (uvmx & 3); uvmx = (uvmx&3)<<1; uvmy = (uvmy&3)<<1; - dsp->avg_h264_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy); - dsp->avg_h264_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy); + if(!v->rnd){ + dsp->avg_h264_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy); + dsp->avg_h264_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy); + }else{ + dsp->avg_no_rnd_vc1_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy); + dsp->avg_no_rnd_vc1_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy); + } } static av_always_inline int scale_mv(int value, int bfrac, int inv, int qs) |