#include "basisu_gpu_texture.h"
#include "basisu_enc.h"
#include "basisu_pvrtc1_4.h"
#include "3rdparty/android_astc_decomp.h"
#include "basisu_bc7enc.h"
#include "../transcoder/basisu_astc_hdr_core.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)
{ … }
static inline int bc6h_sign_extend(int val, int bits)
{ … }
static inline int bc6h_apply_delta(int base, int delta, int num_bits, int is_signed)
{ … }
static int bc6h_dequantize(int val, int bits, int is_signed)
{ … }
static inline int bc6h_interpolate(int a, int b, const uint8_t* pWeights, int index)
{ … }
static inline basist::half_float bc6h_convert_to_half(int val, int is_signed)
{ … }
static inline uint32_t bc6h_get_bits(uint32_t num_bits, uint64_t& l, uint64_t& h, uint32_t& total_bits)
{ … }
static inline uint32_t bc6h_reverse_bits(uint32_t v, uint32_t num_bits)
{ … }
static inline uint64_t bc6h_read_le_qword(const void* p)
{ … }
bool unpack_bc6h(const void* pSrc_block, void* pDst_block, bool is_signed, uint32_t dest_pitch_in_halfs)
{ … }
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 unpack_block_hdr(texture_format fmt, const void* pBlock, vec4F* pPixels)
{ … }
bool gpu_image::unpack(image& img) const
{ … }
bool gpu_image::unpack_hdr(imagef& 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 does_dds_support_format(texture_format fmt)
{ … }
bool write_dds_file(uint8_vec &dds_data, const basisu::vector<gpu_image_vec>& gpu_images, bool cubemap_flag, bool use_srgb_format)
{ … }
bool write_dds_file(const char* pFilename, const basisu::vector<gpu_image_vec>& gpu_images, bool cubemap_flag, bool use_srgb_format)
{ … }
bool read_uncompressed_dds_file(const char* pFilename, basisu::vector<image> &ldr_mips, basisu::vector<imagef>& hdr_mips)
{ … }
bool write_compressed_texture_file(const char* pFilename, const basisu::vector<gpu_image_vec>& g, bool cubemap_flag, bool use_srgb_format)
{ … }
bool write_compressed_texture_file(const char* pFilename, const gpu_image_vec& g, bool use_srgb_format)
{ … }
bool write_compressed_texture_file(const char* pFilename, const gpu_image& g, bool use_srgb_format)
{ … }
struct out_file_header
{ … };
bool write_3dfx_out_file(const char* pFilename, const gpu_image& gi)
{ … }
bool write_astc_file(const char* pFilename, const void* pBlocks, uint32_t block_width, uint32_t block_height, uint32_t dim_x, uint32_t dim_y)
{ … }
}