diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-28 23:01:59 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-29 02:19:20 +0400 |
commit | 2d9d4440519f22c092ac37ccd1a1a914564d00b5 (patch) | |
tree | 8bad56e7faafe0c7d28f9211855f6e4d169c88d9 /libavfilter/vf_super2xsai.c | |
parent | bff576c779476c5325edb2e90828051138416759 (diff) |
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/vf_super2xsai.c')
-rw-r--r-- | libavfilter/vf_super2xsai.c | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/libavfilter/vf_super2xsai.c b/libavfilter/vf_super2xsai.c index f85674c1c5..af4adffa8a 100644 --- a/libavfilter/vf_super2xsai.c +++ b/libavfilter/vf_super2xsai.c @@ -318,25 +318,32 @@ static int end_frame(AVFilterLink *inlink) return ff_end_frame(outlink); } +static const AVFilterPad super2xsai_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .config_props = config_input, + .draw_slice = null_draw_slice, + .end_frame = end_frame, + .min_perms = AV_PERM_READ, + }, + { NULL } +}; + +static const AVFilterPad super2xsai_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .config_props = config_output, + }, + { NULL } +}; + AVFilter avfilter_vf_super2xsai = { .name = "super2xsai", .description = NULL_IF_CONFIG_SMALL("Scale the input by 2x using the Super2xSaI pixel art algorithm."), .priv_size = sizeof(Super2xSaIContext), .query_formats = query_formats, - - .inputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .config_props = config_input, - .draw_slice = null_draw_slice, - .end_frame = end_frame, - .min_perms = AV_PERM_READ }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .config_props = config_output }, - { .name = NULL } - }, + .inputs = super2xsai_inputs, + .outputs = super2xsai_outputs, }; |