From 42d621d131a45fb63571ca6029c2fc4f02811c10 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 13 Aug 2012 13:40:01 +0200 Subject: lavfi: add priv class to filter definitions and flags to filter internal options This allows the iteration callbacks to discover the internal class and options, and show them when required. --- libavfilter/vf_hue.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libavfilter/vf_hue.c') diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index 807baf4568..cf1fe5f82a 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -50,13 +50,14 @@ typedef struct { } HueContext; #define OFFSET(x) offsetof(HueContext, x) +#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM static const AVOption hue_options[] = { { "h", "set the hue angle degrees", OFFSET(hue_deg), AV_OPT_TYPE_FLOAT, - { -FLT_MAX }, -FLT_MAX, FLT_MAX, AV_OPT_FLAG_VIDEO_PARAM }, + { -FLT_MAX }, -FLT_MAX, FLT_MAX, FLAGS }, { "H", "set the hue angle radians", OFFSET(hue), AV_OPT_TYPE_FLOAT, - { -FLT_MAX }, -FLT_MAX, FLT_MAX, AV_OPT_FLAG_VIDEO_PARAM }, + { -FLT_MAX }, -FLT_MAX, FLT_MAX, FLAGS }, { "s", "set the saturation value", OFFSET(saturation), AV_OPT_TYPE_FLOAT, - { SAT_DEFAULT_VAL }, -10, 10, AV_OPT_FLAG_VIDEO_PARAM }, + { SAT_DEFAULT_VAL }, -10, 10, FLAGS }, { NULL } }; @@ -248,5 +249,6 @@ AVFilter avfilter_vf_hue = { .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL } - } + }, + .priv_class = &hue_class, }; -- cgit v1.2.3