FastLED 3.9.15
Loading...
Searching...
No Matches

◆ noExpand()

void fl::ScaleUp::noExpand ( fl::span< const CRGB > input,
fl::span< CRGB > output,
u16 width,
u16 height )
private

Direct copy without expansion (used when resolutions match)

Parameters
inputSource buffer
outputDestination buffer
widthBuffer width
heightBuffer height

Definition at line 76 of file scale_up.cpp.hpp.

77 {
78 u16 n = mXyMap.getTotal();
79 for (u16 w = 0; w < width; w++) {
80 for (u16 h = 0; h < height; h++) {
81 u16 idx = mXyMap.mapToIndex(w, h);
82 if (idx < n) {
83 output[idx] = input[w * height + h];
84 }
85 }
86 }
87}
XYMap mXyMap
Definition fx2d.h:30
u8 u8 height
Definition blur.h:186
u8 width
Definition blur.h:186

References fl::height, fl::Fx2d::mXyMap, and fl::width.

Referenced by draw().

+ Here is the caller graph for this function: