lavfi: add alphaextract and alphamerge filters
authorSteven Robertson <steven@strobe.cc>
Wed, 11 Jul 2012 05:14:57 +0000 (22:14 -0700)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 22 Jul 2012 10:17:34 +0000 (12:17 +0200)
commit82ecae8a7069104698d491000b37629cd8d96fd8
tree90de57d08d4e0c14ff9b05f40172b25255a30392
parent8c2ce16f93be0fc1362ab74846b46c9818da14be
lavfi: add alphaextract and alphamerge filters

These filters are designed for storing and transmitting video sequences
with alpha using higher-efficiency codecs such as x264 which don't
natively support an alpha channel. 'alphaextract' takes an input stream
with an alpha channel and returns a video containing just the alpha
component as a grayscale value; 'alphamerge' takes an RGB or YUV stream
and adds an alpha channel recovered from a second grayscale stream.

Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 files changed:
Changelog
doc/filters.texi
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/version.h
libavfilter/vf_alphaextract.c [new file with mode: 0644]
libavfilter/vf_alphamerge.c [new file with mode: 0644]
tests/lavfi-regression.sh
tests/ref/lavfi/alphaextract_rgb [new file with mode: 0644]
tests/ref/lavfi/alphaextract_yuv [new file with mode: 0644]
tests/ref/lavfi/alphamerge_rgb [new file with mode: 0644]
tests/ref/lavfi/alphamerge_yuv [new file with mode: 0644]