History

avfilter/vf_premultiply: Deduplicate AVClasses

Andreas Rheinhardt committed 5 years ago

Commit 56d3e841 parent 443706d1 file · +2 −6Browse files

Unified · Split

libavfilter/vf_premultiply.c+2−6
@@ -60,8 +60,7 @@ static const AVOption options[] = { · 59 unmodified lines
6060 { NULL }
6161 };
6262
63−#define premultiply_options options
64−AVFILTER_DEFINE_CLASS(premultiply);
63+AVFILTER_DEFINE_CLASS_EXT(premultiply, "(un)premultiply", options);
6564
6665 static int query_formats(AVFilterContext *ctx)
6766 {
@@ -843,12 +842,10 @@ const AVFilter ff_vf_premultiply = { · 775 unmodified lines
843842
844843 #if CONFIG_UNPREMULTIPLY_FILTER
845844
846−#define unpremultiply_options options
847−AVFILTER_DEFINE_CLASS(unpremultiply);
848−
849845 const AVFilter ff_vf_unpremultiply = {
850846 .name = "unpremultiply",
851847 .description = NULL_IF_CONFIG_SMALL("UnPreMultiply first stream with first plane of second stream."),
848+ .priv_class = &premultiply_class,
852849 .priv_size = sizeof(PreMultiplyContext),
853850 .init = init,
854851 .uninit = uninit,
@@ -856,7 +853,6 @@ const AVFilter ff_vf_unpremultiply = { · 1 unmodified line
856853 .activate = activate,
857854 .inputs = NULL,
858855 FILTER_OUTPUTS(premultiply_outputs),
859− .priv_class = &unpremultiply_class,
860856 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
861857 AVFILTER_FLAG_DYNAMIC_INPUTS |
862858 AVFILTER_FLAG_SLICE_THREADS,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t