2026

Thresholding with Anti-Aliasing

May 16 / 31 min read / #anti-aliasing #math #rust #threshold

Performant and high-quality image thresholding (binarization) with anti-aliasing.

Fast division by 2n-1

Jan 25 / 24 min read / #division #math #optimization

Fast methods for division by 2n-1 with different rounding for unsigned integers.

BC4 Error Visualization

Jan 3 / 4 min read / #bcn #compression

A visualization of BC4 block compression error for all possible encodings

2024

Fast Unorm Conversions

Sep 20 / 27 min read / #optimization #rust #unorm

Optimizing the conversion of 5-bit unorms to 8-bit unorms in Rust.