FastLED 3.9.15
|
void fl::bilinearExpandPowerOf2 | ( | const CRGB * | input, |
CRGB * | output, | ||
uint8_t | inputWidth, | ||
uint8_t | inputHeight, | ||
fl::XYMap | xyMap ) |
Performs bilinear interpolation for upscaling an image.
output | The output grid to write into the interpolated values. |
input | The input grid to read from. |
inputWidth | The width of the input grid. |
inputHeight | The height of the input grid. |
xyMap | The XYMap to use to determine where to write the pixel. If the pixel is mapped outside of the range then it is clipped. |
Definition at line 86 of file bilinear_expansion.cpp.
References bilinearInterpolatePowerOf2(), x, xyMap, and y.
Referenced by bilinearExpand(), and fl::ScaleUp::expand().