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) 44 typedef int32_t int_simd16_t;
45 static const int16_t FIX_0_382683433 = FIX(0.382683433, 14);
46 static const int16_t FIX_0_541196100 = FIX(0.541196100, 14);
47 static const int16_t FIX_0_707106781 = FIX(M_SQRT1_2 , 14);
48 static const int16_t FIX_1_306562965 = FIX(1.306562965, 14);
49 static const int16_t FIX_1_414213562_A = FIX(M_SQRT2 , 14);
50 static const int16_t FIX_1_847759065 = FIX(1.847759065, 13);
51 static const int16_t FIX_2_613125930 = FIX(-2.613125930, 13);
52 static const int16_t FIX_1_414213562 = FIX(M_SQRT2 , 13);
53 static const int16_t FIX_1_082392200 = FIX(1.082392200, 13);
57 uint64_t threshold_mtx_noq[8 * 2];
58 uint64_t threshold_mtx[8 * 2];
70 uint8_t *non_b_qp_table;
71 int non_b_qp_alloc_size;
74 void (*store_slice)(uint8_t *dst, int16_t *src,
75 ptrdiff_t dst_stride, ptrdiff_t src_stride,
76 ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale);
78 void (*store_slice2)(uint8_t *dst, int16_t *src,
79 ptrdiff_t dst_stride, ptrdiff_t src_stride,
80 ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale);
82 void (*mul_thrmat)(int16_t *thr_adr_noq, int16_t *thr_adr,
int q);
84 void (*column_fidct)(int16_t *thr_adr, int16_t *data,
85 int16_t *output,
int cnt);
87 void (*row_idct)(int16_t *workspace, int16_t *output_adr,
88 ptrdiff_t output_stride,
int cnt);
90 void (*row_fdct)(int16_t *data,
const uint8_t *pixels,
91 ptrdiff_t line_size,
int cnt);
Main libavfilter public API header.
Describe the class of an AVClass context structure.
Definition: log.h:67