Skip to main content

Module core

Module core 

Source
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.
CodecInfo
Identity and version of one compiled-in codec implementation.
IccProfile
Embedded ICC profile data.
ImageMetadata
Complete image metadata — unified superset of all supported formats.
MetadataEmbedOptions
Controls which metadata blocks an encoder embeds into its output container.
MetadataEntry
One entry in the generic metadata table (ImageMetadata::extra).
MetadataKey
Fully-qualified key into ImageMetadata::extra.
Rgb
An RGB pixel with three components.
Rgba
An RGBA pixel with four components.
XTransPattern
X-Trans CFA pattern (6x6 repeating tile).

Enums§

BitDepth
Bits per pixel sample of an encoded image.
CodecDirection
Whether a codec encodes or decodes.
ColorSpace
The color space a set of RGB samples is encoded in.
MetadataNamespace
Namespace identifying the origin of a generic metadata tag.
MetadataValue
A typed, format-agnostic metadata value.

Traits§

FromF32
Conversion trait from f32 to a sample type.
MetadataExtractor
Trait for extracting unified metadata from format-specific structures.
Sample
Trait for scalar sample values used in image processing.

Type Aliases§

Rgb8
Convenience type aliases for common pixel representations.
Rgb16
RgbF32
Rgba8
Rgba16
RgbaF32