summaryrefslogtreecommitdiff
path: root/src/static_libs/rg_etc/rg_etc1.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-05-27 15:02:23 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-06-10 14:58:27 +0900
commit6fc4c1da749f66286ddb51a3c0c08c8154be246f (patch)
tree0268b6da621d75eae661e0f7613469cae02e06bf /src/static_libs/rg_etc/rg_etc1.h
parent188ffd412ce3ea184b220956d460a3e2a949cb6b (diff)
Evas ETC2: Add ETC2 encoder skeletton
Implement Alpha encoding, brute force way, but doesn't scan all possibilities either (only based on average alpha). RGB encoding is still entirely left to the rg-etc1 encoder. T, H and Planar mode will come in the next commits. @feature: Implement an ETC2 encoder from scratch for RGB8 and RGBA8
Diffstat (limited to 'src/static_libs/rg_etc/rg_etc1.h')
-rw-r--r--src/static_libs/rg_etc/rg_etc1.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/static_libs/rg_etc/rg_etc1.h b/src/static_libs/rg_etc/rg_etc1.h
index 275b0dbb3d..6f4b94449b 100644
--- a/src/static_libs/rg_etc/rg_etc1.h
+++ b/src/static_libs/rg_etc/rg_etc1.h
@@ -37,6 +37,12 @@ void rg_etc1_pack_block_init();
37// pack_etc1_block() does not currently support "perceptual" colorspace metrics - it primarily optimizes for RGB RMSE. 37// pack_etc1_block() does not currently support "perceptual" colorspace metrics - it primarily optimizes for RGB RMSE.
38unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* pSrc_pixels_BGRA, rg_etc1_pack_params *pack_params); 38unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* pSrc_pixels_BGRA, rg_etc1_pack_params *pack_params);
39 39
40// Pack a 4x4 block of 32bpp BGRA pixels to a 16-byte RGBA8_ETC2_EAC block (supports alpha).
41unsigned int etc2_rgba8_block_pack(unsigned char *etc2, const unsigned int *bgra, rg_etc1_pack_params *params);
42
43// Pack a 4x4 block of 32bpp BGRA pixels to a 8-byte RGB8_ETC2 block (opaque).
44unsigned int etc2_rgb8_block_pack(unsigned char *etc2, const unsigned int *bgra, rg_etc1_pack_params *params);
45
40// ETC2 support: RGB8_ETC2 46// ETC2 support: RGB8_ETC2
41void rg_etc2_rgb8_decode_block(const unsigned char *etc_block, unsigned int *bgra); 47void rg_etc2_rgb8_decode_block(const unsigned char *etc_block, unsigned int *bgra);
42 48