46 int V = v, s = v >> 31;
49 if (V-t-1 >= (
unsigned)(t-1))
58 #define VP56_EDGE_FILTER(pfx, suf, pix_inc, line_inc) \
59 static void pfx##_edge_filter_##suf(uint8_t *yuv, int stride, int t) \
61 int pix2_inc = 2 * pix_inc; \
64 for (i=0; i<12; i++) { \
65 v = (yuv[-pix2_inc] + 3*(yuv[0]-yuv[-pix_inc]) - yuv[pix_inc] + 4)>>3;\
66 v = pfx##_adjust(v, t); \
67 yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v); \
68 yuv[0] = av_clip_uint8(yuv[0] - v); \
81 s->edge_filter_hor = vp5_edge_filter_hor;
82 s->edge_filter_ver = vp5_edge_filter_ver;
84 s->edge_filter_hor = vp6_edge_filter_hor;
85 s->edge_filter_ver = vp6_edge_filter_ver;
87 if (CONFIG_VP6_DECODER) {