Module pixel

Module pixel 

Source
Expand description

Expose all necessary data structures to represent pixels.

Re-exports num_traits::FromPrimitive and num_traits::cast::ToPrimitive in order to make easy to cast a parsed value into correct enum structures.

Modules§

formats
Ready-to-use formaton

Structs§

Chromaton
Single colorspace component definition.
Formaton
Image colorspace representation.

Enums§

ChromaLocation
Indicates the chroma sampling grid alignment for video fields or frames using the 4:2:0 colour format (in which the two chroma arrays have half the width and half the height of the associated luma array)
ColorModel
All supported color models.
ColorPrimaries
Indicates the chromaticity coordinates of the source colour primaries as specified in Table 2 in terms of the CIE 1931 definition of x and y as specified by ISO 11664-1.
MatrixCoefficients
Describes the matrix coefficients used in deriving luma and chroma signals from the green, blue and red or X, Y and Z primaries.
TransferCharacteristic
Either indicates the reference opto-electronic transfer characteristic function of the source picture as a function of a source input linear optical intensity input Lc with a nominal real-valued range of 0 to 1 or indicates the inverse of the reference electro-optical transfer characteristic function as a function of an output linear optical intensity Lo with a nominal real-valued range of 0 to 1.
TrichromaticEncodingSystem
Trichromatic color encoding system.
YUVRange
YUV color range.
YUVSystem
All YUV color representations.

Traits§

FromPrimitive
A generic trait for converting a number to a value.
ToPrimitive
A generic trait for converting a value to a number.