37 {
38 uint16_t outputWidth =
xyMap.getWidth();
39 uint16_t outputHeight =
xyMap.getHeight();
40 const bool wontFit =
41 (outputWidth !=
xyMap.getWidth() || outputHeight !=
xyMap.getHeight());
42
43
44 if (wontFit || (inputWidth & (inputWidth - 1)) ||
45 (inputHeight & (inputHeight - 1))) {
47 } else {
49 }
50}
void upscaleArbitrary(const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, XYMap xyMap)
Performs bilinear interpolation for upscaling an image.
void upscalePowerOf2(const CRGB *input, CRGB *output, uint8_t inputWidth, uint8_t inputHeight, XYMap xyMap)
Performs bilinear interpolation for upscaling an image.