X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_alphaextract.c;h=35402f656d31d0d57b2f0e1064f42ff623bc28cd;hb=1bb547192f6e9bd28b55f1f11d43bcc216976ac7;hp=102af9d38a1c752619751b9b3510dd19256e8395;hpb=a201639a01284003a055f195f4e850a0cf3fc2d5;p=ffmpeg diff --git a/libavfilter/vf_alphaextract.c b/libavfilter/vf_alphaextract.c index 102af9d38a1..35402f656d3 100644 --- a/libavfilter/vf_alphaextract.c +++ b/libavfilter/vf_alphaextract.c @@ -94,24 +94,31 @@ static int draw_slice(AVFilterLink *inlink, int y0, int h, int slice_dir) return ff_draw_slice(inlink->dst->outputs[0], y0, h, slice_dir); } +static const AVFilterPad alphaextract_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .config_props = config_input, + .draw_slice = draw_slice, + .min_perms = AV_PERM_READ, + }, + { NULL } +}; + +static const AVFilterPad alphaextract_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + }, + { NULL } +}; + AVFilter avfilter_vf_alphaextract = { .name = "alphaextract", .description = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a " "grayscale image component."), .priv_size = sizeof(AlphaExtractContext), .query_formats = query_formats, - - .inputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .config_props = config_input, - .draw_slice = draw_slice, - .min_perms = AV_PERM_READ }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, }, - { .name = NULL } - }, + .inputs = alphaextract_inputs, + .outputs = alphaextract_outputs, };