29 #define VP56_EDGE_FILTER(pfx, suf, pix_inc, line_inc) \
30 static void pfx ## _edge_filter_ ## suf(uint8_t *yuv, ptrdiff_t stride, \
33 int pix2_inc = 2 * pix_inc; \
36 for (i=0; i<12; i++) { \
37 v = (yuv[-pix2_inc] + 3*(yuv[0]-yuv[-pix_inc]) - yuv[pix_inc] + 4)>>3;\
38 v = pfx##_adjust(v, t); \
39 yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v); \
40 yuv[0] = av_clip_uint8(yuv[0] - v); \
45 #if CONFIG_VP5_DECODER
47 static int vp5_adjust(
int v,
int t)
69 s->edge_filter_hor = vp5_edge_filter_hor;
70 s->edge_filter_ver = vp5_edge_filter_ver;
74 #if CONFIG_VP6_DECODER
75 static int vp6_adjust(
int v,
int t)
77 int V = v,
s = v >> 31;
80 if (V-t-1 >= (
unsigned)(t-1))
93 s->edge_filter_hor = vp6_edge_filter_hor;
94 s->edge_filter_ver = vp6_edge_filter_ver;
#define VP56_EDGE_FILTER(pfx, suf, pix_inc, line_inc)
void ff_vp6dsp_init_x86(VP56DSPContext *s)
Macro definitions for various function/variable attributes.
av_cold void ff_vp6dsp_init_arm(VP56DSPContext *s)
void ff_vp6dsp_init(VP56DSPContext *s)
Libavcodec external API header.
GLint GLenum GLboolean GLsizei stride
common internal and external API header
void ff_vp5dsp_init(VP56DSPContext *s)
void ff_vp6_filter_diag4_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride, const int16_t *h_weights, const int16_t *v_weights)