Skip to main content

Crate yuvxyb

Crate yuvxyb 

Source

Structs§

Frame
Contains the data representing one YUV video frame.
FrameBuilder
A builder for constructing Frame instances with validation.
Hsl
Contains an HSL image.
LinearRgb
Contains an RGB image in a linearized color space.
Plane
A two-dimensional plane of pixel data with optional padding.
Rgb
Contains an RGB image.
Xyb
Contains an XYB image.
Yuv
Contains a YCbCr image in a color space defined by YuvConfig.
YuvConfig
Contains the configuration data for a YCbCr image.

Enums§

ChromaSubsampling
Specifies the chroma subsampling for a YUV frame.
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.
ConversionError
Error type for when converting data from one color space to another fails.
CreationError
Error type for when creating one of the colorspace structs fails.
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.
YuvError
Error type for when creating a Yuv struct goes wrong.

Traits§

FromPrimitive
A generic trait for converting a number to a value.
Pixel
A trait for types that can be used as pixel data.
ToPrimitive
A generic trait for converting a value to a number.

Functions§

linear_rgb_to_xyb
Converts 32-bit floating point linear RGB to XYB.
linear_rgb_to_xyb_simd
Converts 32-bit floating point linear RGB to XYB using SIMD, in place.
linear_rgb_to_xyb_simd_x8
Converts 32-bit floating point linear RGB to XYB using f32x8 SIMD, in place.
xyb_to_linear_rgb
Converts 32-bit floating point XYB to linear RGB.
xyb_to_linear_rgb_simd
Converts 32-bit floating point XYB to Linear RGB using SIMD, in place.
xyb_to_linear_rgb_simd_x8
Converts 32-bit floating point XYB to Linear RGB using f32x8 SIMD, in place.