Add a new alpha handling method, INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 2 Feb 2013 01:35:18 +0000 (02:35 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 2 Feb 2013 01:35:18 +0000 (02:35 +0100)
commit7af4d1b54ba141fdb74cd13ddc6110708855d157
treea17c7fb8b6766e6188d0a1b27ff10f6f9fd454ca
parent572e7aaa57028d7eda4bc445a6249637134a2b02
Add a new alpha handling method, INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK.

This should fix most of the problems where you only process inputs
without alpha, but the framework still inserts an AlphaDivisionEffect
at the end because it loses track of the blank alpha state throughout
the pipeline and the output expects postmultiplied alpha.

There's one important case left, though: MixEffect will always reset
tha alpha state to premultiplied. We should probably fix that too
at some later stage.
13 files changed:
blur_effect.h
deconvolution_sharpen_effect.h
diffusion_effect.h
effect.h
effect_chain.cpp
effect_chain_test.cpp
glow_effect.h
lift_gamma_gain_effect.h
mix_effect.h
overlay_effect.h
padding_effect.cpp
resample_effect.h
resize_effect.h