23 u16 inputHeight,
const fl::XYMap&
xyMap);
33 u8 inputHeight,
const fl::XYMap&
xyMap);
44 u16 inputHeight, u16 outputWidth, u16 outputHeight);
55 u8 inputHeight,
u8 outputWidth,
u8 outputHeight);
60 u16 outputWidth =
xyMap.getWidth();
61 u16 outputHeight =
xyMap.getHeight();
63 (outputWidth !=
xyMap.getWidth() || outputHeight !=
xyMap.getHeight());
70 if (wontFit || (inputWidth & (inputWidth - 1)) ||
71 (inputHeight & (inputHeight - 1))) {
73 outputWidth, outputHeight);
76 outputWidth, outputHeight);
80 if (wontFit || (inputWidth & (inputWidth - 1)) ||
81 (inputHeight & (inputHeight - 1))) {
98 u8 v11,
float dx,
float dy);
Defines the red, green, and blue (RGB) pixel struct.
Implements the FastLED namespace macros.
void upscaleRectangular(const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, u16 outputWidth, u16 outputHeight)
Optimized upscale for rectangular/line-by-line XY maps.
void upscaleRectangularPowerOf2(const CRGB *input, CRGB *output, u8 inputWidth, u8 inputHeight, u8 outputWidth, u8 outputHeight)
Optimized upscale for rectangular/line-by-line XY maps (power-of-2 version).
void upscaleArbitraryFloat(const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const XYMap &xyMap)
void upscaleArbitrary(const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const XYMap &xyMap)
Performs bilinear interpolation for upscaling an image.
u8 upscaleFloat(u8 v00, u8 v10, u8 v01, u8 v11, float dx, float dy)
void upscale(const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const fl::XYMap &xyMap)
void upscalePowerOf2(const CRGB *input, CRGB *output, u8 inputWidth, u8 inputHeight, const XYMap &xyMap)
Performs bilinear interpolation for upscaling an image.
Representation of an RGB pixel (Red, Green, Blue)