#include "basisu_gpu_texture.h"
#include "basisu_enc.h"
#include "basisu_pvrtc1_4.h"
#if BASISU_USE_ASTC_DECOMPRESS
#include "basisu_astc_decomp.h"
#endif
#include "basisu_bc7enc.h"
namespace basisu
{
void unpack_etc2_eac(const void *pBlock_bits, color_rgba *pPixels)
{ … }
struct bc1_block
{ … };
bool unpack_bc1(const void *pBlock_bits, color_rgba *pPixels, bool set_alpha)
{ … }
bool unpack_bc1_nv(const void *pBlock_bits, color_rgba *pPixels, bool set_alpha)
{ … }
static inline int interp_5_6_amd(int c0, int c1) { … }
static inline int interp_half_5_6_amd(int c0, int c1) { … }
bool unpack_bc1_amd(const void *pBlock_bits, color_rgba *pPixels, bool set_alpha)
{ … }
struct bc4_block
{ … };
void unpack_bc4(const void *pBlock_bits, uint8_t *pPixels, uint32_t stride)
{ … }
bool unpack_bc3(const void *pBlock_bits, color_rgba *pPixels)
{ … }
void unpack_bc5(const void *pBlock_bits, color_rgba *pPixels)
{ … }
void unpack_atc(const void* pBlock_bits, color_rgba* pPixels)
{ … }
static inline uint32_t bc7_dequant(uint32_t val, uint32_t pbit, uint32_t val_bits) { … }
static inline uint32_t bc7_dequant(uint32_t val, uint32_t val_bits) { … }
static inline uint32_t bc7_interp2(uint32_t l, uint32_t h, uint32_t w) { … }
static inline uint32_t bc7_interp3(uint32_t l, uint32_t h, uint32_t w) { … }
static inline uint32_t bc7_interp4(uint32_t l, uint32_t h, uint32_t w) { … }
static inline uint32_t bc7_interp(uint32_t l, uint32_t h, uint32_t w, uint32_t bits)
{ … }
bool unpack_bc7_mode0_2(uint32_t mode, const void* pBlock_bits, color_rgba* pPixels)
{ … }
bool unpack_bc7_mode1_3_7(uint32_t mode, const void* pBlock_bits, color_rgba* pPixels)
{ … }
bool unpack_bc7_mode4_5(uint32_t mode, const void* pBlock_bits, color_rgba* pPixels)
{ … }
struct bc7_mode_6
{ … };
bool unpack_bc7_mode6(const void *pBlock_bits, color_rgba *pPixels)
{ … }
bool unpack_bc7(const void *pBlock, color_rgba *pPixels)
{ … }
struct fxt1_block
{ … };
static color_rgba expand_565(const color_rgba& c)
{ … }
bool unpack_fxt1(const void *p, color_rgba *pPixels)
{ … }
struct pvrtc2_block
{ … };
static color_rgba convert_rgb_555_to_888(const color_rgba& col)
{ … }
static color_rgba convert_rgba_5554_to_8888(const color_rgba& col)
{ … }
bool unpack_pvrtc2(const void *p, color_rgba *pPixels)
{ … }
struct etc2_eac_r11
{ … };
struct etc2_eac_rg11
{ … };
void unpack_etc2_eac_r(const void *p, color_rgba* pPixels, uint32_t c)
{ … }
void unpack_etc2_eac_rg(const void* p, color_rgba* pPixels)
{ … }
void unpack_uastc(const void* p, color_rgba* pPixels)
{ … }
bool unpack_block(texture_format fmt, const void* pBlock, color_rgba* pPixels)
{ … }
bool gpu_image::unpack(image& img) const
{ … }
static const uint8_t g_ktx_file_id[12] = …;
enum
{ … };
struct ktx_header
{ … };
bool create_ktx_texture_file(uint8_vec &ktx_data, const basisu::vector<gpu_image_vec>& gpu_images, bool cubemap_flag)
{ … }
bool write_compressed_texture_file(const char* pFilename, const basisu::vector<gpu_image_vec>& g, bool cubemap_flag)
{ … }
bool write_compressed_texture_file(const char* pFilename, const gpu_image& g)
{ … }
struct out_file_header
{ … };
bool write_3dfx_out_file(const char* pFilename, const gpu_image& gi)
{ … }
}