48 int V =
v,
s = v >> 31;
51 if (V-t-1 >= (
unsigned)(t-1))
60 #define VP56_EDGE_FILTER(pfx, suf, pix_inc, line_inc) \
61 static void pfx##_edge_filter_##suf(uint8_t *yuv, int stride, int t) \
63 int pix2_inc = 2 * pix_inc; \
66 for (i=0; i<12; i++) { \
67 v = (yuv[-pix2_inc] + 3*(yuv[0]-yuv[-pix_inc]) - yuv[pix_inc] + 4)>>3;\
68 v = pfx##_adjust(v, t); \
69 yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v); \
70 yuv[0] = av_clip_uint8(yuv[0] - v); \
83 s->edge_filter_hor = vp5_edge_filter_hor;
84 s->edge_filter_ver = vp5_edge_filter_ver;
86 s->edge_filter_hor = vp6_edge_filter_hor;
87 s->edge_filter_ver = vp6_edge_filter_ver;
89 if (CONFIG_VP6_DECODER) {