Crate lcms2

Source
Expand description

See Little CMS full documentation for more in-depth information about LCMS functions.

The main types you need to use in this crate are Profile and Transform

Structs§

CIECAM02
CIE CAM02
CIELab
CIEXYZ
CIExyY
Part of CIExyYTRIPLE
CIExyYTRIPLE
For Profile::new_rgb
Flags
Flags for creating Transform. Can be OR-ed together with |.
Locale
Language code from ISO-639/2 and region code from ISO-3166.
MLU
This represents owned Multi Localized Unicode type. Most methods are implemented on MLURef. This is a borrwed Multi Localized Unicode type. It holds Unicode strings associated with Locale.
MLURef
A borrowed reference to a MLU.
NamedColorInfo
Color in the palette
NamedColorList
Palette of colors with names
NamedColorListRef
A borrowed reference to a NamedColorList.
PipelineRef
A borrowed reference to a Pipeline.
PixelFormat
Format of pixel is defined by one u32, using bit fields as follows
Profile
An ICC color profile
Stage
Stage functions
StageRef
A borrowed reference to a Stage.
StagesIter
ThreadContext
Per-thread context for multi-threaded operation.
ToneCurve
Tone curves are powerful constructs that can contain curves specified in diverse ways.
ToneCurveRef
A borrowed reference to a ToneCurve.
Transform
Conversion between two ICC profiles.
VideoSignalType
ViewingConditions

Enums§

ColorSpaceSignature
Error
InfoType
Intent
ProfileClassSignature
Tag
Value of a tag in an ICC profile
TagSignature

Traits§

CIELabExt
Delta E
CIEXYZExt
Chromatic adaptation
CIExzYExt
White point
CacheFlag
Used by Flags to keep track whether Flags::NO_CACHE has been used, which enables thread-safe sharing of Transforms.
ColorSpaceSignatureExt
Pod
Transform requires pixel types to implement these traits.
Zeroable
Transform requires pixel types to implement these traits.

Functions§

XYZ2xyY
version
LCMS version
white_point_from_temp
Temperature <-> Chromaticity (Black body) Color temperature is a characteristic of visible light that has important applications.
xyY2XYZ

Type Aliases§

LCMSResult
This is a regular Result type with LCMS-specific Error