forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on d305564edc661f73d42c4ff6095d669c969c6295

2026-11-25

2026-11-24

ec-opus: CELT encoder replaced by a port of the libopus 1.6 float encoder (celt_flp: celt_encoder.c, bands, vq, quant_bands, pitch, MDCT/FFT); every Opus packet now byte-identical to libopus 1.6 across VoIP/Audio/LowDelay, mono/stereo, CBR/VBR, FEC on/off, 8-128 kb/s, 2.5-60 ms frames (CELT-only, hybrid, SILK, mode switches, redundancy)Ahmet Kaan Gümüş · e844676
ec-opus: CELT encoder replaced by a port of the libopus 1.6 float encoder (celt_flp: celt_encoder.c, bands, vq, quant_bands, pitch, MDCT/FFT); every Opus packet now byte-identical to libopus 1.6 across VoIP/Audio/LowDelay, mono/stereo, CBR/VBR, FEC on/off, 8-128 kb/s, 2.5-60 ms frames (CELT-only, hybrid, SILK, mode switches, redundancy)

- tonality analysis bit-exact: opus_fft instead of the conjugate inverse FFT, double-precision log/log10/sqrt/floor where libopus uses them, input clamp at +6 dBFS, lsb_depth silence test; always on (libopus runs it at complexity >= 7), detected bandwidth always applied
- libopus low-rate TOC-only packets; self-delimited and multistream 40/60 ms framing; CBR padding is zeros
- hybrid HB_gain is 1 - 2^(-celt_rate/1024) (float SHR32 is a no-op); LowDelay runs dc_reject with total_buffer 0
- silk_LPC_fit chirp constant SILK_FIX_CONST(0.999, 16) = 65470 (was 65471), shared with the decoder
- prev_channels tracked every frame, so stereo->mono switches take libopus's two-frame toMono path
- i16 encode() uses lsb_depth 16 like opus_encode
- old celt_enc.rs encoder, Encoder::last_celt_diag and the probe tests built on it removed
ec-opus: libopus 1.6 opus_encode_native decisions and switch mechanicsAhmet Kaan Gümüş · e7e5914
ec-opus: libopus 1.6 opus_encode_native decisions and switch mechanics

- decide(): stateful port of the libopus mode/bandwidth/stream-channel logic (prev_mode +-4000 hysteresis, auto_bandwidth hysteresis, first, allowBandwidthSwitch / inWBmodeWithoutVariableLP gating, voice_ratio from analysis music prob, stereo_width, decide_fec, SILK<->hybrid by bandwidth); auto-mode configs match libopus on every frame (mono speech, VoIP/Audio, CBR/VBR, FEC on/off, 8-64 kb/s)
- redundancy: 5 ms CELT redundant frames CELT->SILK and SILK->CELT, silk_bw_switch, compute_redundancy_bytes, SILK budget minus redundancy, redundancy signalling, rangeFinal ^= redundant_rng; SILK prefill on CELT->SILK and bandwidth switch; CELT reset + 2.5 ms prefill on mode change
- stereo: stream_channels mono downmix in CELT (CELT_SET_CHANNELS) and SILK, toMono, TOC stereo bit, stereo width + stereo_fade
- hybrid VBR: unconstrained CELT at max(501, bitrate - silk rate), SILK offset to CELT, HB_gain gain_fade; hybrid VBR bytes within 0.5% of libopus (was +10%)
- 40/60 ms CELT/hybrid: per-20 ms budget, repacketizer code 1/2/3 + CBR padding, per-sub-frame analysis info
- delay buffer moved to the Opus layer (libopus delay_buffer)
- SILK-only stays byte-identical to libopus, including bandwidth-switch packets (except the CELT redundant tail)

2026-11-23

2026-11-17

2026-11-16

