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

◆ expand()

void fl::ScaleUp::expand ( const CRGB * input,
CRGB * output,
uint16_t width,
uint16_t height,
const XYMap & mXyMap )

Definition at line 64 of file scale_up.cpp.

65 {
66#if FASTLED_SCALE_UP == FASTLED_SCALE_UP_ALWAYS_POWER_OF_2
67 fl::upscalePowerOf2(input, output, static_cast<uint8_t>(width), static_cast<uint8_t>(height), mXyMap);
68#elif FASTLED_SCALE_UP == FASTLED_SCALE_UP_HIGH_PRECISION
69 fl::upscaleArbitrary(input, output, width, height, mXyMap);
70#elif FASTLED_SCALE_UP == FASTLED_SCALE_UP_DECIDE_AT_RUNTIME
71 fl::upscale(input, output, width, height, mXyMap);
72#elif FASTLED_SCALE_UP == FASTLED_SCALE_UP_FORCE_FLOATING_POINT
73 fl::upscaleFloat(input, output, static_cast<uint8_t>(width), static_cast<uint8_t>(height), mXyMap);
74#else
75#error "Invalid FASTLED_SCALE_UP"
76#endif
77}
XYMap mXyMap
Definition fx2d.h:31
void upscaleArbitrary(const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const XYMap &xyMap)
Performs bilinear interpolation for upscaling an image.
Definition upscale.cpp:106
u8 upscaleFloat(u8 v00, u8 v10, u8 v01, u8 v11, float dx, float dy)
Definition upscale.cpp:246
void upscale(const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const fl::XYMap &xyMap)
Definition upscale.h:58
void upscalePowerOf2(const CRGB *input, CRGB *output, u8 inputWidth, u8 inputHeight, const XYMap &xyMap)
Performs bilinear interpolation for upscaling an image.
Definition upscale.cpp:170

References fl::Fx2d::mXyMap, fl::upscale(), fl::upscaleArbitrary(), fl::upscaleFloat(), and fl::upscalePowerOf2().

Referenced by draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: