Commit a1873f35 authored by Paul B Mahol's avatar Paul B Mahol

lavfi/ocv: make use of AVFILTER_DEFINE_CLASS

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 229d5bfd
...@@ -378,18 +378,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -378,18 +378,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
#define OFFSET(x) offsetof(OCVContext, x) #define OFFSET(x) offsetof(OCVContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM #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_name", NULL, OFFSET(name), AV_OPT_TYPE_STRING, .flags = FLAGS },
{ "filter_params", NULL, OFFSET(params), AV_OPT_TYPE_STRING, .flags = FLAGS }, { "filter_params", NULL, OFFSET(params), AV_OPT_TYPE_STRING, .flags = FLAGS },
{ NULL }, { NULL },
}; };
static const AVClass ocv_class = { AVFILTER_DEFINE_CLASS(ocv);
.class_name = "ocv",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
static const AVFilterPad avfilter_vf_ocv_inputs[] = { static const AVFilterPad avfilter_vf_ocv_inputs[] = {
{ {
......
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