Expand description
Core types and traits for image processing.
These types live in the rawshift_core crate and are re-exported here so
that rawshift’s public path rawshift::core::… (and internal
crate::core::… paths) stay stable. IccProfile is additionally surfaced
here from the internal metadata module.
Modules§
- codec
- Codec identity and shared encode vocabulary.
- color
- Color space and bit-depth descriptors shared across image and video.
- image
- Core image structures and types.
- metadata
- Unified metadata types for image formats.
- pixel
- Pixel type system for generic image processing.
Structs§
- CodecId
- A stable identifier for one codec implementation, in
"{format}/{impl}"form. - Codec
Info - Identity and version of one compiled-in codec implementation.
- IccProfile
- Embedded ICC profile data.
- Image
Metadata - Complete image metadata — unified superset of all supported formats.
- Metadata
Embed Options - Controls which metadata blocks an encoder embeds into its output container.
- Metadata
Entry - One entry in the generic metadata table (
ImageMetadata::extra). - Metadata
Key - Fully-qualified key into
ImageMetadata::extra. - Rgb
- An RGB pixel with three components.
- Rgba
- An RGBA pixel with four components.
- XTrans
Pattern - X-Trans CFA pattern (6x6 repeating tile).
Enums§
- BitDepth
- Bits per pixel sample of an encoded image.
- Codec
Direction - Whether a codec encodes or decodes.
- Color
Space - The color space a set of RGB samples is encoded in.
- Metadata
Namespace - Namespace identifying the origin of a generic metadata tag.
- Metadata
Value - A typed, format-agnostic metadata value.
Traits§
- FromF32
- Conversion trait from f32 to a sample type.
- Metadata
Extractor - Trait for extracting unified metadata from format-specific structures.
- Sample
- Trait for scalar sample values used in image processing.