]> git.sesse.net Git - movit/commit
In resizing effects, add the notion of a “virtual output size”.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 1 Feb 2013 00:03:00 +0000 (01:03 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 1 Feb 2013 00:03:00 +0000 (01:03 +0100)
commit2322070a3dbeb6b46b39cca07a0fbf20e95f5468
tree46dfded8b662ef8dd0c3c2fa52543fabfc61fa38
parent682b1da129e2f61109d83463cec344bde7392e9a
In resizing effects, add the notion of a “virtual output size”.

This is the size that the effect wants to be perceived as for the next
effect in the chain, which is useful if you e.g. have a blur and then
padding. Even though the blur might rescale the image down from e.g.
512x512 to 128x128 before blurring (in case of a large blur), and this
size is what actually comes out in the texture at the other end,
it still wants to be treated as a 512x512 image when adding padding.

Reported by Christophe Thommeret.
blur_effect.cpp
blur_effect.h
effect.h
effect_chain.cpp
effect_chain.h
effect_chain_test.cpp
padding_effect.cpp
padding_effect.h
resample_effect.h
resize_effect.cpp
resize_effect.h