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) {
#define VP56_EDGE_FILTER(pfx, suf, pix_inc, line_inc)
void ff_vp6_filter_diag4_c(uint8_t *dst, uint8_t *src, int stride, const int16_t *h_weights, const int16_t *v_weights)
static int vp5_adjust(int v, int t)
Macro definitions for various function/variable attributes.
static int vp6_adjust(int v, int t)
AVCodecID
Identify the syntax and semantics of the bitstream.
Libavcodec external API header.
av_cold void ff_vp6dsp_init_arm(VP56DSPContext *s, enum AVCodecID codec)
GLint GLenum GLboolean GLsizei stride
void ff_vp6dsp_init_x86(VP56DSPContext *c, enum AVCodecID codec)
common internal and external API header
av_cold void ff_vp56dsp_init(VP56DSPContext *s, enum AVCodecID codec)