ec-hw: 10-bit HEVC encode, pipelined submit/flush, prime submit, CBR/VBR closed-loop rate correction; remove edith-sinkAhmet Kaan Gümüş · ccbbd43
ec-hw: 10-bit HEVC encode, pipelined submit/flush, prime submit, CBR/VBR closed-loop rate correction; remove edith-sink

- submit/submit_16/submit_prime + flush: DEPTH-3 pipelined encode, pool zero-filled
- submit_prime: GPU copy of an imported surface into a pool surface, padding zeroed (bit-identical to the CPU upload path)
- rate control: once-a-second bias + debt correction; mesa 26.2.6 / fw 20261019 overshoot 12-19% on detailed content (ffmpeg vaapi too)
- edith-sink removed: the MCP export path covers it

2026-11-15

2026-11-08

Encoder fixes from round-trip sweep follow-upAhmet Kaan Gümüş · f849ee9
Encoder fixes from round-trip sweep follow-up

- ec-opus: 40/60 ms CELT/Hybrid as code-3 packets of 20 ms frames; self-delimited framing for code-3 packets (multistream 40/60 ms); multistream buffer sized for 60 ms
- ec-image GIF: pixels turning transparent re-emit the previous frame with disposal 2 over the cleared area
- ec-mp3: padding bit at 44.1/22.05/11.025 kHz
- ec-aac: refuse bitrate 0
- ec-vorbis: refuse non-finite quality
- ec-h264: refuse non-positive frame rate instead of clamping to 1
- ec-av1: with_pyramid doc matches behaviour (mini_gop > gop is clamped)
Encoder parameter-path fixes found by ffmpeg round-trip sweepsAhmet Kaan Gümüş · c561bfe
Encoder parameter-path fixes found by ffmpeg round-trip sweeps

- ec-truehd: set nonrestart_substr on access units without major sync;
  ffmpeg rejected every AU after the first
- ec-mp3: write the Xing/Info frame at a bitrate that holds the whole tag;
  at low bitrates the truncated tag made ffmpeg read gapless fields from
  audio frames (16 kHz/8 kbps decoded as noise, others shifted)
- ec-aac: cap a frame at 6144 bits per channel; high bitrate per channel
  overflowed the decoder buffer and the 13-bit ADTS length
- ec-av1: validate tiles against the superblock size actually coded (128),
  no shift overflow on huge log2, refuse base_q_idx 0 (lossless) up front
- ec-ac3: 0 Hz no longer panics
- ec-alac: refuse frame_length outside 1..=2^20 (0 hung) and 0 Hz

2026-10-23

Merge testcut-p2-av1e: testcut Phase 2 laneAhmet Kaan Gümüş · 71978f3
Merge testcut-p2-av1e: testcut Phase 2 lane


# Conflicts:
#	scripts/kill-matrix-analyze.py
#	scripts/kill-matrix.sh
testcut p2 ec-av1 encoder tests: batched kill matrix, no deletionsAhmet Kaan Gümüş · 3f482f8
testcut p2 ec-av1 encoder tests: batched kill matrix, no deletions

Heavy-first kill matrix on a 24-mutant seeded sample (fixtures-correct scratch,
unmutated baseline 36/36 heavy and 683/683 fast). One fast-suite survivor; every
candidate keeps unique coverage, so zero tests deleted. Gate and clippy clean.
testcut P2 ec-h264: delete four heavy tests with mutation kill evidenceAhmet Kaan Gümüş · e9b9397
testcut P2 ec-h264: delete four heavy tests with mutation kill evidence

