Browse Source

libpostproc: Split version.h

Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö 3 years ago
parent
commit
0f8b0b9ce2

+ 1 - 0
fftools/cmdutils.c

@@ -39,6 +39,7 @@
 #include "libswscale/swscale.h"
 #include "libswscale/swscale.h"
 #include "libswresample/swresample.h"
 #include "libswresample/swresample.h"
 #include "libpostproc/postprocess.h"
 #include "libpostproc/postprocess.h"
+#include "libpostproc/version.h"
 #include "libavutil/attributes.h"
 #include "libavutil/attributes.h"
 #include "libavutil/avassert.h"
 #include "libavutil/avassert.h"
 #include "libavutil/avstring.h"
 #include "libavutil/avstring.h"

+ 1 - 0
fftools/ffprobe.c

@@ -57,6 +57,7 @@
 #include "libswscale/swscale.h"
 #include "libswscale/swscale.h"
 #include "libswresample/swresample.h"
 #include "libswresample/swresample.h"
 #include "libpostproc/postprocess.h"
 #include "libpostproc/postprocess.h"
+#include "libpostproc/version.h"
 #include "cmdutils.h"
 #include "cmdutils.h"
 
 
 #include "libavutil/thread.h"
 #include "libavutil/thread.h"

+ 1 - 0
libpostproc/Makefile

@@ -4,6 +4,7 @@ FFLIBS = avutil
 
 
 HEADERS = postprocess.h        \
 HEADERS = postprocess.h        \
           version.h            \
           version.h            \
+          version_major.h      \
 
 
 OBJS = postprocess.o
 OBJS = postprocess.o
 
 

+ 1 - 0
libpostproc/postprocess.c

@@ -89,6 +89,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
 //#define DEBUG_BRIGHTNESS
 //#define DEBUG_BRIGHTNESS
 #include "postprocess.h"
 #include "postprocess.h"
 #include "postprocess_internal.h"
 #include "postprocess_internal.h"
+#include "version.h"
 #include "libavutil/avstring.h"
 #include "libavutil/avstring.h"
 #include "libavutil/ppc/util_altivec.h"
 #include "libavutil/ppc/util_altivec.h"
 
 

+ 1 - 1
libpostproc/postprocess.h

@@ -34,7 +34,7 @@
  * @{
  * @{
  */
  */
 
 
-#include "libpostproc/version.h"
+#include "libpostproc/version_major.h"
 
 
 /**
 /**
  * Return the LIBPOSTPROC_VERSION_INT constant.
  * Return the LIBPOSTPROC_VERSION_INT constant.

+ 2 - 1
libpostproc/version.h

@@ -28,7 +28,8 @@
 
 
 #include "libavutil/version.h"
 #include "libavutil/version.h"
 
 
-#define LIBPOSTPROC_VERSION_MAJOR  56
+#include "version_major.h"
+
 #define LIBPOSTPROC_VERSION_MINOR   4
 #define LIBPOSTPROC_VERSION_MINOR   4
 #define LIBPOSTPROC_VERSION_MICRO 100
 #define LIBPOSTPROC_VERSION_MICRO 100
 
 

+ 31 - 0
libpostproc/version_major.h

@@ -0,0 +1,31 @@
+/*
+ * Version macros.
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef POSTPROC_VERSION_MAJOR_H
+#define POSTPROC_VERSION_MAJOR_H
+
+/**
+ * @file
+ * Libpostproc version macros
+ */
+
+#define LIBPOSTPROC_VERSION_MAJOR  56
+
+#endif /* POSTPROC_VERSION_MAJOR_H */