| 74 | } |
| 75 | |
| 76 | void ScaleUp::noExpand(fl::span<const CRGB> input, fl::span<CRGB> output, u16 width, |
| 77 | u16 height) { |
| 78 | u16 n = mXyMap.getTotal(); |
| 79 | for (u16 w = 0; w < width; w++) { |
| 80 | for (u16 h = 0; h < height; h++) { |
| 81 | u16 idx = mXyMap.mapToIndex(w, h); |
| 82 | if (idx < n) { |
| 83 | output[idx] = input[w * height + h]; |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | } // namespace fl |
nothing calls this directly
no test coverage detected