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

Method upscale

src/crgb.cpp.hpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void CRGB::upscale(const CRGB *src, const fl::XYMap &srcXY, CRGB *dst,
79 const fl::XYMap &dstXY) {
80 FL_WARN_IF(
81 srcXY.getType() != fl::XYMap::kLineByLine,
82 "Upscaling only works with a src matrix that is rectangular");
83 fl::u16 w = srcXY.getWidth();
84 fl::u16 h = srcXY.getHeight();
85 fl::upscale(src, dst, w, h, dstXY);
86}
87
88CRGB &CRGB::nscale8(fl::u8 scaledown) {
89 nscale8x3(r, g, b, scaledown);

Callers

nothing calls this directly

Calls 4

upscaleFunction · 0.85
getTypeMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected