summaryrefslogtreecommitdiff
path: root/libavfilter/vf_premultiply.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-10 22:59:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-19 04:32:58 +0200
commit56d3e840f612dcf1980cf66cb388ace93c567ae5 (patch)
treefedc67e4e8aa76e3d687408a97f871c6b6d30ab9 /libavfilter/vf_premultiply.c
parent443706d9374cc442bd9e7ccedf560065cbffbd05 (diff)
avfilter/vf_premultiply: Deduplicate AVClasses
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_premultiply.c')
-rw-r--r--libavfilter/vf_premultiply.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libavfilter/vf_premultiply.c b/libavfilter/vf_premultiply.c
index 70a5bf3b11..a76c08405c 100644
--- a/libavfilter/vf_premultiply.c
+++ b/libavfilter/vf_premultiply.c
@@ -60,8 +60,7 @@ static const AVOption options[] = {
{ NULL }
};
-#define premultiply_options options
-AVFILTER_DEFINE_CLASS(premultiply);
+AVFILTER_DEFINE_CLASS_EXT(premultiply, "(un)premultiply", options);
static int query_formats(AVFilterContext *ctx)
{
@@ -843,12 +842,10 @@ const AVFilter ff_vf_premultiply = {
#if CONFIG_UNPREMULTIPLY_FILTER
-#define unpremultiply_options options
-AVFILTER_DEFINE_CLASS(unpremultiply);
-
const AVFilter ff_vf_unpremultiply = {
.name = "unpremultiply",
.description = NULL_IF_CONFIG_SMALL("UnPreMultiply first stream with first plane of second stream."),
+ .priv_class = &premultiply_class,
.priv_size = sizeof(PreMultiplyContext),
.init = init,
.uninit = uninit,
@@ -856,7 +853,6 @@ const AVFilter ff_vf_unpremultiply = {
.activate = activate,
.inputs = NULL,
FILTER_OUTPUTS(premultiply_outputs),
- .priv_class = &unpremultiply_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
AVFILTER_FLAG_DYNAMIC_INPUTS |
AVFILTER_FLAG_SLICE_THREADS,