changeset 12008:98fd80705850 libavcodec

Faster C VP8 normal inner loop filter
author darkshikari
date Tue, 29 Jun 2010 04:34:04 +0000
parents ec7be1d7d5b4
children 8c82dfce2f24
files vp8dsp.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vp8dsp.c	Tue Jun 29 03:34:24 2010 +0000
+++ b/vp8dsp.c	Tue Jun 29 04:34:04 2010 +0000
@@ -214,12 +214,15 @@
 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);\
         }\
 }