Go to the source code of this file.
|
| int | DDSLittleLong (int src) |
| |
| short | DDSLittleShort (short src) |
| |
| float | DDSLittleFloat (float src) |
| |
| int | DDSBigLong (int src) |
| |
| short | DDSBigShort (short src) |
| |
| float | DDSBigFloat (float src) |
| |
| static void | DDSGetColorBlockColors (ddsColorBlock_t *block, ddsColor_t colors[4]) |
| |
|
| |
| static void | DDSDecodeColorBlock (unsigned int *pixel, ddsColorBlock_t *block, int width, unsigned int colors[4]) |
| |
| static void | DDSDecodeAlphaExplicit (unsigned int *pixel, ddsAlphaBlockExplicit_t *alphaBlock, int width, unsigned int alphaZero) |
| |
| static void | DDSDecodeAlpha3BitLinear (unsigned int *pixel, ddsAlphaBlock3BitLinear_t *alphaBlock, int width, unsigned int alphaZero) |
| |
| int | DDSDecompressDXT1 (unsigned char *src, int width, int height, unsigned char *dest) |
| | Decompress a DXT1 (BC1) compressed texture into raw RGBA pixels.
|
| |
| int | DDSDecompressDXT3 (unsigned char *src, int width, int height, unsigned char *dest) |
| | Decompress a DXT3 (BC2) compressed texture into raw RGBA pixels.
|
| |
| int | DDSDecompressDXT5 (unsigned char *src, int width, int height, unsigned char *dest) |
| | Decompress a DXT5 (BC3) compressed texture into raw RGBA pixels.
|
| |
◆ DDSLIB_C
◆ DDSBigFloat()
| float DDSBigFloat |
( |
float |
src | ) |
|
◆ DDSBigLong()
| int DDSBigLong |
( |
int |
src | ) |
|
◆ DDSBigShort()
| short DDSBigShort |
( |
short |
src | ) |
|
◆ DDSDecodeAlpha3BitLinear()
| static void DDSDecodeAlpha3BitLinear |
( |
unsigned int * |
pixel, |
|
|
ddsAlphaBlock3BitLinear_t * |
alphaBlock, |
|
|
int |
width, |
|
|
unsigned int |
alphaZero |
|
) |
| |
|
static |
◆ DDSDecodeAlphaExplicit()
| static void DDSDecodeAlphaExplicit |
( |
unsigned int * |
pixel, |
|
|
ddsAlphaBlockExplicit_t * |
alphaBlock, |
|
|
int |
width, |
|
|
unsigned int |
alphaZero |
|
) |
| |
|
static |
◆ DDSDecodeColorBlock()
| static void DDSDecodeColorBlock |
( |
unsigned int * |
pixel, |
|
|
ddsColorBlock_t * |
block, |
|
|
int |
width, |
|
|
unsigned int |
colors[4] |
|
) |
| |
|
static |
◆ DDSDecompressDXT1()
| int DDSDecompressDXT1 |
( |
unsigned char * |
src, |
|
|
int |
width, |
|
|
int |
height, |
|
|
unsigned char * |
dest |
|
) |
| |
Decompress a DXT1 (BC1) compressed texture into raw RGBA pixels.
- Parameters
-
| src | Pointer to the DXT1 compressed source data. |
| width | Width of the texture in pixels. |
| height | Height of the texture in pixels. |
| dest | Pointer to the destination buffer (must be width * height * 4 bytes). |
- Returns
- 0 on success, -1 on failure.
Definition at line 479 of file ddslib.cpp.
◆ DDSDecompressDXT3()
| int DDSDecompressDXT3 |
( |
unsigned char * |
src, |
|
|
int |
width, |
|
|
int |
height, |
|
|
unsigned char * |
dest |
|
) |
| |
Decompress a DXT3 (BC2) compressed texture into raw RGBA pixels.
- Parameters
-
| src | Pointer to the DXT3 compressed source data. |
| width | Width of the texture in pixels. |
| height | Height of the texture in pixels. |
| dest | Pointer to the destination buffer (must be width * height * 4 bytes). |
- Returns
- 0 on success, -1 on failure.
Definition at line 519 of file ddslib.cpp.
◆ DDSDecompressDXT5()
| int DDSDecompressDXT5 |
( |
unsigned char * |
src, |
|
|
int |
width, |
|
|
int |
height, |
|
|
unsigned char * |
dest |
|
) |
| |
Decompress a DXT5 (BC3) compressed texture into raw RGBA pixels.
- Parameters
-
| src | Pointer to the DXT5 compressed source data. |
| width | Width of the texture in pixels. |
| height | Height of the texture in pixels. |
| dest | Pointer to the destination buffer (must be width * height * 4 bytes). |
- Returns
- 0 on success, -1 on failure.
Definition at line 566 of file ddslib.cpp.
◆ DDSGetColorBlockColors()
◆ DDSLittleFloat()
| float DDSLittleFloat |
( |
float |
src | ) |
|
◆ DDSLittleLong()
| int DDSLittleLong |
( |
int |
src | ) |
|
◆ DDSLittleShort()
| short DDSLittleShort |
( |
short |
src | ) |
|