Crate dds

Source

Modules§

header
Functionality for reading, parsing, and writing DDS headers.

Structs§

BiPlanarPixelInfo
See PixelInfo::BiPlanar.
BlockPixelInfo
See PixelInfo::Block.
ColorFormat
A color format with a specific number of channels and precision.
CubeMapFaces
A bitset representing which faces of a cube map are present.
DecodeOptions
Decoder
A decoder for reading the pixel data of a DDS file.
EncodeOptions
Encoder
An encoder for DDS files.
EncodingSupport
Describes the extent of support for encoding a format.
ImageView
A borrowed slice of image data.
ImageViewMut
A borrowed mutable slice of image data.
Progress
A progress reporter used by crate::Encoder and crate::encode().
Rect
Size
SplitSurface
SurfaceDescriptor
Texture
A 2D texture with mipmaps (if any).
TextureArray
An array of textures.
Volume
A 3D texture with mipmaps (if any).
VolumeDescriptor
WriteOptions

Enums§

Channels
The number and semantics of the color channels in a surface.
CompressionQuality
The level of trade-off between compression quality and speed.
DataLayout
The type and layout of the surfaces/volumes in the data section of a DDS file.
DecodingError
Dithering
EncodingError
ErrorMetric
Format
The format of the pixel data of a surface.
FormatError
HeaderError
LayoutError
PixelInfo
This describes the number of bits per pixel and the layout of pixels within a surface.
Precision
The precision/bit depth of the values in a surface.
ResizeFilter
TextureArrayKind

Traits§

DataRegion

Functions§

decode
Decodes the image data of a surface from the given reader and writes it to the given output buffer.
decode_rect
Decodes a rectangle of the image data of a surface from the given reader and writes it to the given output buffer.
encode