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_hue.c | |
parent | bff576c779476c5325edb2e90828051138416759 (diff) |
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r-- | libavfilter/vf_hue.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index 7e421bd4f7..4e3df6c596 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -396,6 +396,26 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar return AVERROR(ENOSYS); } +static const AVFilterPad hue_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .start_frame = start_frame, + .draw_slice = draw_slice, + .config_props = config_props, + .min_perms = AV_PERM_READ, + }, + { NULL } +}; + +static const AVFilterPad hue_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + }, + { NULL } +}; + AVFilter avfilter_vf_hue = { .name = "hue", .description = NULL_IF_CONFIG_SMALL("Adjust the hue and saturation of the input video."), @@ -406,24 +426,7 @@ AVFilter avfilter_vf_hue = { .uninit = uninit, .query_formats = query_formats, .process_command = process_command, - - .inputs = (const AVFilterPad[]) { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .start_frame = start_frame, - .draw_slice = draw_slice, - .config_props = config_props, - .min_perms = AV_PERM_READ, - }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - }, - { .name = NULL } - }, - .priv_class = &hue_class, + .inputs = hue_inputs, + .outputs = hue_outputs, + .priv_class = &hue_class, }; |