Delete every_quantiser_matches_ffmpeg, every_quantiser_with_motion_matches_ffmpeg,
high_profile_8x8_matches_ffmpeg and x264_hi444_10bit (222.2 s saved). Keep
x264_hi444_8bit (K'=4), both never_panic tests (weak oracle, kill 4 each) and
jvt_hi444_vectors_bit_exact (protected). Evidence from the r4 run; r1-r3 invalid.
Mutation runs exclude encode::real_library_frames_encode_and_decode_exactly
(needs personal media).
testcut P2 ec-h265: report fixAhmet Kaan Gümüş · 078f96fBrowse files
testcut p2 av1s: heavy and fast kill matrix, analysis report (0 deletions)Ahmet Kaan Gümüş · e113f3d
testcut p2 av1s: heavy and fast kill matrix, analysis report (0 deletions)

Sample 60 mutants: 32 killed by heavy tests, 31 of those killed by the fast suite;
mutant 48 is the single fast survivor, killed only by t04 recon-threads parity.
Every heavy candidate has coverage the fast suite does not reach, so none is deleted.
testcut p2 av1s: exact-mutant runner, mut nextest profile, heavy shardsAhmet Kaan Gümüş · 6601a97
testcut p2 av1s: exact-mutant runner, mut nextest profile, heavy shards

cargo-mutants --re/-F does not filter by name here (fast pass tested the first N mutants),
so both modes apply one mutant with scripts/mutate.py and run nextest directly.
[profile.mut] terminates hung tests after 420 s (counted as kill).
testcut p2 av1s: heavy-mode kill runner, failing parser, lane listsAhmet Kaan Gümüş · f7de183
testcut p2 av1s: heavy-mode kill runner, failing parser, lane lists

Heavy mode runs each mutant against its covering heavy tests with --no-fail-fast and
records every failing test; cargo-mutants stops at the first failure. Per-test coverage
(214 MB) stays local (gitignored).
cargo runner: find memguard-runner.sh without .gitAhmet Kaan Gümüş · 6bdd141
cargo runner: find memguard-runner.sh without .git

cargo-mutants scratch copies and remote-run rsyncs have no .git, so
`git rev-parse` failed and the test runner never started. Fall back to
walking up from the cwd.
Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.

2026-10-06

Merge lane/av1422mixll10: skipped intrabc+lossless 4:2:2 leaf writes both chroma rowsAhmet Kaan Gümüş · dd25ef9
Merge lane/av1422mixll10: skipped intrabc+lossless 4:2:2 leaf writes both chroma rows

An 8x8 intrabc leaf in a lossless segment at 4:2:2 fell through decode_leaf8's skip-arm else and pushed one 4x4 of a 4x8 chroma plane block. The second row stayed unwritten (sentinel 0). Witness 422_mixll_intrabc_lossless_320x240_5f.obu sha256 9fa1f1d28d61e3096d70908728f9cdfa1a570b9769a3d31e8d385a61c12a2b25, frame 0 U/V (140..143,188..191) 0 vs 664/64. The else now windows the override per 4x4 unit. Gate green, flip control 0 to 1, stash mutation reds [0,16,16]. Reviewer PASS 0.93. The U arm already pushes both planes and the V arm pushes plane 2 again with the same arguments; that second push rewrites samples only and does not republish context.
lane/av1422mixll10: a skipped intrabc+lossless leaf predicts its whole 4x8 chroma plane blockAhmet Kaan Gümüş · 451c769
lane/av1422mixll10: a skipped intrabc+lossless leaf predicts its whole 4x8 chroma plane block

decode_leaf8's skip arm dispatched chroma on `chroma_422 && !lossless` ->
leaf8_chroma422_unit, else-if `chroma_units_ll` (which requires
`intrabc_bufs.is_none()`) -> two 4x4 units, else a SINGLE push_intra of
csz x csz at (cpx, cpy). An INTRABC + LOSSLESS 8x8 leaf at 4:2:2 falls to
that else: the override buffer is the whole 4x8 plane block (cw x ch = 4x8),
but the push reconstructs only 4x4, so rows cpy+4..cpy+8 were never written.

Witness: probe cell5 frame 0, leaf mi (46,70), intrabc DV (-1024,-64),
segment lossless. U(140..143,188..191) read the sentinel poison 0 against
the oracle's 664 (EC_AV1_PLANE_SENTINEL census: U unwritten=16,
spans y188..191 x140..=143); 16 U + 16 V samples differed on frame 0,
frames 1-4 exact. Writer named by gdb conditional break + PIXPROBE: the
write of 664 DOES happen at (140,184) 4x4 -- the missing one is the second
unit row, never pushed (capture_filter_replay exonerated: it only reads
the planes into the thread-local slot).

