diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-08 19:48:09 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-09 14:53:21 +0000 |
commit | 88e0e2054d911b38662f681bdc267e08312d313a (patch) | |
tree | dc14ee4a2c513bda4a9bc64383b6e8fb19807d9c /libavfilter/vf_extractplanes.c | |
parent | a11593189b264e70830a0c25c289f9db81dc8ee3 (diff) | |
download | ffmpeg-88e0e2054d911b38662f681bdc267e08312d313a.tar.gz |
lavfi: remove alphaextract special code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_extractplanes.c')
-rw-r--r-- | libavfilter/vf_extractplanes.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c index 6000748af9..229e3d5ffa 100644 --- a/libavfilter/vf_extractplanes.c +++ b/libavfilter/vf_extractplanes.c @@ -308,3 +308,28 @@ AVFilter avfilter_vf_extractplanes = { .outputs = NULL, .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS, }; + +#if CONFIG_ALPHAEXTRACT_FILTER + +static int init_alphaextract(AVFilterContext *ctx) +{ + ExtractPlanesContext *e = ctx->priv; + + e->requested_planes = PLANE_A; + + return init(ctx); +} + +AVFilter avfilter_vf_alphaextract = { + .name = "alphaextract", + .description = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a " + "grayscale image component."), + .priv_size = sizeof(ExtractPlanesContext), + .init = init_alphaextract, + .uninit = uninit, + .query_formats = query_formats, + .inputs = extractplanes_inputs, + .outputs = NULL, + .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS, +}; +#endif /* CONFIG_ALPHAEXTRACT_FILTER */ |