Adding scale and crop feature to alpha mask 29/139629/3
authorDavid Steele <david.steele@samsung.com>
Tue, 18 Jul 2017 15:26:37 +0000 (16:26 +0100)
committerDavid Steele <david.steele@samsung.com>
Thu, 20 Jul 2017 12:11:43 +0000 (13:11 +0100)
commit5a2fb8ef5db8cfca879878eb4ca8c84871e5b7af
tree428b083ffc3d4e51f6c63a8d9eee24db32202ccf
parent237387295f08c601ddd1b0f44ea5d31bf327b2bf
Adding scale and crop feature to alpha mask

When alpha masking an image, there is a requirement to first
scale the content image by some factor, then crop it to match the
mask size, then apply the mask to it.

Uses Lanczos resampling for reducing an image, or Mitchell resampling for
upscaling an image ( Mitchell has fewer artifacts on my test images ).

Change-Id: I0334baa855a3e1547947f0a81b42f5e6271232ce
Signed-off-by: David Steele <david.steele@samsung.com>
adaptors/common/pixel-buffer-impl.cpp
adaptors/common/pixel-buffer-impl.h
adaptors/devel-api/adaptor-framework/pixel-buffer.cpp
adaptors/devel-api/adaptor-framework/pixel-buffer.h
automated-tests/src/dali-adaptor-internal/CMakeLists.txt
automated-tests/src/dali-adaptor/utc-Dali-PixelBuffer.cpp
automated-tests/src/dali-platform-abstraction/CMakeLists.txt
platform-abstractions/portable/alpha-mask.cpp
platform-abstractions/portable/alpha-mask.h
platform-abstractions/portable/image-operations.cpp
platform-abstractions/portable/image-operations.h