#include "libavutil/parseutils.h"
#include "libavutil/random_seed.h"
#include "avfilter.h"
+#include "internal.h"
#include "formats.h"
#include "video.h"
{ NULL },
};
-static const AVClass cellauto_class = {
- .class_name = "cellauto",
- .item_name = av_default_item_name,
- .option = cellauto_options,
- .version = LIBAVUTIL_VERSION_INT,
- .category = AV_CLASS_CATEGORY_FILTER,
-};
+AVFILTER_DEFINE_CLASS(cellauto);
#ifdef DEBUG
static void show_cellauto_row(AVFilterContext *ctx)
return init_pattern_from_string(ctx);
}
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static int init(AVFilterContext *ctx, const char *args)
{
CellAutoContext *cellauto = ctx->priv;
AVRational frame_rate;
}
}
- av_log(ctx, AV_LOG_INFO,
+ av_log(ctx, AV_LOG_VERBOSE,
"s:%dx%d r:%d/%d rule:%d stitch:%d scroll:%d full:%d seed:%u\n",
cellauto->w, cellauto->h, frame_rate.num, frame_rate.den,
cellauto->rule, cellauto->stitch, cellauto->scroll, cellauto->start_full,