swresample: Create version.h header

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/6/head
jamal 12 years ago committed by Michael Niedermayer
parent ec87389183
commit b75c3d2b8b
  1. 2
      configure
  2. 3
      libswresample/Makefile
  3. 8
      libswresample/swresample.h
  4. 39
      libswresample/version.h

2
configure vendored

@ -4237,7 +4237,6 @@ fi
} }
get_version_old LIBPOSTPROC libpostproc/version.h get_version_old LIBPOSTPROC libpostproc/version.h
get_version_old LIBSWRESAMPLE libswresample/swresample.h
get_version libavcodec get_version libavcodec
get_version libavdevice get_version libavdevice
@ -4245,6 +4244,7 @@ get_version libavfilter
get_version libavformat get_version libavformat
get_version libavresample get_version libavresample
get_version libavutil get_version libavutil
get_version libswresample
get_version libswscale get_version libswscale
cat > $TMPH <<EOF cat > $TMPH <<EOF

@ -3,7 +3,8 @@ include $(SUBDIR)../config.mak
NAME = swresample NAME = swresample
FFLIBS = avutil FFLIBS = avutil
HEADERS = swresample.h HEADERS = swresample.h \
version.h \
OBJS = audioconvert.o \ OBJS = audioconvert.o \
dither.o \ dither.o \

@ -29,13 +29,7 @@
#include <inttypes.h> #include <inttypes.h>
#include "libavutil/samplefmt.h" #include "libavutil/samplefmt.h"
#define LIBSWRESAMPLE_VERSION_MAJOR 0 #include "libswresample/version.h"
#define LIBSWRESAMPLE_VERSION_MINOR 15
#define LIBSWRESAMPLE_VERSION_MICRO 100
#define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \
LIBSWRESAMPLE_VERSION_MINOR, \
LIBSWRESAMPLE_VERSION_MICRO)
#if LIBSWRESAMPLE_VERSION_MAJOR < 1 #if LIBSWRESAMPLE_VERSION_MAJOR < 1
#define SWR_CH_MAX 32 ///< Maximum number of channels #define SWR_CH_MAX 32 ///< Maximum number of channels

@ -0,0 +1,39 @@
/*
* Version macros.
*
* This file is part of libswresample
*
* libswresample 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.
*
* libswresample 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 libswresample; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef SWR_VERSION_H
#define SWR_VERSION_H
/**
* @file
* Libswresample version macros
*/
#include "libavutil/avutil.h"
#define LIBSWRESAMPLE_VERSION_MAJOR 0
#define LIBSWRESAMPLE_VERSION_MINOR 15
#define LIBSWRESAMPLE_VERSION_MICRO 100
#define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \
LIBSWRESAMPLE_VERSION_MINOR, \
LIBSWRESAMPLE_VERSION_MICRO)
#endif /* SWR_VERSION_H */
Loading…
Cancel
Save