Commits
Commits on
6828b152fbb3de7dbfdfdce189e9b72de86552f7Filtered to crates/ec-h264/tests/encode.rsClear filter2026-08-21
2026-08-20
feat(h264-enc): honest 8x8 rate term, dead-zone 8x8 quantiser, 8x8 gain testAhmet Kaan Gümüş · b397db5
feat(h264-enc): honest 8x8 rate term, dead-zone 8x8 quantiser, 8x8 gain test The 8x8 quantiser now rounds with the same 1/3 (intra) / 1/6 (inter) dead zone as the 4x4 one, and the mode decision charges a level's position in a 64-coefficient significance map: without it Intra_8x8 was picked on 28 macroblocks that cost 44 real bits more each. The gain test codes curved shading, a 20-sample texture and glyph rows at qp 26: +0.30 dB at equal bits, 7.4% of macroblocks 8x8 (100 intra, 123 inter). The conformance gates assert 8x8 macroblocks of both kinds across their sweeps, and the VA-API decode runs with the flag on.
feat(h264-enc): Intra_8x8 prediction and the 8x8 transform for inter residuals, chosen on rate-distortion costAhmet Kaan Gümüş · 4e4673b
feat(h264-enc): Intra_8x8 prediction and the 8x8 transform for inter residuals, chosen on rate-distortion cost transform_size_8x8_flag now follows a real decision: Intra_8x8 is coded alongside Intra_4x4 and Intra_16x16 (decoder's filtered reference samples and neighbour-mode rule), P macroblocks try both transform sizes on the same prediction, and the residual writer takes the cat-5 / interleaved path. Encoder::transform_8x8_mbs() counts what was chosen; the reconstruction, ffmpeg and VA-API gates run with 8x8 macroblocks present.
feat(h264-enc): transform_size_8x8_flag emission + cat-5 / interleaved-CAVLC 8x8 residual writers (E3)Ahmet Kaan Gümüş · 655dfcc
feat(h264-enc): transform_size_8x8_flag emission + cat-5 / interleaved-CAVLC 8x8 residual writers (E3) Flag written (always 0 for now) wherever the decoder reads it under transform_8x8_mode_flag; CABAC residual_block_8x8 mirrors the decoder's cat-5 path (no coded_block_flag for 4:2:0); CAVLC sub_block_4x4 interleave helper. Round-trip unit tests through the decoder's own readers; encode integration tests gain transform_8x8=true variants.
2026-08-14
test(h264): both entropy coders across the encoder sweepAhmet Kaan Gümüş · db36daa
test(h264): both entropy coders across the encoder sweep The encoder defaults to CABAC now, so the reconstruction sweep and the ffmpeg bit-exactness sweep both run each configuration under CAVLC as well: an entropy coder nothing exercises is one that silently rots.
test(h264): encoder conformance against both decoders and the libraryAhmet Kaan Gümüş · 2fb37fb
test(h264): encoder conformance against both decoders and the library Every stream the encoder writes decodes to the encoder's own reconstruction sample for sample — in this crate's decoder, in ffmpeg and, at 60 dB, on this machine's VA-API decoder. The sweep covers a QP ladder, both presets, one and four threads, sizes that are not macroblock multiples, constant bitrate, and real 1080p+ pictures demuxed by ec-mp4 and decoded by this crate.