mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/ocv: make use of AVFILTER_DEFINE_CLASS
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
229d5bfdc8
commit
a1873f35f8
@ -378,18 +378,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
|
||||
#define OFFSET(x) offsetof(OCVContext, x)
|
||||
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
|
||||
static const AVOption options[] = {
|
||||
static const AVOption ocv_options[] = {
|
||||
{ "filter_name", NULL, OFFSET(name), AV_OPT_TYPE_STRING, .flags = FLAGS },
|
||||
{ "filter_params", NULL, OFFSET(params), AV_OPT_TYPE_STRING, .flags = FLAGS },
|
||||
{ NULL },
|
||||
};
|
||||
|
||||
static const AVClass ocv_class = {
|
||||
.class_name = "ocv",
|
||||
.item_name = av_default_item_name,
|
||||
.option = options,
|
||||
.version = LIBAVUTIL_VERSION_INT,
|
||||
};
|
||||
AVFILTER_DEFINE_CLASS(ocv);
|
||||
|
||||
static const AVFilterPad avfilter_vf_ocv_inputs[] = {
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user