|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
Namespaces | |
| namespace | detail |
Classes | |
| struct | Image |
| struct | EncodeSettings |
| struct | BLP |
Enumerations | |
| enum class | ColorEncoding : std::uint8_t { Jpeg = 0 , Palettized = 1 , Dxt = 2 , Bgra = 3 , BgraAlt = 4 } |
| How a BLP's pixel payload is encoded (the header's colorEncoding byte). More... | |
| enum class | PixelFormat : std::uint8_t { Dxt1 = 0 , Dxt3 = 1 , Argb8888 = 2 , Argb1555 = 3 , Argb4444 = 4 , Rgb565 = 5 , A8 = 6 , Dxt5 = 7 , Unspecified = 8 , Argb2565 = 9 , Bc5 = 11 } |
| The client-side pixel format hint (the header's preferredFormat byte). More... | |
Variables | |
| constexpr std::uint32_t | BlpMagic = fourcc("BLP2", FourCCEndian::Forward) |
| The BLP2 magic: the literal bytes "BLP2" (a forward FourCC, unlike the reversed chunk ids). | |
| constexpr std::uint32_t | BlpVersion1 = 1 |
| The BLP2 header version field; always 1 in every shipped client. | |
| constexpr std::size_t | BlpMaxMips = 16 |
| The mip table capacity: a BLP addresses at most 16 levels. | |
| constexpr std::size_t | BlpPaletteSize = 256 |
| The palette entry count (one byte-sized index space). | |
| constexpr std::size_t | BlpHeaderBytes = 0x494 |
| The full header region: 148-byte header + 1024-byte palette. | |
|
strong |
How a BLP's pixel payload is encoded (the header's colorEncoding byte).
|
strong |
The client-side pixel format hint (the header's preferredFormat byte).
For DXT-encoded files it selects the block format: Dxt1 -> BC1, Dxt3 -> BC2, Dxt5 -> BC3, Bc5 -> BC5.
|
inlineconstexpr |
The full header region: 148-byte header + 1024-byte palette.
Definition at line 53 of file blp.hpp.
Referenced by wowlib::formats::blp::BLP::read(), and wowlib::formats::blp::BLP::write().
|
inlineconstexpr |
The BLP2 magic: the literal bytes "BLP2" (a forward FourCC, unlike the reversed chunk ids).
Definition at line 45 of file blp.hpp.
Referenced by wowlib::formats::blp::BLP::read(), and wowlib::formats::blp::BLP::write().
|
inlineconstexpr |
The mip table capacity: a BLP addresses at most 16 levels.
Definition at line 49 of file blp.hpp.
Referenced by wowlib::formats::blp::BLP::encode(), wowlib::formats::blp::BLP::read(), wowlib::formats::blp::BLP::setMip(), wowlib::formats::blp::BLP::validate(), and wowlib::formats::blp::BLP::write().
|
inlineconstexpr |
The palette entry count (one byte-sized index space).
Definition at line 51 of file blp.hpp.
Referenced by wowlib::formats::blp::detail::PaletteCodec::_nearestIndex(), and wowlib::formats::blp::detail::PaletteCodec::buildPalette().
|
inlineconstexpr |
The BLP2 header version field; always 1 in every shipped client.
Definition at line 47 of file blp.hpp.
Referenced by wowlib::formats::blp::BLP::encode().