| 40 | } |
| 41 | |
| 42 | XYMap XYMap::constructWithLookUpTable(u16 width, u16 height, |
| 43 | const u16 *lookUpTable, |
| 44 | u16 offset) { |
| 45 | XYMap out(width, height, kLookUpTable); |
| 46 | out.mLookUpTable = fl::make_shared<LUT16>(width * height); |
| 47 | fl::memcpy(out.mLookUpTable->getDataMutable(), lookUpTable, |
| 48 | width * height * sizeof(u16)); |
| 49 | out.mOffset = offset; |
| 50 | return out; |
| 51 | } |
| 52 | |
| 53 | XYMap XYMap::constructSerpentine(u16 width, u16 height, |
| 54 | u16 offset) { |
nothing calls this directly
no test coverage detected