Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:BLP file
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== BLP version 2 header === struct blp2header { uint8_t ident[4]; // "BLP2" magic number uint32_t type; // 0 = JPG, 1 = BLP / DXTC / Uncompressed uint8_t compression; // 1 = BLP, 2 = DXTC, 3 = Uncompressed uint8_t alpha_depth; // 0, 1, 4, or 8 uint8_t alpha_type; // 0, 1, 7, or 8 uint8_t has_mips; // 0 = no mips, 1 = has mips uint32_t width; // Image width in pixels, usually a power of 2 uint32_t height; // Image height in pixels, usually a power of 2 uint32_t mipmap_offsets[16]; // The file offsets of each mipmap, 0 for unused uint32_t mipmap_lengths[16]; // The length of each mipmap data block uint32_t palette[265]; // A set of 256 ARGB values used as a color palette } blp2header; ==== Notes ==== * The actual number of 'mip' levels determined by image size * For '''WoW''' 'type' should always be 1. '''WoW''' does not currently use JPG format. BLP files using JPG compression is beyond the scope of this article. * '''WoW''' has shipped with a small number of BLPs with dimensions that are not powers of two; 768x128 is used for many cube map textures, for example. In this case, the final stored mipmap may not be 1x1. (this last part may not be accurate) * Compression type 3 'Uncompressed' appeared in Cataclysm, and data layout is canonical A8R8G8B8, which is essentially uncompressed 24-bit color with 8-bit alpha. * The header always includes a 256-entry color table. Each entry a 32-bit BGRA 8888 value. This table is only used for BLP format image data, but is present in all BLPs regardless.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)