Crate xbr

Source

Structs§

Block
Block of bytes that we’ll use as input and output of xbr algorithm.
Yuv
A structure for conveniently working with YUV colors. https://en.wikipedia.org/wiki/YUV

Enums§

XBRError

Traits§

Pixel
Pixel in format: RRGGBBAA

Functions§

blend
Blends two Pixels together and retuns the new pixel as u32.
blend_64w
blend_128w
blend_192w
color_f32_to_u32
color_u8_to_u32
dia
diff
Calculates the weighted difference between two Pixels.
is_equal
Compares LUV of two Pixels and depending on thresholds tells us if pixels are considered equal.
left2
rgb_to_yuv
Converts RGB to YUV color space.
up2
x2
Applies the xBR filter.
yuv
Converts Pixel from RGB to YUV color space.