Added ASTC Native file format loader 48/56648/7
authorTom Robinson <tom.robinson@samsung.com>
Mon, 11 Jan 2016 17:11:42 +0000 (17:11 +0000)
committerTom Robinson <tom.robinson@samsung.com>
Thu, 14 Jan 2016 12:12:14 +0000 (12:12 +0000)
commita4afa0989d89c05e833b28c210e59aad5fa084ad
tree980b269b8758c36e15c0e2528a496f4303035d83
parent7223cb68283116d53454b12c0cf15fda306c2172
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: I8604fba28bfb83b0deff8689fd5d7cfb8ac770bb
build/tizen/CMakeLists.txt
examples/compressed-texture-formats/compressed-texture-formats-example.cpp
resources/images/tx-astc-4x4-linear-native.astc [new file with mode: 0644]
resources/images/tx-astc-4x4-linear.ktx
resources/images/tx-astc-4x4-srgb.ktx