MCPcopy Create free account
hub / github.com/FastLED/FastLED / expand

Method expand

src/fl/fx/2d/scale_up.cpp.hpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void ScaleUp::expand(fl::span<const CRGB> input, fl::span<CRGB> output, u16 width,
62 u16 height, const XYMap& mXyMap) {
63#if FASTLED_SCALE_UP == FASTLED_SCALE_UP_ALWAYS_POWER_OF_2
64 fl::upscalePowerOf2(input.data(), output.data(), static_cast<u8>(width), static_cast<u8>(height), mXyMap);
65#elif FASTLED_SCALE_UP == FASTLED_SCALE_UP_HIGH_PRECISION
66 fl::upscaleArbitrary(input.data(), output.data(), width, height, mXyMap);
67#elif FASTLED_SCALE_UP == FASTLED_SCALE_UP_DECIDE_AT_RUNTIME
68 fl::upscale(input.data(), output.data(), width, height, mXyMap);
69#elif FASTLED_SCALE_UP == FASTLED_SCALE_UP_FORCE_FLOATING_POINT
70 fl::upscaleFloat(input.data(), output.data(), static_cast<u8>(width), static_cast<u8>(height), mXyMap);
71#else
72#error "Invalid FASTLED_SCALE_UP"
73#endif
74}
75
76void ScaleUp::noExpand(fl::span<const CRGB> input, fl::span<CRGB> output, u16 width,
77 u16 height) {

Callers

nothing calls this directly

Calls 5

upscalePowerOf2Function · 0.85
upscaleArbitraryFunction · 0.85
upscaleFunction · 0.85
upscaleFloatFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected