Browse code

postproc: Deprecate QP_STORE_T, it lacks a PP/AV/FF prefix

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Michael Niedermayer authored on 2015/08/10 06:44:59
Showing 2 changed files
... ...
@@ -51,7 +51,9 @@ const char *postproc_license(void);
51 51
 
52 52
 #define PP_QUALITY_MAX 6
53 53
 
54
-#define QP_STORE_T int8_t
54
+#if FF_API_QP_TYPE
55
+#define QP_STORE_T int8_t //deprecated
56
+#endif
55 57
 
56 58
 #include <inttypes.h>
57 59
 
... ...
@@ -69,7 +71,7 @@ extern const char pp_help[]; ///< a simple help text
69 69
 void  pp_postprocess(const uint8_t * src[3], const int srcStride[3],
70 70
                      uint8_t * dst[3], const int dstStride[3],
71 71
                      int horizontalSize, int verticalSize,
72
-                     const QP_STORE_T *QP_store,  int QP_stride,
72
+                     const int8_t *QP_store,  int QP_stride,
73 73
                      pp_mode *mode, pp_context *ppContext, int pict_type);
74 74
 
75 75
 
... ...
@@ -42,4 +42,8 @@
42 42
 
43 43
 #define LIBPOSTPROC_IDENT       "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
44 44
 
45
+#ifndef FF_API_QP_TYPE
46
+#define FF_API_QP_TYPE     (LIBPOSTPROC_VERSION_MAJOR < 55)
47
+#endif
48
+
45 49
 #endif /* POSTPROC_POSTPROCESS_VERSION_H */