| 48 | } |
| 49 | |
| 50 | static bool GetBit(const uint8_t data[], size_t x, size_t y, size_t width) noexcept |
| 51 | { |
| 52 | const size_t position = y * width + x; |
| 53 | return (data[position / 8] & (1 << (7 - (x % 8)))) != 0; |
| 54 | } |
| 55 | |
| 56 | static void SetBit(uint8_t data[], size_t x, size_t y, size_t width) noexcept |
| 57 | { |