summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_libopencv.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-05-27 11:28:17 +0000
committerPaul B Mahol <onemda@gmail.com>2013-05-27 11:31:52 +0000
commita1873f35f83d6a22135d28f2adfd4ced5ae03b08 (patch)
treea3cdb0480c2cf0ce58326cc1bd8f694574b2cfd6 /libavfilter/vf_libopencv.c
parent229d5bfdc8056099cde07d2c0e4cecbcf06604bd (diff)
downloadffmpeg-streaming-a1873f35f83d6a22135d28f2adfd4ced5ae03b08.zip
ffmpeg-streaming-a1873f35f83d6a22135d28f2adfd4ced5ae03b08.tar.gz
lavfi/ocv: make use of AVFILTER_DEFINE_CLASS
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_libopencv.c')
-rw-r--r--libavfilter/vf_libopencv.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index cf51956..fe114b3 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -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[] = {
{
OpenPOWER on IntegriCloud