FastLED 3.10.8
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 77 of file scale_up.cpp.hpp.

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

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

Referenced by draw().

+ Here is the caller graph for this function: