Skip to content
Snippets Groups Projects
Commit 95275094 authored by Jason Garrett-Glaser's avatar Jason Garrett-Glaser
Browse files

Faster C VP8 normal inner loop filter

Originally committed as revision 23881 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9942b6a1
No related branches found
No related tags found
No related merge requests found
...@@ -214,12 +214,15 @@ static void vp8_ ## dir ## _loop_filter ## size ## _c(uint8_t *dst, int stride,\ ...@@ -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,\ static void vp8_ ## dir ## _loop_filter ## size ## _inner_c(uint8_t *dst, int stride,\
int flim_E, int flim_I, int hev_thresh)\ int flim_E, int flim_I, int hev_thresh)\
{\ {\
int i, hv;\ int i;\
\ \
for (i = 0; i < size; i++)\ for (i = 0; i < size; i++)\
if (normal_limit(dst+i*stridea, strideb, flim_E, flim_I)) {\ if (normal_limit(dst+i*stridea, strideb, flim_E, flim_I)) {\
hv = hev(dst+i*stridea, strideb, hev_thresh);\ int hv = hev(dst+i*stridea, strideb, hev_thresh);\
filter_common(dst+i*stridea, strideb, hv);\ if (hv) \
filter_common(dst+i*stridea, strideb, 1);\
else \
filter_common(dst+i*stridea, strideb, 0);\
}\ }\
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment