Commits
Today
Cargo.lock: ec-testkit dev-dependency for the oxideav-ac3 and symphonia shimsAhmet Kaan Gümüş · 764fa64Browse files
Merge simplify/w0-m9 (ec-bench: committed stills path, no home media)Ahmet Kaan Gümüş · de1790dBrowse files
Merge simplify/w0-m8 (ec-image stills: committed tests/data/stills, no skips)Ahmet Kaan Gümüş · 83b74a4Browse files
Test fixtures via ec-testkit in mp4/mpegts/matroska/riff/ogg/probe: ffmpeg from the pinned bundle, missing fixture or ffmpeg fails instead of skipping, real-library and $HOME media tests replaced by open clips or deletedAhmet Kaan Gümüş · 064c3afBrowse files
M9: ec-hw, ec-bench, oracle use ec-testkit for ffmpeg, fixtures and bitstreams; fixture and tool skips now fail, HOME/Downloads media replaced by open/derived clipsAhmet Kaan Gümüş · 07ab700Browse files
M2 fixtures: drop comments added by the migration; commit Cargo.lock with ec-testkit dev-dep edgesAhmet Kaan Gümüş · 3627f59Browse files
Tests: ec-aac/ac3/alac/amr use ec-testkit fixtures and ffmpeg; skip branches removed, missing fixtures panicAhmet Kaan Gümüş · ae25726Browse files
Migrate ec-h264/ec-h265 tests to ec-testkit: pinned ffmpeg and fixture paths, missing fixtures and ffmpeg now fail instead of skipping, personal-media sweeps retargeted to open clipsAhmet Kaan Gümüş · 82c21c8Browse files
Fixture migration M8: ec-testkit for ffmpeg and fixtures in image, ASS, subs, PGS, DVD/DVB and CC tests; skips become failures; real-library tests retargeted to open mediaAhmet Kaan Gümüş · 9981db7Browse files
ec-av1-syntax: streams test reads ec_testkit bitstreams fixtures and ffprobe; missing fixtures fail instead of skippingAhmet Kaan Gümüş · 92bd1ceBrowse files
ec-av1 tests: migrate to ec_testkit (ffmpeg/ffprobe, fixtures), drop have_ffmpeg/library_fixture skip helpers and manifest/real-library probes, aomdec-free conformance reads fixtures/vectors/av1-aomAhmet Kaan Gümüş · 6f9d280Browse files
Migrate ec-vp8, ec-vp9, ec-vp9-syntax tests to ec-testkit: fixture() and pinned ffmpeg/ffprobe, skip-if-missing branches removed (missing fixture fails), ensure_fixture and scratch_synth dropped, env-driven scratch probes made #[ignore]Ahmet Kaan Gümüş · 2c7500aBrowse files
2026-11-27
Windows: ec_hw::D3d11Pool copies captured D3D11 frames (WGC) into a ring of four shared NT-handle textures (CopyResource, Flush, event-query wait) and returns the D3d11Frame for encode_d3d11, so callers need no unsafe; imports key on a per-texture id instead of the handle value (a closed and reused handle can no longer hit a stale import). windows 0.62.2 as windows-capture 2.0.1. d3d11_pool example: verified on a WARP device (shared copies read back identical, ids cycle); the Vulkan import half still untested on Windows hardwareAhmet Kaan Gümüş · 9b67700Browse files
2026-11-25
vk-video-ffi: Av1DecodeSession (Main 8-bit, distinct DPB/output, plain-struct sequence/frame headers); smoke example bit-exact vs ffmpeg on a key frameAhmet Kaan Gümüş · 6c86984Browse files
vk-video-ffi: H265DecodeSession (Main 8-bit, distinct DPB/output, resolved short-term RPS); smoke example bit-exact vs ffmpegAhmet Kaan Gümüş · 6f8f2a3Browse files
vk-video-ffi: H264DecodeSession (distinct DPB/output, plain-struct SPS/PPS/refs, NV12 readback); smoke example bit-exact vs ffmpegAhmet Kaan Gümüş · 8defefbBrowse files
RGB input: GPU compute RGB/BGR->NV12 (BT.709 limited, matches ec-dsp) for Vulkan H.264/H.265/AV1 encode; HwEncoder::encode_rgb (VA path converts on the CPU); ec-dsp bgra_to_i420_709; hw_rgb exampleAhmet Kaan Gümüş · e98bba9Browse files
ec-hw: HwEncoder (Vulkan first, VA fallback on Linux), HwDecoder (VA for now), capabilities() without opening an encoder; compiles on every OS; hw_caps exampleAhmet Kaan Gümüş · 274b9cbBrowse files
Vulkan H.264 encode: vk-video-ffi H264EncodeSession (P-only, 1 ref, NV12 upload, CQP/CBR, VUI no-reorder); ec-vk H264Encoder (safe, GOP/force keyframe); h264_encode exampleAhmet Kaan Gümüş · 5c027c8Browse files
vk-video-ffi: Vulkan Video shim core (the one crate with unsafe): loader, instance, device with video encode/decode/compute queues, codec caps; caps exampleAhmet Kaan Gümüş · d305564Browse 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-23
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-10-23
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-09-14
vp9kf: ec-vp9 first lane scaffold — full keyframe pipeline (bool, header, tiles, modes, intra, tokens, transforms, loopfilter, stream) + extracted libvpx tables; bool roundtrips 7/7, profile-1 4:4:4 refusal pinned; byte-exactness vs ffmpeg still off (uv-mode entropy divergence, see lanes/vp9kf.report.md HANDOFF)Ahmet Kaan Gümüş · aee9373Browse files
2026-09-13
perf(mp3): the quantiser runs the level curve eight lanes wideAhmet Kaan Gümüş · 59ae240
perf(mp3): the quantiser runs the level curve eight lanes wide quantise_span evaluates |xr·scale|^(3/4) for a whole band through wide::f32x8 (abs, cube, two sqrt lanes, clamp, copysign, trunc) with a scalar tail, replacing the per-line f64 closure that 30% of the mono profile and a fifth of the stereo one lived in. Overflow lanes land in the same MAX_QUANT clamp the scalar path uses; every bench fixture still encodes byte-identically and the suite is green. encode: stereo CBR 109.8x -> 127.9x realtime (ratio 0.819 vs the incumbent, target 0.7 met), VBR 55.7x -> 67.5x.
2026-09-12
chore: Cargo.lock — rustfft optional dependency for the fft-rustfft featureAhmet Kaan Gümüş · e7bf696Browse files
ec-vp8 M1: bool arithmetic decoder, frame tag + full first-partition header parsing, RFC-transcribed tablesAhmet Kaan Gümüş · 5233d88
ec-vp8 M1: bool arithmetic decoder, frame tag + full first-partition header parsing, RFC-transcribed tables - bool.rs: RFC 6386 section 7.3 decoder (read_bool/literal/signed_literal/ maybe_signed/prob7/tree incl. the EOB-skipping token-tree form), plus a test-only reference bool encoder; round-trip tests at probability extremes, long LCG streams, literals to 19 bits, tree paths. - frame.rs: 3-byte LE frame tag, key-frame start code + dimensions/scaling, MB geometry. - header.rs: complete partition-1 header in dixie field order — colour space/clamping, segmentation (with cross-frame state), loop filter type/level/sharpness/deltas, token partition size table, quant indices, reference refresh/copies/sign-bias, coefficient probability updates, mb_no_skip_coeff, inter prob_intra/last/gf + ymode/uv/MV probability updates. PersistedState carries entropy/segmentation/filter deltas across frames and resets at key frames. - tables.rs: GENERATED verbatim from the RFC text by scripts/extract_vp8_tables.py (element counts asserted): default + update coefficient probs, kf_bmode_prob, coeff_bands, dequant lookups, Pcat1-6 (sentinel kept), default + update MV probs. - scripts/gen_vp8_fixtures.sh: libvpx-encoded IVF witnesses (6 sizes/q, 60-frame GOP, 8-token-partition vector via local vpxenc, WebP still). - Witness: real vpxenc/ffmpeg-produced streams parse with exact tiling of partition sizes, correct dims (incl. 76x52 non-MB-aligned), 8 partitions; VP8-in-WebP still decodes its header. 12 tests green, zero warnings.
2026-09-07
feat(ec-hw): AV1 encode on by default, and an ec-bench hardware rowAhmet Kaan Gümüş · 24f4e5c
feat(ec-hw): AV1 encode on by default, and an ec-bench hardware row The opt-in existed because a 2026-08-14 submission crashed the GPU; on mesa 26.1.8 the path encodes streams two decoders agree on, so the refusal goes rather than outliving its evidence. ec-bench gains an 'ec-hw av1 encode' row that skips as a row when there is no VA device.
feat(ec-hw): AV1 hardware encode that two independent decoders agree onAhmet Kaan Gümüş · a518304
feat(ec-hw): AV1 hardware encode that two independent decoders agree on The AV1 encode path submitted parameters no header described: radeonsi parses the application's sequence and frame header OBUs and writes the stream from them, so without those OBUs the coded buffer meant nothing. This writes both (spec 5.5.1 / 5.9.1, the subset the driver advertises: one tile, one reference, no CDEF, no restoration, no superres), fills the picture parameter buffer to agree with them field for field, and prepends the temporal delimiter the driver does not emit. Gate: ec-av1 and ffmpeg's libdav1d decode every shown frame of a 640x384 and a 1920x1080 stream sample for sample, and the coded picture is within 60 dB of the one submitted.
2026-08-27
feat(bench): audio encode, container demux and TrueHD rows in ec-benchAhmet Kaan Gümüş · 4ef277a
feat(bench): audio encode, container demux and TrueHD rows in ec-bench Extends the standing perf harness with the rows the ledger owed: encode rows for opus/vorbis/aac/mp3/flac/alac/ac3 driven off real decoded PCM (a WAV fixture through ec-probe's own AudioDecoder path), a TrueHD encode+own-stream-decode round trip (no fixture exists yet for the generic decode loop to pick up), and whole-file demux throughput rows for ec-matroska/ec-mp4 via ec-probe's Reader. Also fixes a duration fallback bug: ffprobe's own "N/A" string was short-circuiting the format-duration fallback via Option::or_else.
perf(h265): hoist the mode>=18 branch and idx/fact out of predict_angular's inner loopAhmet Kaan Gümüş · f9a6938
perf(h265): hoist the mode>=18 branch and idx/fact out of predict_angular's inner loop idx and fact (8.4.4.2.6) depend only on the row/column along the prediction direction, not on the position across it -- the old code recomputed the along/across swap and both divisions at every one of the n*n pixels. Splitting into a mode>=18 loop and a mode<18 loop computes idx/fact once per row (or column) and turns the inner loop into a contiguous scan over `reference`, which autovectorizes. Correctness gate: cargo test -p ec-h265 --release green incl. rdoq_cache_hash_is_pinned; intra:: unit tests (diagonal/flat/vertical- horizontal mode assertions) individually green. perf stat -e instructions,cycles -r 3, same 4-frame 1080p single-thread encode_idr loop, measured clean (load average checked before/after): before: 114,092,102,152 ... wait, see below after: 114,092,102,152 instructions / 21,900,322,280 cycles (baseline before this change: 116,465,368,212 instructions / 22,246,309,650 cycles -- -2.0% instructions, -1.6% cycles)
feat(bench): cover ec-image decode (all sniffed formats) and ec-inflateAhmet Kaan Gümüş · 1ee915b
feat(bench): cover ec-image decode (all sniffed formats) and ec-inflate Extends the harness with the two remaining tractable groups: ec-image's single decode() entry point runs over every real still and fixture, and ec-inflate is measured on the zlib stream a real PNG's own IDAT chain already carries.
feat(bench): standing realtime-factor harness across every codec crateAhmet Kaan Gümüş · 4d8621c
feat(bench): standing realtime-factor harness across every codec crate One new bin (tools/ec-bench) that drives each crate's own public one-shot API against real media (h264/h265/av1 video, aac/mp3/opus/vorbis/flac/alac audio via ec-probe's unified reader) and prints a ranked markdown table — the baseline every future optimization lane measures against.
2026-08-25
2026-08-24
feat(ec-av1): bit-primitive writers (leb128/uvlc/le/su/ns/delta_q/trailing_bits) with roundtrip testsAhmet Kaan Gümüş · d869345Browse files
ec-h264: probe container by bytes, accept Matroska alongside MP4Ahmet Kaan Gümüş · d5e9b8f
ec-h264: probe container by bytes, accept Matroska alongside MP4 Factor both demux call sites in tests/encode.rs onto one helper, open_h264_source, that reads 12 bytes from the file head and dispatches to ec_mp4::Mp4Demuxer (ftyp at offset 4) or ec_matroska::MatroskaDemuxer (EBML magic 1A 45 DF A3) — never by extension. A non-H.264 video track (AV1, HEVC) is refused with a message naming the codec, not a demuxer panic. Add ec-matroska as a dev-dependency. BD-PSNR ours vs x264 over q22/26/30/34: -0.732 dB (FMA 01, 1280x720, H.264-in-Matroska, 24 pictures). AV1 .mkv refusal confirmed: 'video track is Av1, not H.264 — this gate measures H.264 only'.
2026-08-21
2026-08-20
Merge branch 'truehd': TrueHD/MLP decoder (bit-exact on the 7.1 remux) + probe/matroska wiringAhmet Kaan Gümüş · 6bd4f3dBrowse files
feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified readerAhmet Kaan Gümüş · 4026107
feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified reader ec-probe's AudioDecoder now carries a TrueHd arm (mirrors Ac3: send_packet/ receive_frame/flush/reset through the generic Decoder trait), so a TrueHD track decodes through Reader/AudioDecoder like any other codec instead of only being named in Reader::unsupported. ec-matroska's muxer writes CodecId::TrueHd back out as A_TRUEHD (demux already read it in); the symphonia shim needed no change since it wraps ec_probe::AudioDecoder generically. Library test updated from "TrueHD is listed unsupported" to "the TrueHD track in his 7.1 remux decodes, 8ch/48kHz, alongside the AC-3 track"; added a demux->mux->demux codec-id round-trip test in ec-matroska.
feat(truehd): new ec-truehd crate — access-unit framing and major syncAhmet Kaan Gümüş · f77ac31
feat(truehd): new ec-truehd crate — access-unit framing and major sync frame_length, major sync detection (format id + sample rate) and the per-substream directory, all calibrated bit-for-bit against a real 7.1 Blu-ray remux (AU count matches ffprobe exactly: 1,270,169). Substream decode itself is stubbed as Unsupported, named for H2; the 4th (object/16-ch) substream is out of scope and refused by name.