Added ASTC Native file format loader 46/56646/7
authorTom Robinson <tom.robinson@samsung.com>
Mon, 11 Jan 2016 16:49:57 +0000 (16:49 +0000)
committerTom Robinson <tom.robinson@samsung.com>
Wed, 13 Jan 2016 15:12:47 +0000 (07:12 -0800)
commitcda14c50fedd579b0fe07247b8efc0b1a91c6d7d
treed28e5389d916671c91dd75f0f5b0b7be6031a091
parent00b277ed0b1c7c871355aaddc5ece4d3cff4a266
Added ASTC Native file format loader

ASTC can be wrapped in a KTX file, but also has its own native file format.
This patch provides support for the native ASTC file format (.astc).

Textures can be generated using tools (Eg. Mali texture compression tool).

Note: ASTC is "OpenGL friendly" in that the textures are pre-flipped vertically.
In DALi there is currently not a differenciation between different texture compression formats in that the data (once the header is extracted) is given to the hardware as-is.
For this reason textures must currently be pre-flipped vertically (before compression) when using the native .astc file format with DALI.

An example .astc file is included as part of the unit tests.

Change-Id: I574961bc184d68d3ec722be3c682ca2a2b7ed0ce
automated-tests/images/fractal-compressed-RGBA_ASTC_4x4_KHR-32x64.astc [new file with mode: 0644]
automated-tests/images/test-image.wbmp [new file with mode: 0644]
automated-tests/src/dali-adaptor-internal/utc-Dali-CompressedTextures.cpp
automated-tests/src/dali-platform-abstraction/utc-image-loading-common.h
platform-abstractions/tizen/file.list
platform-abstractions/tizen/image-loaders/image-loader.cpp
platform-abstractions/tizen/image-loaders/loader-astc.cpp [new file with mode: 0755]
platform-abstractions/tizen/image-loaders/loader-astc.h [new file with mode: 0644]