Enum squish::Format[][src]

pub enum Format {
    Bc1,
    Bc2,
    Bc3,
}

Defines a compression format

Variants

Methods

impl Format
[src]

Decompresses an image in memory

  • data - The compressed image data
  • width - The width of the source image
  • height - The height of the source image
  • output - Space to store the decompressed image

Computes the amount of space in bytes needed for an image of given size, accounting for padding to a multiple of 4x4 pixels

  • width - Width of the uncompressed image
  • height - Height of the uncompressed image

Compresses an image in memory

  • rgba - The uncompressed pixel data
  • width - The width of the source image
  • height - The height of the source image
  • params - Additional compressor parameters
  • output - Output buffer for the compressed image. Ensure that this has at least as much space available as compute_compressed_size suggests.

Trait Implementations

impl Clone for Format
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Format
[src]

impl Debug for Format
[src]

Formats the value using the given formatter. Read more

impl Eq for Format
[src]

impl PartialEq for Format
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromStr for Format
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Format

impl Sync for Format