Evas: Add RGB8_ETC2 and RGBA8_ETC2 colorspaces
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 25 Apr 2014 02:18:16 +0000 (11:18 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 25 Apr 2014 07:50:28 +0000 (16:50 +0900)
These are two variants of ETC2 texture compression format.

src/lib/evas/Evas_Loader.h

index 499a916..c3e7fe1 100644 (file)
@@ -162,7 +162,9 @@ typedef enum _Evas_Colorspace
    EVAS_COLORSPACE_YCBCR420NV12601_PL, /**< YCbCr 4:2:0, ITU.BT-601 specification. The data pointed to is just an array of row pointer, pointing to the Y rows, then the Cb,Cr rows. */
    EVAS_COLORSPACE_YCBCR420TM12601_PL, /**< YCbCr 4:2:0, ITU.BT-601 specification. The data pointed to is just an array of tiled row pointer, pointing to the Y rows, then the Cb,Cr rows. */
    EVAS_COLORSPACE_AGRY88, /**< AY 8bits Alpha and 8bits Grey, accessed 1 16bits at a time */
-   EVAS_COLORSPACE_ETC1, /**< OpenGL ETC1 encoding of RGB texture @since 1.10 */
+   EVAS_COLORSPACE_ETC1, /**< OpenGL ETC1 encoding of RGB texture (4 bit per pixel) @since 1.10 */
+   EVAS_COLORSPACE_RGB8_ETC2, /**< OpenGL GL_COMPRESSED_RGB8_ETC2 texture compression format (4 bit per pixel) @since 1.10 */
+   EVAS_COLORSPACE_RGBA8_ETC2_EAC, /**< OpenGL GL_COMPRESSED_RGBA8_ETC2_EAC texture compression format, supports alpha (8 bit per pixel) @since 1.10 */
 } Evas_Colorspace; /**< Colorspaces for pixel data supported by Evas */
 
 struct _Evas_Image_Property