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§
Traits§
- Pixel
- Pixel in format: RRGGBBAA
Functions§
- blend
- Blends two
Pixel
s together and retuns the new pixel asu32
. - blend_
64w - blend_
128w - blend_
192w - color_
f32_ to_ u32 - color_
u8_ to_ u32 - dia
- diff
- Calculates the weighted difference between two
Pixel
s. - is_
equal - Compares
LUV
of twoPixel
s and depending on thresholds tells us if pixels are considered equal. - left2
- rgb_
to_ yuv - Converts
RGB
toYUV
color space. - up2
- x2
- Applies the xBR filter.
- yuv
- Converts
Pixel
fromRGB
toYUV
color space.