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

◆ upscale()

void CRGB::upscale ( const CRGB * src,
const XYMap & srcXY,
CRGB * dst,
const XYMap & dstXY )
static

Definition at line 78 of file crgb.cpp.hpp.

79 {
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}
@ kLineByLine
Definition xymap.h:43
#define FL_WARN_IF(COND, MSG)
Definition log.h:277
void upscale(const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const fl::XYMap &xyMap)
Definition upscale.h:56

References CRGB(), FL_WARN_IF, fl::XYMap::getHeight(), fl::XYMap::getType(), fl::XYMap::getWidth(), fl::XYMap::kLineByLine, and fl::upscale().

+ Here is the call graph for this function: