Commits
Commits on
24666c0482f23b366ea752d2eb988c41ea07657f2026-11-25
ec-va: depend on the vendored cros-libva by path instead of a workspace [patch], so path and git consumers get the VPP use-after-free fix without patchingAhmet Kaan Gümüş · 24666c0Browse files
ec-av1: StreamDecoder, a persistent decoder fed one temporal unit at a time (decode / decode_temporal_unit), so inter frames decode across calls; decode_stream_with_threads is a wrapper over it; lanes: hwvideo charter (Vulkan Video first, VA frozen)Ahmet Kaan Gümüş · b63bf80Browse files
ec-h265: SequenceEncoder, a push-style IDR+P encoder (encode(frame, force_keyframe)), byte-identical to encode_sequence; forced IDRs restart the GOPAhmet Kaan Gümüş · 19320a9Browse files
ec-h264: Encoder::encode_with(frame, force_keyframe) codes an IDR on demand and restarts the GOP from itAhmet Kaan Gümüş · 7aaf710Browse files
ec-va: import_prime_raw / RawPrimeObject import DMA-BUFs by borrowed RawFd; cros-libva vendored in shims with Buffer owning its params, fixing a use-after-free of VAProcPipelineParameterBuffer regions that made every VPP region/scale convert render nothing (encode_surface/encode_frame of a size-mismatched source encoded black); ec-hw: submit_prime scales any source size to the encoder's size on the GPUAhmet Kaan Gümüş · d27d669Browse files
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)
ec-opus: SILK burg loop index no longer underflows in debug builds (cab[n + 1 - k]); SILK packets that bust their byte budget become a 1-byte PLC payload with final range 0 like libopus instead of indexing past the range buffer (CBR 6 kb/s 10 ms panicked in release too)Ahmet Kaan Gümüş · 7b15b46Browse files
ec-opus: SILK encoder replaced by a port of the libopus 1.6 float encoder (silk/float, enc_API.c, resampler, NSQ/NSQ_del_dec, LBRR, stereo LR->MS); SILK packets byte-identical to libopus for NB/MB/WB, mono/stereo, 10/20/40/60 ms, VBR and CBR (opus_packet_pad padding), FEC on; libopus Opus-level glue: SILK rate rules, VoIP hp_cutoff / dc_reject input filter feeding every layer, opusCanSwitch bandwidth switching, CBR <15 kb/s hybrid->WB cap, peak energy tracked every frame; CELT input alignment (312-sample delay) on by default except LowDelay, so CELT/SILK/hybrid share one look_ahead; hybrid CELT layer no longer starts every frame with 4 ms of zeros (HF +1..+5 dB bias gone); range coder clears its tail on done like ec_enc_done; silk_log2lin clamp and silk_ADD_POS_SAT32 semantics fixed; old SilkEncoder/SilkStereoEncoder API removedAhmet Kaan Gümüş · 3d2e08fBrowse files
ec-opus: SILK comfort noise (silk/CNG.c, bit-exact vs libopus 1.6 SILK PLC), Encoder::set_dtx (libopus DTX: TOC-only packets after 200 ms inactivity, 400 ms refresh), LBRR for stereo 10/20 ms and mono 40/60 ms, loss-driven LTP scaling (silk_LTP_scale_ctrl), MultistreamDecoder::conceal/decode_fec, MultistreamEncoder::set_inband_fec/set_packet_loss_perc; CELT noise PLC synthesizes long blocks like libopus; FEC-off output unchangedAhmet Kaan Gümüş · 237a87fBrowse files
ec-opus: SILK packet loss concealment (port of libopus silk/PLC.c: conceal, update, glue frames, BWE after loss, voiced->unvoiced transition); Decoder::conceal, decode_fec without LBRR and DTX frames now use it for SILK/hybrid; SilkDecoder::decode takes SilkFrameMode {Normal, Lbrr, Lost}Ahmet Kaan Gümüş · 86fb0f3Browse files
ec-opus: in-band FEC (SILK LBRR): Encoder::set_inband_fec/set_packet_loss_perc (libopus decide_fec, loss-aware equiv rate, FEC forces SILK/hybrid; mono SILK/hybrid 10/20 ms), Decoder::decode_fec (LBRR decode, hybrid CELT band concealment, PLC fallback); interop with libopus 1.6 both ways; FEC-off output unchangedAhmet Kaan Gümüş · 90e21f2Browse files
2026-11-23
ec-probe: AudioDecoder::reset keeps the AAC AudioSpecificConfig; raw mp4/mkv AAC no longer fails after a seekAhmet Kaan Gümüş · a31973fBrowse files
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: restore ffmpeg_decodes_bit_exactly_at_every_shape (hang mutant not killed by fast suite)Ahmet Kaan Gümüş · b49be85Browse files
testcut P2 ec-h265: delete 4 heavy tests with release-mode kill evidenceAhmet Kaan Gümüş · ddcb861Browse files
testcut P2 ec-h265: b2 chain stopped; timeouts invalid, all keptAhmet Kaan Gümüş · b68a710Browse 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: fast baseline subcommand, exclude baseline-failing aom test from fast killsAhmet Kaan Gümüş · f3d1c4fBrowse files
testcut P2 ec-h265: resumed run stopped; report partial, all candidates keptAhmet Kaan Gümüş · f899940Browse files
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.
lane/av1422schunt: 8-cell 4:2:2 screen-content hunt, 8/8 EXACT vs ffmpegAhmet Kaan Gümüş · 2afe35cBrowse files
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.