Fixed ICO loader for all bpp variants + optimisations 54/55054/9
authorTom Robinson <tom.robinson@samsung.com>
Mon, 21 Dec 2015 12:07:14 +0000 (12:07 +0000)
committerTom Robinson <tom.robinson@samsung.com>
Tue, 12 Jan 2016 15:34:33 +0000 (07:34 -0800)
commit00b277ed0b1c7c871355aaddc5ece4d3cff4a266
tree51ead53af62ba92da1efa385c8f33f4350ccbb5e
parentd4c3e36f85ffb2e2aebef5833825b65245dff4e7
Fixed ICO loader for all bpp variants + optimisations

The Icon loader had the following issues:
* 32, 24, 8, 4 bbp variants all had rgb color swap.
* 32 & 24 variants showed corrupt pixels at top of image.
* Alpha could crash 32bpp images.
* Masks incorrect for palettized images.
* Stride width calculated incorrectly for some non-aligned widths.
* Redundant memcopies done.
* Could not handle 1bit masks for images with non multiples of 8 widths.

Change-Id: I03edc70e0af888ba26d5092ab97023f4c8d7b2ae
automated-tests/images/test-image-4x4-1bpp.ico [new file with mode: 0644]
automated-tests/images/test-image-4x4-24bpp.ico [new file with mode: 0644]
automated-tests/images/test-image-4x4-32bpp.ico [new file with mode: 0644]
automated-tests/images/test-image-4x4-4bpp.ico [new file with mode: 0644]
automated-tests/images/test-image-4x4-8bpp.ico [new file with mode: 0644]
automated-tests/src/dali-adaptor-internal/CMakeLists.txt
automated-tests/src/dali-adaptor-internal/image-loaders.cpp
automated-tests/src/dali-adaptor-internal/image-loaders.h
automated-tests/src/dali-adaptor-internal/utc-Dali-IcoLoader.cpp [new file with mode: 0644]
platform-abstractions/tizen/image-loaders/loader-ico.cpp