lib*/version: Move library version functions into files of their own
This avoids having to rebuild big files every time FFMPEG_VERSION changes (which it does with every commit). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
3417379d5e
commit
f2b79c5b85
26 changed files with 397 additions and 202 deletions
|
|
@ -20,6 +20,7 @@ OBJS = allfilters.o \
|
|||
framequeue.o \
|
||||
graphdump.o \
|
||||
graphparser.o \
|
||||
version.o \
|
||||
video.o \
|
||||
|
||||
OBJS-$(HAVE_THREADS) += pthread.o
|
||||
|
|
|
|||
|
|
@ -29,10 +29,8 @@
|
|||
#include "libavutil/hwcontext.h"
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "libavutil/rational.h"
|
||||
#include "libavutil/samplefmt.h"
|
||||
#include "libavutil/thread.h"
|
||||
|
||||
#define FF_INTERNAL_FIELDS 1
|
||||
#include "framequeue.h"
|
||||
|
|
@ -43,10 +41,6 @@
|
|||
#include "formats.h"
|
||||
#include "framepool.h"
|
||||
#include "internal.h"
|
||||
#include "version.h"
|
||||
|
||||
#include "libavutil/ffversion.h"
|
||||
const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||
|
||||
static void tlog_ref(void *ctx, AVFrame *ref, int end)
|
||||
{
|
||||
|
|
@ -75,23 +69,6 @@ static void tlog_ref(void *ctx, AVFrame *ref, int end)
|
|||
ff_tlog(ctx, "]%s", end ? "\n" : "");
|
||||
}
|
||||
|
||||
unsigned avfilter_version(void)
|
||||
{
|
||||
av_assert0(LIBAVFILTER_VERSION_MICRO >= 100);
|
||||
return LIBAVFILTER_VERSION_INT;
|
||||
}
|
||||
|
||||
const char *avfilter_configuration(void)
|
||||
{
|
||||
return FFMPEG_CONFIGURATION;
|
||||
}
|
||||
|
||||
const char *avfilter_license(void)
|
||||
{
|
||||
#define LICENSE_PREFIX "libavfilter license: "
|
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1];
|
||||
}
|
||||
|
||||
void ff_command_queue_pop(AVFilterContext *filter)
|
||||
{
|
||||
AVFilterCommand *c= filter->command_queue;
|
||||
|
|
|
|||
44
libavfilter/version.c
Normal file
44
libavfilter/version.c
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* Version functions.
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "avfilter.h"
|
||||
#include "version.h"
|
||||
|
||||
#include "libavutil/ffversion.h"
|
||||
const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||
|
||||
unsigned avfilter_version(void)
|
||||
{
|
||||
av_assert0(LIBAVFILTER_VERSION_MICRO >= 100);
|
||||
return LIBAVFILTER_VERSION_INT;
|
||||
}
|
||||
|
||||
const char *avfilter_configuration(void)
|
||||
{
|
||||
return FFMPEG_CONFIGURATION;
|
||||
}
|
||||
|
||||
const char *avfilter_license(void)
|
||||
{
|
||||
#define LICENSE_PREFIX "libavfilter license: "
|
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue