![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "tex_codec.h"#include "lib/alignment.h"#include "lib/allocators/shared_ptr.h"#include "lib/bits.h"#include "lib/byte_order.h"#include "lib/code_annotation.h"#include "lib/debug.h"#include "lib/lib.h"#include "lib/os_path.h"#include "lib/posix/posix_types.h"#include "lib/status.h"#include "lib/tex/tex.h"#include "lib/tex/tex_internal.h"#include <algorithm>#include <bit>#include <cstdlib>#include <memory>
Classes | |
| class | S3tcBlock |
| struct | S3tcDecompressInfo |
| struct | DDS_PIXELFORMAT |
| struct | DDS_HEADER |
Macros | |
| #define | DDPF_ALPHAPIXELS 0x00000001 |
| #define | DDPF_ALPHA 0x00000002 |
| #define | DDPF_FOURCC 0x00000004 |
| #define | DDPF_RGB 0x00000040 |
| #define | DDSD_CAPS 0x00000001 |
| #define | DDSD_HEIGHT 0x00000002 |
| #define | DDSD_WIDTH 0x00000004 |
| #define | DDSD_PITCH 0x00000008 |
| #define | DDSD_PIXELFORMAT 0x00001000 |
| #define | DDSD_MIPMAPCOUNT 0x00020000 |
| #define | DDSD_LINEARSIZE 0x00080000 |
| #define | DDSD_DEPTH 0x00800000 |
| #define | DDSCAPS_MIPMAP 0x00400000 |
| #define | DDSCAPS_TEXTURE 0x00001000 |
Functions | |
| static void | s3tc_decompress_level (size_t, size_t level_w, size_t level_h, const std::uint8_t *RESTRICT level_data, size_t level_data_size, void *RESTRICT cbData) |
| static Status | s3tc_decompress (Tex *t) |
| static bool | is_valid_dxt (size_t dxt) |
| static Status | decode_pf (const DDS_PIXELFORMAT *pf, size_t &bpp, size_t &flags) |
| static Status | decode_sd (const DDS_HEADER *sd, size_t &w, size_t &h, size_t &bpp, size_t &flags) |
| #define DDPF_ALPHA 0x00000002 |
| #define DDPF_ALPHAPIXELS 0x00000001 |
| #define DDPF_FOURCC 0x00000004 |
| #define DDPF_RGB 0x00000040 |
| #define DDSCAPS_MIPMAP 0x00400000 |
| #define DDSCAPS_TEXTURE 0x00001000 |
| #define DDSD_CAPS 0x00000001 |
| #define DDSD_DEPTH 0x00800000 |
| #define DDSD_HEIGHT 0x00000002 |
| #define DDSD_LINEARSIZE 0x00080000 |
| #define DDSD_MIPMAPCOUNT 0x00020000 |
| #define DDSD_PITCH 0x00000008 |
| #define DDSD_PIXELFORMAT 0x00001000 |
| #define DDSD_WIDTH 0x00000004 |
|
static |
|
static |
|
static |