23 #ifndef AVFILTER_FSPP_H
24 #define AVFILTER_FSPP_H
34 #define FIX(x,s) ((int) ((x) * (1 << s) + 0.5) & 0xffff)
35 #define C64(x) ((uint64_t)((x) | (x) << 16)) <<32 | (uint64_t)(x) | (uint64_t)(x) << 16
36 #define FIX64(x,s) C64(FIX(x,s))
38 #define MULTIPLY16H(x,k) (((x) * (k)) >> 16)
39 #define THRESHOLD(r,x,t) \
40 if(((unsigned)((x) + t)) > t * 2) r = (x); \
42 #define DESCALE(x,n) (((x) + (1 << ((n) - 1))) >> n)
75 ptrdiff_t dst_stride, ptrdiff_t src_stride,
76 ptrdiff_t
width, ptrdiff_t
height, ptrdiff_t log2_scale);
79 ptrdiff_t dst_stride, ptrdiff_t src_stride,
80 ptrdiff_t
width, ptrdiff_t
height, ptrdiff_t log2_scale);
85 int16_t *output,
int cnt);
88 ptrdiff_t output_stride,
int cnt);
91 ptrdiff_t line_size,
int cnt);