mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
libavdevice: Split version.h
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
4eb9232c6e
commit
884c597659
@ -35,6 +35,7 @@
|
|||||||
#include "libavformat/version.h"
|
#include "libavformat/version.h"
|
||||||
#include "libavfilter/avfilter.h"
|
#include "libavfilter/avfilter.h"
|
||||||
#include "libavdevice/avdevice.h"
|
#include "libavdevice/avdevice.h"
|
||||||
|
#include "libavdevice/version.h"
|
||||||
#include "libswscale/swscale.h"
|
#include "libswscale/swscale.h"
|
||||||
#include "libswresample/swresample.h"
|
#include "libswresample/swresample.h"
|
||||||
#include "libpostproc/postprocess.h"
|
#include "libpostproc/postprocess.h"
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
#include "libavutil/timecode.h"
|
#include "libavutil/timecode.h"
|
||||||
#include "libavutil/timestamp.h"
|
#include "libavutil/timestamp.h"
|
||||||
#include "libavdevice/avdevice.h"
|
#include "libavdevice/avdevice.h"
|
||||||
|
#include "libavdevice/version.h"
|
||||||
#include "libswscale/swscale.h"
|
#include "libswscale/swscale.h"
|
||||||
#include "libswresample/swresample.h"
|
#include "libswresample/swresample.h"
|
||||||
#include "libpostproc/postprocess.h"
|
#include "libpostproc/postprocess.h"
|
||||||
|
@ -3,6 +3,7 @@ DESC = FFmpeg device handling library
|
|||||||
|
|
||||||
HEADERS = avdevice.h \
|
HEADERS = avdevice.h \
|
||||||
version.h \
|
version.h \
|
||||||
|
version_major.h \
|
||||||
|
|
||||||
OBJS = alldevices.o \
|
OBJS = alldevices.o \
|
||||||
avdevice.o \
|
avdevice.o \
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "avdevice.h"
|
#include "avdevice.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include "libavutil/ffversion.h"
|
#include "libavutil/ffversion.h"
|
||||||
const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef AVDEVICE_AVDEVICE_H
|
#ifndef AVDEVICE_AVDEVICE_H
|
||||||
#define AVDEVICE_AVDEVICE_H
|
#define AVDEVICE_AVDEVICE_H
|
||||||
|
|
||||||
#include "version.h"
|
#include "version_major.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
|
|
||||||
#include "libavutil/version.h"
|
#include "libavutil/version.h"
|
||||||
|
|
||||||
#define LIBAVDEVICE_VERSION_MAJOR 59
|
#include "version_major.h"
|
||||||
|
|
||||||
#define LIBAVDEVICE_VERSION_MINOR 5
|
#define LIBAVDEVICE_VERSION_MINOR 5
|
||||||
#define LIBAVDEVICE_VERSION_MICRO 100
|
#define LIBAVDEVICE_VERSION_MICRO 100
|
||||||
|
|
||||||
@ -41,11 +42,4 @@
|
|||||||
|
|
||||||
#define LIBAVDEVICE_IDENT "Lavd" AV_STRINGIFY(LIBAVDEVICE_VERSION)
|
#define LIBAVDEVICE_IDENT "Lavd" AV_STRINGIFY(LIBAVDEVICE_VERSION)
|
||||||
|
|
||||||
/**
|
|
||||||
* FF_API_* defines may be placed below to indicate public API that will be
|
|
||||||
* dropped at a future version bump. The defines themselves are not part of
|
|
||||||
* the public API and may change, break or disappear at any time.
|
|
||||||
*/
|
|
||||||
#define FF_API_DEVICE_CAPABILITIES (LIBAVDEVICE_VERSION_MAJOR < 60)
|
|
||||||
|
|
||||||
#endif /* AVDEVICE_VERSION_H */
|
#endif /* AVDEVICE_VERSION_H */
|
||||||
|
37
libavdevice/version_major.h
Normal file
37
libavdevice/version_major.h
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* 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 AVDEVICE_VERSION_MAJOR_H
|
||||||
|
#define AVDEVICE_VERSION_MAJOR_H
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* @ingroup lavd
|
||||||
|
* Libavdevice version macros
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LIBAVDEVICE_VERSION_MAJOR 59
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FF_API_* defines may be placed below to indicate public API that will be
|
||||||
|
* dropped at a future version bump. The defines themselves are not part of
|
||||||
|
* the public API and may change, break or disappear at any time.
|
||||||
|
*/
|
||||||
|
#define FF_API_DEVICE_CAPABILITIES (LIBAVDEVICE_VERSION_MAJOR < 60)
|
||||||
|
|
||||||
|
#endif /* AVDEVICE_VERSION_MAJOR_H */
|
Loading…
Reference in New Issue
Block a user