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

◆ upscale()

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

Definition at line 78 of file crgb.cpp.

79 {
82 "Upscaling only works with a src matrix that is rectangular");
83 uint16_t w = srcXY.getWidth();
84 uint16_t h = srcXY.getHeight();
85 fl::bilinearExpand(src, dst, w, h, dstXY);
86}
XyMapType getType() const
Definition xymap.cpp:130
uint16_t getWidth() const
Definition xymap.cpp:124
@ kLineByLine
Definition xymap.h:45
uint16_t getHeight() const
Definition xymap.cpp:126
void bilinearExpand(const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, fl::XYMap xyMap)
#define FASTLED_WARN_IF
Definition warn.h:8

References CRGB(), fl::bilinearExpand(), FASTLED_WARN_IF, fl::XYMap::getHeight(), fl::XYMap::getType(), fl::XYMap::getWidth(), and fl::XYMap::kLineByLine.

+ Here is the call graph for this function: