Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-10 00:44:59 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-10 03:33:25 +0300
commit8c75a338124f70fedb5a1784fc0e590c597935ed (patch)
treee2e43c673d197375b2dec8bacfa3e54e7defe75b /libpostproc
parent0eb896b38dc576d1acaf67e5b736de6f2b1c1113 (diff)
postproc: Deprecate QP_STORE_T, it lacks a PP/AV/FF prefix
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libpostproc')
-rw-r--r--libpostproc/postprocess.h6
-rw-r--r--libpostproc/version.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/libpostproc/postprocess.h b/libpostproc/postprocess.h
index e00ed968d7..2b55ed67b0 100644
--- a/libpostproc/postprocess.h
+++ b/libpostproc/postprocess.h
@@ -51,7 +51,9 @@ const char *postproc_license(void);
#define PP_QUALITY_MAX 6
-#define QP_STORE_T int8_t
+#if FF_API_QP_TYPE
+#define QP_STORE_T int8_t //deprecated
+#endif
#include <inttypes.h>
@@ -69,7 +71,7 @@ extern const char pp_help[]; ///< a simple help text
void pp_postprocess(const uint8_t * src[3], const int srcStride[3],
uint8_t * dst[3], const int dstStride[3],
int horizontalSize, int verticalSize,
- const QP_STORE_T *QP_store, int QP_stride,
+ const int8_t *QP_store, int QP_stride,
pp_mode *mode, pp_context *ppContext, int pict_type);
diff --git a/libpostproc/version.h b/libpostproc/version.h
index 59c24660f8..ed18446c56 100644
--- a/libpostproc/version.h
+++ b/libpostproc/version.h
@@ -42,4 +42,8 @@
#define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
+#ifndef FF_API_QP_TYPE
+#define FF_API_QP_TYPE (LIBPOSTPROC_VERSION_MAJOR < 55)
+#endif
+
#endif /* POSTPROC_POSTPROCESS_VERSION_H */