Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
stb_dxt.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NEW_OPTIMISATIONS
 
#define STB_DXT_NORMAL   0
 
#define STB_DXT_DITHER   1
 
#define STB_DXT_HIGHQUAL   2
 
#define STB_COMPRESS_DXT_BLOCK
 

Functions

void rygCompress (unsigned char *dst, unsigned char *src, int w, int h, int isDxt5, int &compressed_size)
 
void rygCompressYCoCg (unsigned char *dst, unsigned char *src, int w, int h)
 
void linearize (unsigned char *dst, const unsigned char *src, int n)
 
void stb_compress_dxt_block (unsigned char *dest, const unsigned char *src, int alpha, int mode)
 

Macro Definition Documentation

◆ NEW_OPTIMISATIONS

#define NEW_OPTIMISATIONS

◆ STB_COMPRESS_DXT_BLOCK

#define STB_COMPRESS_DXT_BLOCK

◆ STB_DXT_DITHER

#define STB_DXT_DITHER   1

◆ STB_DXT_HIGHQUAL

#define STB_DXT_HIGHQUAL   2

◆ STB_DXT_NORMAL

#define STB_DXT_NORMAL   0

Function Documentation

◆ linearize()

void linearize ( unsigned char *  dst,
const unsigned char *  src,
int  n 
)

◆ rygCompress()

void rygCompress ( unsigned char *  dst,
unsigned char *  src,
int  w,
int  h,
int  isDxt5,
int &  compressed_size 
)

Referenced by Slic3r::GUI::GLTexture::Compressor::compress().

+ Here is the caller graph for this function:

◆ rygCompressYCoCg()

void rygCompressYCoCg ( unsigned char *  dst,
unsigned char *  src,
int  w,
int  h 
)

◆ stb_compress_dxt_block()

void stb_compress_dxt_block ( unsigned char *  dest,
const unsigned char *  src,
int  alpha,
int  mode 
)