Commit d69a4177 authored by Anton Khirnov's avatar Anton Khirnov Committed by Michael Niedermayer

lavfi: remove now unused args parameter from AVFilter.init

Conflicts:

	libavfilter/avfilter.c
	libavfilter/vf_drawtext.c
	libavfilter/vf_lut.c
	libavfilter/vf_select.c
	libavfilter/vf_setpts.c
	libavfilter/vsrc_color.c
	libavfilter/vsrc_movie.c
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 491d261a
......@@ -90,7 +90,7 @@ static int get_sample_rate(const char *samplerate)
return FFMAX(ret, 0);
}
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
AFormatContext *s = ctx->priv;
......
......@@ -483,7 +483,7 @@ fail:
return ret;
}
static int init(AVFilterContext *ctx, const char *args)
static int init(AVFilterContext *ctx)
{
MixContext *s = ctx->priv;
int i;
......
......@@ -60,7 +60,7 @@ static const AVOption asyncts_options[] = {
AVFILTER_DEFINE_CLASS(asyncts);
static int init(AVFilterContext *ctx, const char *args)
static int init(AVFilterContext *ctx)
{
ASyncContext *s = ctx->priv;
......
......@@ -120,7 +120,7 @@ static int get_channel(char **map, uint64_t *ch, char delim)
return 0;
}
static av_cold int channelmap_init(AVFilterContext *ctx, const char *args)
static av_cold int channelmap_init(AVFilterContext *ctx)
{
ChannelMapContext *s = ctx->priv;
int ret = 0;
......
......@@ -49,7 +49,7 @@ static const AVOption channelsplit_options[] = {
AVFILTER_DEFINE_CLASS(channelsplit);
static int init(AVFilterContext *ctx, const char *arg)
static int init(AVFilterContext *ctx)
{
ChannelSplitContext *s = ctx->priv;
int nb_channels;
......
......@@ -187,7 +187,7 @@ static int parse_maps(AVFilterContext *ctx)
return 0;
}
static int join_init(AVFilterContext *ctx, const char *args)
static int join_init(AVFilterContext *ctx)
{
JoinContext *s = ctx->priv;
int ret, i;
......
......@@ -56,7 +56,7 @@ static const AVOption volume_options[] = {
AVFILTER_DEFINE_CLASS(volume);
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
VolumeContext *vol = ctx->priv;
......
......@@ -838,9 +838,9 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
}
if (filter->filter->init_opaque)
ret = filter->filter->init_opaque(filter, args, opaque);
ret = filter->filter->init_opaque(filter, opaque);
else if (filter->filter->init)
ret = filter->filter->init(filter, args);
ret = filter->filter->init(filter);
else if (filter->filter->init_dict)
ret = filter->filter->init_dict(filter, &options);
if (ret < 0)
......
......@@ -441,10 +441,10 @@ typedef struct AVFilter {
*/
/**
* Filter initialization function. Args contains the user-supplied
* parameters. FIXME: maybe an AVOption-based system would be better?
* Filter initialization function. Called when all the options have been
* set.
*/
int (*init)(AVFilterContext *ctx, const char *args);
int (*init)(AVFilterContext *ctx);
/**
* Should be set instead of init by the filters that want to pass a
......
......@@ -289,7 +289,7 @@ int av_buffersrc_buffer(AVFilterContext *ctx, AVFilterBufferRef *buf)
}
#endif
static av_cold int init_video(AVFilterContext *ctx, const char *args)
static av_cold int init_video(AVFilterContext *ctx)
{
BufferSourceContext *c = ctx->priv;
......@@ -352,7 +352,7 @@ static const AVOption abuffer_options[] = {
AVFILTER_DEFINE_CLASS(abuffer);
static av_cold int init_audio(AVFilterContext *ctx, const char *args)
static av_cold int init_audio(AVFilterContext *ctx)
{
BufferSourceContext *s = ctx->priv;
int ret = 0;
......
......@@ -51,7 +51,7 @@ typedef struct {
int allocated_samples; ///< number of samples out was allocated for
} FifoContext;
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
FifoContext *fifo = ctx->priv;
fifo->last = &fifo->root;
......
......@@ -39,7 +39,7 @@ typedef struct SplitContext {
int nb_outputs;
} SplitContext;
static int split_init(AVFilterContext *ctx, const char *args)
static int split_init(AVFilterContext *ctx)
{
SplitContext *s = ctx->priv;
int i;
......
......@@ -45,7 +45,7 @@ typedef struct {
} AspectContext;
#if FF_API_OLD_FILTER_OPTS
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
AspectContext *s = ctx->priv;
......
......@@ -78,7 +78,7 @@ typedef struct {
#define V 2
#define A 3
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
BoxBlurContext *boxblur = ctx->priv;
......
......@@ -84,7 +84,7 @@ static int checkline(void *ctx, const unsigned char *src, int stride, int len, i
return total;
}
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
CropDetectContext *cd = ctx->priv;
......
......@@ -168,7 +168,7 @@ static int query_formats(AVFilterContext *ctx)
return 0;
}
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
DelogoContext *delogo = ctx->priv;
......
......@@ -45,7 +45,7 @@ typedef struct {
int vsub, hsub; ///< chroma subsampling
} DrawBoxContext;
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
DrawBoxContext *drawbox = ctx->priv;
uint8_t rgba_color[4];
......
......@@ -416,7 +416,7 @@ static int load_textfile(AVFilterContext *ctx)
return 0;
}
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
int err;
DrawTextContext *dtext = ctx->priv;
......
......@@ -63,7 +63,7 @@ typedef struct {
} FadeContext;
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
FadeContext *fade = ctx->priv;
......
......@@ -48,7 +48,7 @@ typedef struct {
#define AV_PIX_FMT_NAME_MAXSIZE 32
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
FormatContext *format = ctx->priv;
const char *cur, *sep;
......
......@@ -70,7 +70,7 @@ static const AVOption fps_options[] = {
AVFILTER_DEFINE_CLASS(fps);
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
FPSContext *s = ctx->priv;
......
......@@ -328,7 +328,7 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
return 0;
}
static av_cold int filter_init(AVFilterContext *ctx, const char *args)
static av_cold int filter_init(AVFilterContext *ctx)
{
Frei0rContext *frei0r = ctx->priv;
......@@ -454,7 +454,7 @@ AVFilter avfilter_vf_frei0r = {
.outputs = avfilter_vf_frei0r_outputs,
};
static av_cold int source_init(AVFilterContext *ctx, const char *args)
static av_cold int source_init(AVFilterContext *ctx)
{
Frei0rContext *frei0r = ctx->priv;
AVRational frame_rate_q;
......
......@@ -121,7 +121,7 @@ static void filter(GradFunContext *ctx, uint8_t *dst, const uint8_t *src, int wi
}
}
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
GradFunContext *gf = ctx->priv;
......
......@@ -181,7 +181,7 @@ static int16_t *precalc_coefs(double dist25, int depth)
#define PARAM2_DEFAULT 3.0
#define PARAM3_DEFAULT 6.0
static int init(AVFilterContext *ctx, const char *args)
static int init(AVFilterContext *ctx)
{
HQDN3DContext *hqdn3d = ctx->priv;
......
......@@ -317,7 +317,7 @@ static OCVFilterEntry ocv_filter_entries[] = {
{ "smooth", sizeof(SmoothContext), smooth_init, NULL, smooth_end_frame_filter },
};
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
OCVContext *ocv = ctx->priv;
int i;
......
......@@ -354,7 +354,7 @@ static const AVFilterPad outputs[] = {
#define lut_options options
AVFILTER_DEFINE_CLASS(lut);
static int lut_init(AVFilterContext *ctx, const char *args)
static int lut_init(AVFilterContext *ctx)
{
return 0;
}
......@@ -367,7 +367,7 @@ DEFINE_LUT_FILTER(lut, "Compute and apply a lookup table to the RGB/YUV input vi
#define lutyuv_options options
AVFILTER_DEFINE_CLASS(lutyuv);
static int lutyuv_init(AVFilterContext *ctx, const char *args)
static int lutyuv_init(AVFilterContext *ctx)
{
LutContext *lut = ctx->priv;
......@@ -384,7 +384,7 @@ DEFINE_LUT_FILTER(lutyuv, "Compute and apply a lookup table to the YUV input vid
#define lutrgb_options options
AVFILTER_DEFINE_CLASS(lutrgb);
static int lutrgb_init(AVFilterContext *ctx, const char *args)
static int lutrgb_init(AVFilterContext *ctx)
{
LutContext *lut = ctx->priv;
......@@ -405,7 +405,7 @@ static const AVOption negate_options[] = {
AVFILTER_DEFINE_CLASS(negate);
static int negate_init(AVFilterContext *ctx, const char *args)
static int negate_init(AVFilterContext *ctx)
{
LutContext *lut = ctx->priv;
int i;
......@@ -421,7 +421,7 @@ static int negate_init(AVFilterContext *ctx, const char *args)
}
}
return lut_init(ctx, NULL);
return lut_init(ctx);
}
DEFINE_LUT_FILTER(negate, "Negate input video.");
......
......@@ -94,7 +94,7 @@ typedef struct {
FFDrawColor color;
} PadContext;
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
PadContext *pad = ctx->priv;
......
......@@ -92,7 +92,7 @@ typedef struct {
char *flags_str;
} ScaleContext;
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
ScaleContext *scale = ctx->priv;
int ret;
......
......@@ -143,7 +143,7 @@ static void set_filter_param(FilterParam *fp, int msize_x, int msize_y, float am
fp->halfscale = 1 << (fp->scalebits - 1);
}
static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold int init(AVFilterContext *ctx)
{
UnsharpContext *unsharp = ctx->priv;
......
......@@ -500,7 +500,7 @@ static void test_fill_picture(AVFilterContext *ctx, AVFrame *frame)
}
}
static av_cold int test_init(AVFilterContext *ctx, const char *args)
static av_cold int test_init(AVFilterContext *ctx)
{
TestSourceContext *test = ctx->priv;
......@@ -604,7 +604,7 @@ static void rgbtest_fill_picture(AVFilterContext *ctx, AVFrame *frame)
}
}
static av_cold int rgbtest_init(AVFilterContext *ctx, const char *args)
static av_cold int rgbtest_init(AVFilterContext *ctx)
{
TestSourceContext *test = ctx->priv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment