Crate squish[][src]

A pure Rust BC1/2/3 compressor and decompressor based on Simon Brown's libsquish

Structs

Params

Enums

Algorithm

Defines a compression algorithm

Format

Defines a compression format

ParseFormatError

Constants

COLOUR_WEIGHTS_PERCEPTUAL

Weights based on the perceived brightness of each colour channel

COLOUR_WEIGHTS_UNIFORM

Uniform weights for each colour channel

Functions

num_blocks

Returns number of blocks needed for an image of given dimension

Type Definitions

ColourWeights

RGB colour channel weights for use in block fitting