Main quantization function - selects between methods based on config
| 85 | |
| 86 | // Main quantization function - selects between methods based on config |
| 87 | uint8_t quantize(int gray, int x, int y) { |
| 88 | if (USE_NOISE_DITHERING) { |
| 89 | return quantizeNoise(gray, x, y); |
| 90 | } else { |
| 91 | return quantizeSimple(gray); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // 1-bit noise dithering for fast home screen rendering |
| 96 | // Uses hash-based noise for consistent dithering that works well at small sizes |
no test coverage detected