Go to the source code of this file.
|
| int | DDSDecompressDXT5 (unsigned char *src, int width, int height, unsigned char *dest) |
| | Decompress a DXT5 (BC3) 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 | DDSDecompressDXT1 (unsigned char *src, int width, int height, unsigned char *dest) |
| | Decompress a DXT1 (BC1) compressed texture into raw RGBA pixels.
|
| |
◆ DDS_HI_555
| #define DDS_HI_555 0x7C00; |
◆ DDS_HIGH_5
| #define DDS_HIGH_5 0xF800; |
◆ DDS_LOW_5
| #define DDS_LOW_5 0x001F; |
◆ DDS_MID_555
| #define DDS_MID_555 0x03E0; |
◆ DDS_MID_6
| #define DDS_MID_6 0x07E0; |
◆ ddsAlphaBlock3BitLinear_t
◆ ddsAlphaBlockExplicit_t
◆ ddsBuffer_t
◆ ddsCaps_t
◆ ddsColor_t
◆ ddsColorBlock_t
◆ ddsColorKey_t
◆ ddsMultiSampleCaps_t
◆ ddsPixelFormat_t
◆ ddsPF_t
| Enumerator |
|---|
| DDS_PF_ARGB8888 | |
| DDS_PF_DXT1 | |
| DDS_PF_DXT2 | |
| DDS_PF_DXT3 | |
| DDS_PF_DXT4 | |
| DDS_PF_DXT5 | |
| DDS_PF_UNKNOWN | |
Definition at line 45 of file ddslib.h.
◆ 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.