Module codec
Expand description
Decoding of encoded images into crate::Images and crate::Pixmaps.
The Codec type decodes an encoded image from a stream or data, and the codecs module
provides the codecs::Decoder implementations for the supported formats.
Modules§
- bmp_
decoder - Decoding of BMP images.
- codec_
animation - Types for animated image codecs, such as GIF, describing how frames are blended and disposed.
- codecs
- The registry of decoder implementations for the image formats that Skia supports natively.
- gif_
decoder - Decoding of GIF images.
- ico_
decoder - Decoding of ICO images.
- jpeg_
decoder - Decoding of JPEG images.
- pixmap_
utils - Utilities for working with the orientation of encoded images, e.g. applying an
crate::EncodedOriginto acrate::Pixmap. - png_
decoder - Decoding of PNG images.
- wbmp_
decoder - Decoding of WBMP images.
Structs§
- Codec
- Abstraction layer directly on top of an image codec.
- Frame
Info - Information about individual frames in a multi-framed image.
- Options
- Additional options to pass to
Codec::get_pixels_with_options.
Enums§
- Encoded
Image Format - Encoded
Origin - These values match the orientation www.exif.org/Exif2-2.PDF.
- IsAnimated
- Result
- Scanline
Order - Selection
Policy - Zero
Initialized
Constants§
- NO_
FRAME - Sentinel value used when a frame index implies “no frame”:
Functions§
- result_
to_ string - Readable string representing the error code.