]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_fspp.h
avcodec: postpone removal of deprecated libopenh264 wrapper options
[ffmpeg] / libavfilter / vf_fspp.h
index 74a34473bba7407632a58a35e64fa571ea36fe6d..6623af450c8370739075d757c281e1c9a9d6af9c 100644 (file)
@@ -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,