32void upscalePowerOf2(
const CRGB *input, CRGB *output, uint8_t inputWidth,
38 uint16_t outputWidth =
xyMap.getWidth();
39 uint16_t outputHeight =
xyMap.getHeight();
41 (outputWidth !=
xyMap.getWidth() || outputHeight !=
xyMap.getHeight());
44 if (wontFit || (inputWidth & (inputWidth - 1)) ||
45 (inputHeight & (inputHeight - 1))) {
60uint8_t
upscaleFloat(uint8_t v00, uint8_t v10, uint8_t v01,
61 uint8_t v11,
float dx,
float dy);
Defines the red, green, and blue (RGB) pixel struct.
Implements the FastLED namespace macros.
void upscale(const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, fl::XYMap xyMap)
void upscaleArbitrary(const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, XYMap xyMap)
Performs bilinear interpolation for upscaling an image.
uint8_t upscaleFloat(uint8_t v00, uint8_t v10, uint8_t v01, uint8_t v11, float dx, float dy)
void upscalePowerOf2(const CRGB *input, CRGB *output, uint8_t inputWidth, uint8_t inputHeight, XYMap xyMap)
Performs bilinear interpolation for upscaling an image.
void upscaleArbitraryFloat(const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, XYMap xyMap)
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)