|
FastLED 3.9.15
|
| void fl::ScaleUp::expand | ( | fl::span< const CRGB > | input, |
| fl::span< CRGB > | output, | ||
| u16 | width, | ||
| u16 | height, | ||
| const XYMap & | mXyMap ) |
Expand a low-resolution buffer to high-resolution using bilinear interpolation.
Performs bilinear filtering to smoothly upscale pixel data from a source buffer to a destination buffer. Each output pixel is calculated by interpolating the four nearest input pixels, creating smooth transitions and reducing blocky artifacts.
The actual interpolation algorithm used depends on the FASTLED_SCALE_UP compile-time setting:
| input | Source buffer containing low-resolution pixel data |
| output | Destination buffer for high-resolution output (must be pre-allocated) |
| width | Width of the low-resolution input buffer |
| height | Height of the low-resolution input buffer |
| mXyMap | The target high-resolution XYMap defining output dimensions and layout |
Definition at line 61 of file scale_up.cpp.hpp.
References fl::span< T, Extent >::data(), fl::height, fl::Fx2d::mXyMap, fl::upscale(), fl::upscaleArbitrary(), fl::upscaleFloat(), fl::upscalePowerOf2(), and fl::width.
Referenced by draw().
Here is the call graph for this function:
Here is the caller graph for this function: