Apex › Data & encoding
How HDR fits the sun on your screen (tone-mapping)
A real scene runs from deep shadow to direct sun — a range of millions — but a screen shows only about 0 to 1. Clipping everything brighter than 1 to white destroys the highlights (the sky and sun become one flat blob). Tone-mapping compresses the whole range non-linearly instead: the Reinhard operator L/(1+L) sends 0→0 and ∞→1, keeping highlights distinct, like the retina does. Real synthetic HDR scene, verified: naive clip blows out most of the range while Reinhard keeps it ordered and visible. Then gamma-encodes (pairs with the gamma story).
More in Data & encoding
- Encoding
- How a computer stores a fraction (IEEE-754)
- Why encoders use Gray code (one bit at a time)
- Varint & zigzag
- Base58 & Base58Check
- Line coding
- LZ77 compression
- LZW compression
- Burrows-Wheeler
- How genomes are assembled (de Bruijn graphs)
- Move-to-front
- Content-defined chunking
- rsync (delta sync)
- Finite automata (DFA)
- Huffman coding
- How JPEG compresses an image
- How content-aware resize works (seam carving)
- How video inter-frame compression works
- How MP3 shrinks audio (psychoacoustic masking)
- How dithering fakes gray with black & white
- Why 128 isn’t half-bright (gamma)
- Why RGB blends look muddy (OKLab)
- Golomb-Rice coding
- Elias γ/δ coding
- Gorilla (time-series)
- COBS (byte stuffing)
- Arithmetic coding
- CRC-32 walk
- Hamming(7,4) code
- Reed-Solomon
- Viterbi / convolutional
- Error control
- How a barcode works (UPC check digit)
- How a QR code is built (Reed-Solomon + masking)