image_blp

Module parser

Source
Expand description

Decoding BLP format from raw bytes.

Re-exports§

pub use error::Error;
pub use error::LoadError;

Modules§

error
types

Functions§

load_blp
Read BLP file from file system. If it BLP0 format, uses the mipmaps near the root file.
load_blp_from_buf
Read BLP file from buffer(Vec). If it BLP0 format, uses the mipmaps in the temp dir.
no_mipmaps
Helper for parse_blp when no external mipmaps are needed
parse_blp
Parse BLP file from slice and fail if we require parse external files (case BLP0)
parse_blp_with_externals
Parse BLP file from slice and use user provided callback to read mipmaps
preloaded_mipmaps
Helper for parse_blp when external mipmaps are located in filesystem near the root file and loaded in memory when reading the main file.