X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_fspp.h;h=6623af450c8370739075d757c281e1c9a9d6af9c;hb=3749eede66c3774799766b1f246afae8a6ffc9bb;hp=74a34473bba7407632a58a35e64fa571ea36fe6d;hpb=2ac399d7faa5ac80088715780769522d1141b549;p=ffmpeg diff --git a/libavfilter/vf_fspp.h b/libavfilter/vf_fspp.h index 74a34473bba..6623af450c8 100644 --- a/libavfilter/vf_fspp.h +++ b/libavfilter/vf_fspp.h @@ -31,9 +31,7 @@ #define DCTSIZE 8 #define DCTSIZE_S "8" -#define FIX(x,s) ((int) ((x) * (1 << s) + 0.5) & 0xffff) -#define C64(x) ((uint64_t)((x) | (x) << 16)) <<32 | (uint64_t)(x) | (uint64_t)(x) << 16 -#define FIX64(x,s) C64(FIX(x,s)) +#define FIX(x,s) ((x) * (1 << s) + 0.5) #define MULTIPLY16H(x,k) (((x) * (k)) >> 16) #define THRESHOLD(r,x,t) \ @@ -67,8 +65,8 @@ typedef struct FSPPContext { int prev_q; uint8_t *src; int16_t *temp; - uint8_t *non_b_qp_table; - int non_b_qp_alloc_size; + int8_t *non_b_qp_table; + int non_b_qp_stride; int use_bframe_qp; void (*store_slice)(uint8_t *dst, int16_t *src,