Crate fast_ssim2

Crate fast_ssim2 

Source

Structs§

Blur
Structure handling image blur with selectable implementation.
Frame
Represents a raw video frame
LinearRgb
Contains an RGB image in a linearized color space.
LinearRgbImage
Internal linear RGB image representation.
Plane
One data plane of a frame.
Rgb
Contains an RGB image.
Ssimulacra2Config
Configuration for SSIMULACRA2 computation.
Ssimulacra2Reference
Precomputed SSIMULACRA2 reference data for fast repeated comparisons.
Yuv
Contains a YCbCr image in a color space defined by YuvConfig.
YuvConfig
Contains the configuration data for a YCbCr image.

Enums§

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.
SimdImpl
SIMD implementation backend for all operations (blur, XYB conversion, SSIM computation).
Ssimulacra2Error
Errors which can occur when attempting to calculate a SSIMULACRA2 score from two input images.
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.

Traits§

Pixel
A type that can be used as a pixel type.
ToLinearRgb
Trait for converting image types to linear RGB.

Functions§

compute_frame_ssimulacra2
Computes the SSIMULACRA2 score with default configuration (safe SIMD).
compute_frame_ssimulacra2_with_config
Computes the SSIMULACRA2 score with custom implementation configuration.
compute_ssimulacra2
Computes the SSIMULACRA2 score from any input type implementing ToLinearRgb.
compute_ssimulacra2_with_config
Computes the SSIMULACRA2 score with custom configuration from ToLinearRgb inputs.
srgb_to_linear
Convert sRGB (gamma-encoded) value to linear.
srgb_u8_to_linear
Convert 8-bit sRGB value to linear f32.
srgb_u16_to_linear
Convert 16-bit sRGB value to linear f32.