Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -60,8 +60,7 @@ static const AVOption options[] = { · 59 unmodified lines | ||
| 60 | 60 | { NULL } |
| 61 | 61 | }; |
| 62 | 62 | |
| 63 | −#define premultiply_options options | |
| 64 | −AVFILTER_DEFINE_CLASS(premultiply); | |
| 63 | +AVFILTER_DEFINE_CLASS_EXT(premultiply, "(un)premultiply", options); | |
| 65 | 64 | |
| 66 | 65 | static int query_formats(AVFilterContext *ctx) |
| 67 | 66 | { |
| @@ -843,12 +842,10 @@ const AVFilter ff_vf_premultiply = { · 775 unmodified lines | ||
| 843 | 842 | |
| 844 | 843 | #if CONFIG_UNPREMULTIPLY_FILTER |
| 845 | 844 | |
| 846 | −#define unpremultiply_options options | |
| 847 | −AVFILTER_DEFINE_CLASS(unpremultiply); | |
| 848 | − | |
| 849 | 845 | const AVFilter ff_vf_unpremultiply = { |
| 850 | 846 | .name = "unpremultiply", |
| 851 | 847 | .description = NULL_IF_CONFIG_SMALL("UnPreMultiply first stream with first plane of second stream."), |
| 848 | + .priv_class = &premultiply_class, | |
| 852 | 849 | .priv_size = sizeof(PreMultiplyContext), |
| 853 | 850 | .init = init, |
| 854 | 851 | .uninit = uninit, |
| @@ -856,7 +853,6 @@ const AVFilter ff_vf_unpremultiply = { · 1 unmodified line | ||
| 856 | 853 | .activate = activate, |
| 857 | 854 | .inputs = NULL, |
| 858 | 855 | FILTER_OUTPUTS(premultiply_outputs), |
| 859 | − .priv_class = &unpremultiply_class, | |
| 860 | 856 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | |
| 861 | 857 | AVFILTER_FLAG_DYNAMIC_INPUTS | |
| 862 | 858 | AVFILTER_FLAG_SLICE_THREADS, |