← Back
Home › Systems › Communication and media

image-codec

image codec

JPEG XL, AVIF

SystemTechniques · 2Primitives · 13 image-codec Context modelingcompression · medium: Adaptive context selection and prediction feeding an entropy coder (MA trees, context mixing)Rate distortion optimizationmedia · medium: Choose modes minimizing D + lambda*R for coding decisionsArithmetic codingcompression · low: Encodes a whole message as one number in [0,1), spending fractional bits per symbol; pairs with adaptive context models for the best ratios.›Asymmetric numeral systems (ANS)compression · low: Entropy coder that packs fractional bits into a single integer state; arithmetic-coding ratio at Huffman-like speed, the entropy stage of zstd and LZFSE.›Intra predictionmedia · low: Predict a block from neighbouring pixels (directional, DC, planar modes)Perceptual quality metrics (PSNR, S…media · low: Full-reference scores that say how bad a compressed picture looks: PSNR (pixel error), SSIM (structure), VMAF (learned fusion), and when each one lies.›Huffman codingcompression · low: Optimal prefix code with whole-bit codeword lengths; table-driven decoding at about one symbol per few cycles, the entropy stage of DEFLATE, JPEG and zstd literals.›Color space conversiongraphics · low: Convert pixels between transfer curves (sRGB, linear light), primaries (sRGB, Display P3, XYZ) and Y'CbCr, using tables for the curve and 3x3 matrices for the rest.›SIMD programminghardware-os · low: Process 4-16 lanes per instruction with AVX2, AVX-512 or NEON via Rust std::arch, with runtime dispatch and a portable fallback.›Adaptive quantizationmedia · low: Per-block QP offsets driven by local texture energy: spend bits on flat areas where blocking shows, save them where texture masks the error.›Chroma subsamplingmedia · low: 4:2:0/4:2:2 colour plane downsampling and sitingIn loop filtersmedia · low: Deblocking, SAO and CDEF filters applied inside the codec prediction loopProgressive decodingmedia · low: Coarse-to-fine image passes for early displayDiscrete cosine transformnumerics · low: Fast integer DCT/DST block transforms used by image and video codecsFast hash functionsdata-structures · low: Non-cryptographic hashes built from 64×64→128-bit multiplies and xor-shifts; pick by key size, trust level and whether the hash is persisted.›

Similar systems

Share the most building blocks with this one.