forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on e5afa4e865ec6b0eaac27ac9972c9f6247d76b24

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