Skip to main content

Module codec

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::EncodedOrigin to a crate::Pixmap.
png_decoder
Decoding of PNG images.
wbmp_decoder
Decoding of WBMP images.

Structs§

Codec
Abstraction layer directly on top of an image codec.
FrameInfo
Information about individual frames in a multi-framed image.
Options
Additional options to pass to Codec::get_pixels_with_options.

Enums§

EncodedImageFormat
EncodedOrigin
These values match the orientation www.exif.org/Exif2-2.PDF.
IsAnimated
Result
ScanlineOrder
SelectionPolicy
ZeroInitialized

Constants§

NO_FRAME
Sentinel value used when a frame index implies “no frame”:

Functions§

result_to_string
Readable string representing the error code.