edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
av1safe-nopipe: pipelined post-filter removed
Outcome
Partial. The per-superblock-row filter pipeline is deleted and the whole-frame filter path is now the only path. The grep target is NOT met: post_filter.rs still has the whole-frame CDEF unsafe (cdef_rows, Shared::get, lines ~61-66). frame_tile.rs has no unsafe left. The bench step was not run (see Bench).
Approach
- Removed
PipeQ,PipeSync,UnwindAbort,snap_band,PipeCfg,LrCfg,LrPlane,PipeGuard,pipe_run,pipe_run_lr,wave_rows_complete,pipe_filters_ok, thePIPE_FRAMES/PIPE_WHOLE/PIPELINE_TAKEN/LR_PIPELINE_ROW0statics and their accessors. EC_AV1_PIPE_FILTERSknob gone withpipe_filters_ok.frame_tile.rs: pipe install site, the per-rowp.notecall, and thepipelinedbranches in the tail removed; the whole-frame deblock, CDEF, LR and snapshot run unconditionally.- Dead helpers removed:
deblock_span,snap_alloc,Shared::from_ptr(par.rs, additive-only rule noted),timeline::note_pipe, thepipe=field of the wave-stats line indecode/mod.rs. - Stale pipeline comments rewritten in deblock.rs, inter_shapes.rs, counters.rs, restoration.rs, decode/mod.rs.
faultsitefilterremoved (it lived in the pipeline band loop);tests/worker_panic.rsno longer arms it.Cargo.lock: addscpu-time(already in the base commit's Cargo.toml; the lock was out of date).
Files
crates/ec-av1/src/decode/post_filter.rs, decode/frame_tile.rs, decode/coeffs.rs, decode/deblock.rs, decode/mod.rs, decode/inter_shapes.rs, decode/counters.rs, restoration.rs, timeline.rs, par.rs, fault.rs, stream/tests/t02.rs, tests/worker_panic.rs, Cargo.lock.
Remaining unsafe
decode/post_filter.rscdef_rows(whole-frame CDEF, used byapply_cdef):Shared::new+Shared::getin the band closure. Removing it needscdef_band(decode/replay.rs) to index row-offset slices instead of absolute full-plane indices, pluswrotebanding. That is a kernel rewrite and was not done here.
Tests
- Deleted:
stream::tests::t02::a_444_sb128_witness_lr_pipeline_flushes_ru_row_0_pixel_exact(pipe-vs-serial witness; only existed to prove the pipeline ran). - Full gate (
EC_AV1_AOM_DIR=$HOME/fixtures/av1-aom EC_REQUIRE_FIXTURES=1 cargo test --release -p ec-av1 --no-fail-fast -- --test-threads=4, clippy-D warningsfirst, logtarget-logs/nopipe-gate2.log):- lib: 817 passed, 0 failed, 49 ignored (base 818 minus the one deleted test)
- other binaries: all ok, 0 failed (worker_panic 1 passed, aom 1 passed, plus the rest)
- clippy
--all-targets -D warnings: clean
- Earlier run without
--test-threads=4was SIGKILLed in the lib binary; not used.
Bench
Not run. A base-vs-lane comparison needs the base decode_bench on the same host while the coordinator's base gate is running, which would skew timings; no decode_bench numbers are reported.