Fix: the skip arm's else, when a prediction override (intrabc frame copy
or palette colour map) is present and the plane block is taller than csz,
predicts per 4x4 unit off the cw-stride window (`palette_window`), the
same slice `read_intra_chroma_lossless` feeds set_palette_pred. Both
planes (U at 25732, V at 25847).

Gate: a_422_mixll_intrabc_lossless_leaf_predicts_whole_chroma_plane_block
pins 422_mixll_intrabc_lossless_320x240_5f.obu (79333 bytes, fnv1a64
8342335520738450773, 320x240 yuv422p10le, 5 frames): every plane of every
frame byte-exact vs ffmpeg, depth asserted 10 off the stream's own
sequence header, and one flipped oracle U sample must move the U count
0 -> 1. Mutation-proved: with the fix stashed the gate's own assert reds
[0, 16, 16] (the unwritten 16-sample pair), restored green [0, 0, 0].

Scope: ec-av1 lib suite (encoder::tests excluded, they outlive the
deadline) 766 passed / 0 failed. 8-bit control cell2.obu (sha256
2fc8b22e...) scp'd from user@host-a:~/hunt422mix/out and stays
byte-exact vs ffmpeg on all 5 frames (yuv422p).

2026-10-05

Merge lane/av1422schunt: 8 screen-tools 4:2:2 cells exact, tools did not fireAhmet Kaan Gümüş · e806f1b
Merge lane/av1422schunt: 8 screen-tools 4:2:2 cells exact, tools did not fire

8/8 byte-exact vs ffmpeg at 629ed5bd (256x144 and 384x256, 8-bit and 10-bit, cq 20/40). Flip control moved 8-bit and 10-bit zeros by exactly 1. The streams parse screen_tools but intrabc, palette, and var-tx counters stay 0: flat smptebars never motivated those tools. Coverage is screen-tools inter, not those arms. 10-bit cells are 6 frames, not 12, because the y4m wrapper sliced at 8-bit sample count.
Merge lane/av1422a2a4: intrabc var-tx tail no longer clobbers the per-leaf bandAhmet Kaan Gümüş · 05d59ea
Merge lane/av1422a2a4: intrabc var-tx tail no longer clobbers the per-leaf band

A4 (sha256 e680b638..., 30937 B) refused mid-tile on efd1adf0 with the
subsize string. Both oracles decode those bytes. The refusal was a desync:
decode_block's tail published a block-level TXFM context after an intrabc
var-tx tree, resetting left_txfm 16 to 8. The next tree read ctx 10 where
libaom reads 9. Both publishes are now gated on the tree having run.
The subsize guard is unchanged. decode_intrabc_owned_rect is not in the diff.

Reviewer PASS 0.92. Re-decoded A2, A3, and A4 byte-exact vs ffmpeg and
aomdec. Both tail mutations red at the gate's own assert (stream.rs:9755).

Correction, not in the lane text: the gate pins size and FNV-1a64, not
sha256. The sha equality to the hunt stream was proven by the reviewer
with sha256sum and cmp, and is not what the gate enforces.
Merge lane/av1422ibcsplit: owned-rect tree branch not reachedAhmet Kaan Gümüş · 13a1ba3
Merge lane/av1422ibcsplit: owned-rect tree branch not reached

Twelve aomenc encodes, each under 180s, produced zero streams that enter
decode_intrabc_owned_rect's TX_MODE_SELECT tree branch at 4:2:2. The intrabc
var-tx trees that did fire were on square blocks, a different function.
No decoder edit. No unreachability assertion. Report only.