Implemented basic CPU image masking 35/132535/7
authorDavid Steele <david.steele@samsung.com>
Tue, 6 Jun 2017 09:18:36 +0000 (10:18 +0100)
committerDavid Steele <david.steele@samsung.com>
Fri, 9 Jun 2017 10:52:44 +0000 (11:52 +0100)
commit5bf461c739a17c68772a91d39cf264cdd70beec2
tree20db3d9caa9a9f553490f18222de1ae636986a62
parente2ee93d144c63abb914c086281d09c40b213919f
Implemented basic CPU image masking

Given a PixelData containing an image and a PixelData to use as a mask,
this will apply the alpha channel of the mask to the image; either
multiplying into the image's alpha channel, or if it doesn't have one,
converting the image to RGBA888 and applying the mask's alpha channel.

If the mask is a different size than the image, then this will sample a
single pixel from a smaller mask, or use bilinear filtering to sample
from a larger mask.

Change-Id: I48b5d332627a4fb85899883868d278bcbc2b9c8e
12 files changed:
automated-tests/src/dali-internal/CMakeLists.txt
automated-tests/src/dali-internal/utc-Dali-Internal-PixelData.cpp [new file with mode: 0644]
automated-tests/src/dali/dali-test-suite-utils/test-compare-types.h
automated-tests/src/dali/utc-Dali-PixelData.cpp
dali/devel-api/file.list
dali/devel-api/images/pixel-data-mask.cpp [new file with mode: 0644]
dali/devel-api/images/pixel-data-mask.h [new file with mode: 0644]
dali/internal/event/images/pixel-data-impl.cpp
dali/internal/event/images/pixel-data-impl.h
dali/internal/event/images/pixel-manipulation.cpp [new file with mode: 0644]
dali/internal/event/images/pixel-manipulation.h [new file with mode: 0644]
dali/internal/file.list