154 {
155 uint16_t srcWidth = srcXY.
getWidth();
157 uint16_t dstWidth = dstXY.
getWidth();
159
160 FASTLED_ASSERT(dstWidth <= srcWidth,
161 "Destination width must be <= source width");
162 FASTLED_ASSERT(dstHeight <= srcHeight,
163 "Destination height must be <= source height");
164 const bool destination_is_half_of_source =
165 (dstWidth * 2 == srcWidth) && (dstHeight * 2 == srcHeight);
166
167
168 if (destination_is_half_of_source) {
171 if (both_rectangles) {
172
173
175 } else {
176
178 }
179 return;
180 }
181
183}
XyMapType getType() const
uint16_t getWidth() const
uint16_t getHeight() const
void downscaleArbitrary(const CRGB *src, const XYMap &srcXY, CRGB *dst, const XYMap &dstXY)
void downscaleHalf(const CRGB *src, uint16_t srcWidth, uint16_t srcHeight, CRGB *dst)