summaryrefslogtreecommitdiff
authorClément Bœsch <ubitux@gmail.com>2012-12-24 05:08:07 (GMT)
committer Clément Bœsch <ubitux@gmail.com>2012-12-30 01:27:52 (GMT)
commit518239cd6126e92818f62aae1b9fe102419a6c43 (patch)
tree1e78169308fdc492cbc11949643fbb3b66f0555b
parentc77eb4ee9025a01ce6b8276eed8e32f21fc74ccc (diff)
downloadffmpeg-518239cd6126e92818f62aae1b9fe102419a6c43.zip
ffmpeg-518239cd6126e92818f62aae1b9fe102419a6c43.tar.gz
ffmpeg-518239cd6126e92818f62aae1b9fe102419a6c43.tar.bz2
build: postproc cleanup.
This reverts 79f80f5c, moves postproc along with the other libraries, and fix the postproc dependency to libavutil.
Diffstat
-rwxr-xr-xconfigure48
-rw-r--r--libpostproc/postprocess.c4
-rw-r--r--libpostproc/version.h2
3 files changed, 2 insertions, 52 deletions
diff --git a/configure b/configure
index fddb3f1..ea36a54 100755
--- a/configure
+++ b/configure
@@ -308,8 +308,6 @@ Optimization options (experts only):
--disable-mipsdspr2 disable MIPS DSP ASE R2 optimizations
--disable-mipsfpu disable floating point MIPS optimizations
--disable-fast-unaligned consider unaligned accesses slow
- --postproc-version=V build libpostproc version V.
- Where V can be '$ALT_PP_VER_MAJOR.$ALT_PP_VER_MINOR.$ALT_PP_VER_MICRO' or 'current'. [$postproc_version_default]
Developer options (useful when working on FFmpeg itself):
--enable-coverage build with test coverage instrumentation
@@ -1118,6 +1116,7 @@ LIBRARY_LIST="
avformat
avresample
avutil
+ postproc
swresample
swscale
"
@@ -1199,7 +1198,6 @@ CONFIG_LIST="
openal
openssl
pic
- postproc
rdft
runtime_cpudetect
safe_bitstream_reader
@@ -1542,7 +1540,6 @@ CMDLINE_SET="
nm
optflags
pkg_config
- postproc_version
progs_suffix
random_seed
samples
@@ -2015,7 +2012,7 @@ avdevice_deps="avutil avcodec avformat"
avfilter_deps="avutil"
avformat_deps="avutil avcodec"
avresample_deps="avutil"
-postproc_deps="gpl"
+postproc_deps="avutil gpl"
swscale_deps="avutil"
# programs
@@ -2047,7 +2044,6 @@ incdir_default='${prefix}/include'
libdir_default='${prefix}/lib'
mandir_default='${prefix}/share/man'
shlibdir_default="$libdir_default"
-postproc_version_default="current"
# toolchain
ar_default="ar"
@@ -2074,17 +2070,10 @@ cpu="generic"
target_os_default=$(tolower $(uname -s))
host_os=$target_os_default
-# alternative libpostproc version
-ALT_PP_VER_MAJOR=51
-ALT_PP_VER_MINOR=2
-ALT_PP_VER_MICRO=101
-ALT_PP_VER=$ALT_PP_VER_MAJOR.$ALT_PP_VER_MINOR.$ALT_PP_VER_MICRO
-
# configurable options
enable $PROGRAM_LIST
enable $DOCUMENT_LIST
enable $(filter_out avresample $LIBRARY_LIST)
-enable postproc
enable stripping
enable asm
@@ -2325,18 +2314,6 @@ if enabled cross_compile; then
die "Must specify target arch and OS when cross-compiling"
fi
-set_default postproc_version
-
-# Check if we should build alternative libpostproc version instead of current
-if test "$postproc_version" = $ALT_PP_VER; then
- LIBPOSTPROC_VERSION=$ALT_PP_VER
- LIBPOSTPROC_VERSION_MAJOR=$ALT_PP_VER_MAJOR
- LIBPOSTPROC_VERSION_MINOR=$ALT_PP_VER_MINOR
- LIBPOSTPROC_VERSION_MICRO=$ALT_PP_VER_MICRO
-elif test "$postproc_version" != current; then
- die "Invalid argument to --postproc-version. See --help output."
-fi
-
ar_default="${cross_prefix}${ar_default}"
cc_default="${cross_prefix}${cc_default}"
cxx_default="${cross_prefix}${cxx_default}"
@@ -4452,21 +4429,6 @@ get_version(){
eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
}
-get_version_old(){
- name=$1
- file=$source_path/$2
-# This condition will be removed when we stop supporting old libpostproc versions
-if ! test "$name" = LIBPOSTPROC || test "$postproc_version" = current; then
- eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }')
- eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO
-fi
- lcname=$(tolower $name)
- eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak
- eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
-}
-
-get_version_old LIBPOSTPROC libpostproc/version.h
-
map 'get_version $v' $LIBRARY_LIST
cat > $TMPH <<EOF
@@ -4517,12 +4479,6 @@ cat > $TMPH <<EOF
#define AVUTIL_AVCONFIG_H
EOF
-test "$postproc_version" != current && cat >> $TMPH <<EOF
-#define LIBPOSTPROC_VERSION_MAJOR $LIBPOSTPROC_VERSION_MAJOR
-#define LIBPOSTPROC_VERSION_MINOR $LIBPOSTPROC_VERSION_MINOR
-#define LIBPOSTPROC_VERSION_MICRO $LIBPOSTPROC_VERSION_MICRO
-EOF
-
print_config AV_HAVE_ $TMPH $HAVE_LIST_PUB
echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index 4b5503c..facfd2c 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -617,11 +617,7 @@ static inline void postProcess(const uint8_t src[], int srcStride, uint8_t dst[]
/* -pp Command line Help
*/
-#if LIBPOSTPROC_VERSION_INT < (52<<16)
-const char *const pp_help=
-#else
const char pp_help[] =
-#endif
"Available postprocessing filters:\n"
"Filters Options\n"
"short long name short long option Description\n"
diff --git a/libpostproc/version.h b/libpostproc/version.h
index 35e1772..d0d3d43 100644
--- a/libpostproc/version.h
+++ b/libpostproc/version.h
@@ -28,11 +28,9 @@
#include "libavutil/avutil.h"
-#ifndef LIBPOSTPROC_VERSION_MAJOR
#define LIBPOSTPROC_VERSION_MAJOR 52
#define LIBPOSTPROC_VERSION_MINOR 2
#define LIBPOSTPROC_VERSION_MICRO 100
-#endif
#define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \
LIBPOSTPROC_VERSION_MINOR, \