diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-06-29 04:34:04 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-06-29 04:34:04 +0000 |
commit | 95275094a527893af040432a6da7afe2ed79c69c (patch) | |
tree | 4812d0070ca47aec637db36b3cfb8dd7d087d1df /libavcodec/vp8dsp.c | |
parent | 9942b6a1b0748dda15290155dc8d44f18a71230b (diff) | |
download | ffmpeg-95275094a527893af040432a6da7afe2ed79c69c.tar.gz |
Faster C VP8 normal inner loop filter
Originally committed as revision 23881 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp8dsp.c')
-rw-r--r-- | libavcodec/vp8dsp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/vp8dsp.c b/libavcodec/vp8dsp.c index ab310992b9..8f9124e0d4 100644 --- a/libavcodec/vp8dsp.c +++ b/libavcodec/vp8dsp.c @@ -214,12 +214,15 @@ static void vp8_ ## dir ## _loop_filter ## size ## _c(uint8_t *dst, int stride,\ static void vp8_ ## dir ## _loop_filter ## size ## _inner_c(uint8_t *dst, int stride,\ int flim_E, int flim_I, int hev_thresh)\ {\ - int i, hv;\ + int i;\ \ for (i = 0; i < size; i++)\ if (normal_limit(dst+i*stridea, strideb, flim_E, flim_I)) {\ - hv = hev(dst+i*stridea, strideb, hev_thresh);\ - filter_common(dst+i*stridea, strideb, hv);\ + int hv = hev(dst+i*stridea, strideb, hev_thresh);\ + if (hv) \ + filter_common(dst+i*stridea, strideb, 1);\ + else \ + filter_common(dst+i*stridea, strideb, 0);\ }\ } |