Projects
- InteractivednslibA C++20 library that maps DNS wire-format messages (header, questions, EDNS(0) and many resource-record types including DNSSEC, with name compression and loop-proof decompression) to C++ values and back, plus a toy UDP and TCP server, a dig-like query tool, a benchmark and fuzz tests.C++
- InteractiveJPEG Encoder and DecoderA dependency-free C++17 JPEG codec - a baseline, extended and progressive Huffman JPEG decoder that writes BMP and a baseline JFIF encoder that reads 24-bit BMP - implementing the DCT, quantisation, Huffman coding and YCbCr.C++
Concepts
- Discrete cosine transformused by 1Expresses a block of samples as a sum of cosines; the core transform of JPEG.
- Huffman codingused by 1Optimal prefix-free codes built from symbol frequencies.
- Lossy compressionused by 1Quantisation, chroma subsampling and other ways to discard detail the eye barely notices.
- Colour spacesused by 2RGB, HSV and YCbCr representations of colour and the conversions between them.
- Binary encodings and protocolsused by 1Laying out structured data as bytes, including byte order, length fields and DNS name compression.

