Mercurial > libavcodec.hg
comparison vp8dsp.c @ 12008:98fd80705850 libavcodec
Faster C VP8 normal inner loop filter
author | darkshikari |
---|---|
date | Tue, 29 Jun 2010 04:34:04 +0000 |
parents | ec7be1d7d5b4 |
children | f96187e79438 |
comparison
equal
deleted
inserted
replaced
12007:ec7be1d7d5b4 | 12008:98fd80705850 |
---|---|
212 }\ | 212 }\ |
213 \ | 213 \ |
214 static void vp8_ ## dir ## _loop_filter ## size ## _inner_c(uint8_t *dst, int stride,\ | 214 static void vp8_ ## dir ## _loop_filter ## size ## _inner_c(uint8_t *dst, int stride,\ |
215 int flim_E, int flim_I, int hev_thresh)\ | 215 int flim_E, int flim_I, int hev_thresh)\ |
216 {\ | 216 {\ |
217 int i, hv;\ | 217 int i;\ |
218 \ | 218 \ |
219 for (i = 0; i < size; i++)\ | 219 for (i = 0; i < size; i++)\ |
220 if (normal_limit(dst+i*stridea, strideb, flim_E, flim_I)) {\ | 220 if (normal_limit(dst+i*stridea, strideb, flim_E, flim_I)) {\ |
221 hv = hev(dst+i*stridea, strideb, hev_thresh);\ | 221 int hv = hev(dst+i*stridea, strideb, hev_thresh);\ |
222 filter_common(dst+i*stridea, strideb, hv);\ | 222 if (hv) \ |
223 filter_common(dst+i*stridea, strideb, 1);\ | |
224 else \ | |
225 filter_common(dst+i*stridea, strideb, 0);\ | |
223 }\ | 226 }\ |
224 } | 227 } |
225 | 228 |
226 LOOP_FILTER(v, 16, 1, stride) | 229 LOOP_FILTER(v, 16, 1, stride) |
227 LOOP_FILTER(h, 16, stride, 1) | 230 LOOP_FILTER(h, 16, stride, 1) |