diff --git a/src/modules/evas/loaders/tgv/evas_image_load_tgv.c b/src/modules/evas/loaders/tgv/evas_image_load_tgv.c index 30d6ceaef1..7216049962 100644 --- a/src/modules/evas/loaders/tgv/evas_image_load_tgv.c +++ b/src/modules/evas/loaders/tgv/evas_image_load_tgv.c @@ -77,9 +77,7 @@ static const Evas_Colorspace cspaces_rgb8_etc2[2] = { static const Evas_Colorspace cspaces_rgba8_etc2_eac[2] = { EVAS_COLORSPACE_RGBA8_ETC2_EAC, -#ifdef HAVE_ETC2_DECODER EVAS_COLORSPACE_ARGB8888 -#endif }; static void * @@ -324,14 +322,6 @@ evas_image_load_file_data_tgv(void *loader_data, // Offset to take duplicated pixels into account master.x += 1; master.y += 1; -#ifndef HAVE_ETC2_DECODER - if (loader->cspace == EVAS_COLORSPACE_RGBA8_ETC2_EAC) - { - fprintf(stderr, "Requested ETC2 to RGBA conversion but there is no decoder\n"); - *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; - goto on_error; - } -#endif break; default: abort(); } @@ -410,14 +400,9 @@ evas_image_load_file_data_tgv(void *loader_data, case EVAS_COLORSPACE_RGB8_ETC2: rg_etc2_rgb8_decode_block((uint8_t *) it, temporary); break; -#ifdef HAVE_ETC2_DECODER - case EVAS_COLORSPACE_RGB8_ETC2: - etc2_rgb8_decode_block((uint8_t *) it, (uint8_t *) temporary, 16, 4, 4); - break; case EVAS_COLORSPACE_RGBA8_ETC2_EAC: - etc2_rgba8_decode_block((uint8_t *) it, (uint8_t *) temporary, 16, 4, 4); + rg_etc2_rgba8_decode_block((uint8_t *) it, temporary); break; -#endif default: abort(); } diff --git a/src/static_libs/rg_etc/rg_etc1.h b/src/static_libs/rg_etc/rg_etc1.h index 43a86aa3b0..8de77add5e 100644 --- a/src/static_libs/rg_etc/rg_etc1.h +++ b/src/static_libs/rg_etc/rg_etc1.h @@ -40,7 +40,7 @@ unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* pSrc_pixe void rg_etc2_rgb8_decode_block(const uint8_t *etc_block, uint32_t *bgra); // ETC2 support: RGBA8_ETC2_EAC -//void rg_etc2_rgba8_decode_block(const uint8_t *etc_block, uint32_t *bgra); +void rg_etc2_rgba8_decode_block(const uint8_t *etc_block, uint32_t *bgra); //------------------------------------------------------------------------------ //