jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1aa351066603c2f1e97efe862332400d1d171e57

commit 1aa351066603c2f1e97efe862332400d1d171e57
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu May 8 10:48:35 2014 +0900

    Evas rg_etc: Show in the doc that we use BGRA now
---
 src/static_libs/rg_etc/rg_etc1.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/static_libs/rg_etc/rg_etc1.h b/src/static_libs/rg_etc/rg_etc1.h
index 8de77ad..8a96cc5 100644
--- a/src/static_libs/rg_etc/rg_etc1.h
+++ b/src/static_libs/rg_etc/rg_etc1.h
@@ -24,17 +24,18 @@ typedef struct
 {
    rg_etc1_quality m_quality;
    bool m_dithering;
-}rg_etc1_pack_params;
+} rg_etc1_pack_params;
 
-// Important: pack_etc1_block_init() must be called before calling 
pack_etc1_block().
+// pack_etc1_block_init() should be called before calling pack_etc1_block(),
+// Otherwise rg_etc1_pack_block() will call rg_etc1_pack_block_init() for you.
 void rg_etc1_pack_block_init();
 
-// Packs a 4x4 block of 32bpp RGBA pixels to an 8-byte ETC1 block.
-// 32-bit RGBA pixels must always be arranged as (R,G,B,A) (R first, A last) 
in memory, independent of platform endianness. A should always be 255.
+// Packs a 4x4 block of 32bpp BGRA pixels to an 8-byte ETC1 block.
+// 32-bit BGRA pixels must always be arranged as (B,G,R,A) (B first, A last) 
in memory, independent of platform endianness. A should always be 255.
 // Returns squared error of result.
 // This function is thread safe, and does not dynamically allocate any memory.
 // pack_etc1_block() does not currently support "perceptual" colorspace 
metrics - it primarily optimizes for RGB RMSE.
-unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* 
pSrc_pixels_rgba, rg_etc1_pack_params *pack_params);
+unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* 
pSrc_pixels_BGRA, rg_etc1_pack_params *pack_params);
 
 // ETC2 support: RGB8_ETC2
 void rg_etc2_rgb8_decode_block(const uint8_t *etc_block, uint32_t *bgra);

-- 


Reply via email to