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
Pixels 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
Pixels. - is_
equal - Compares
LUVof twoPixels and depending on thresholds tells us if pixels are considered equal. - left2
- rgb_
to_ yuv - Converts
RGBtoYUVcolor space. - up2
- x2
- Applies the xBR filter.
- yuv
- Converts
PixelfromRGBtoYUVcolor space.