edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane/hevcmerge report
Goal
Merge lane/hevcintra (pixel pipeline, base e2168158) with main (dccd4503: hevcmvpred motion derivation, hevcmc, hevcpwtfix) into one branch lane/hevcmerge.
Base
- hevcintra: e2168158
- main: dccd4503
- branch
lane/hevcmergecreated from e2168158, thenmainmerged in.
Resolution rules applied
- Kept hevcintra's pixel pipeline: PicState, recon, deblock, SAO, u16 planes, all_intra.
- Kept main's real motion:
SliceMotionbuilt viamotion_field::collocatedandslice_motion. NoZeroMotionon real slices. - The per-picture
MotionFieldis stored on the DPB picture (dpb.set_motionwith the compressedColField). - All module declarations kept from both sides (
motion_field,pic,sao,weighted, and the rest). - Inter pixels remain placeholder. There is no MC wiring in this lane.
Changes
crates/ec-h265/src/dec/inter.rs: took hevcintra's version. Main'sdecode_inter_sliceremoved (only the old test used it).crates/ec-h265/src/dec/mod.rs:- Imports:
cu_syntax::{parse_slice, parse_slice_into},motion_field::{ColField, MotionField, SliceMotion, SliceRefs},pic::PicState. CurPicturecarriespic,all_intra, andmotion: Option<MotionField>. Main'spixelsfield dropped.decode_slicebuilds the realSliceMotiononce and passes it to both the syntax-check path (parse_slice) and the pixel path (parse_slice_into).slice_motiontakes its fields separately to avoid borrow conflicts.finish_picturesetspic.motion = field.deblock_units()before deblocking, then stores the compressedColFieldin the DPB and updatesmotion_checksum.
- Imports:
- Bug fix (bS identity): hevcintra's
cu_syntax::store_motionwroteref_pic = ref_idx, which is not a picture identity. Removedstore_motionand its two calls incu_syntax.rs. AddedMotionField::deblock_units()inmotion_field.rs, which sets ref identity to POC through the slice'sSliceRefs. Intra and undecoded blocks get defaults. The bS motion source is now the MotionField only. crates/ec-h265/src/pic.rs: doc comments updated (PuMotion.ref_picis POC; motion filled from the motion field before deblocking).crates/ec-h265/tests/cu_syntax.rs: resolved to main's let-chain style. It callscu_syntax::parse_slicewithZeroMotionfor a standalone sidecar parse, because that test has no DPB to derive real motion from. The doc comment and print message were updated ("inter syntax: ... P/B slices parsed").
Verify
cargo clippy -p ec-h265 -p ec-h265-syntax --all-targets -- -D warnings: PASS (exit 0).cargo test -p ec-h265 -p ec-h265-syntax --release: PASS, all suites ok (exit 0). Suites: ec-h265 unittests 79/79; conformance 15/15; conformance_intra 1/1; cu_syntax 4/4; dec_meta 4/4; dec_shell 13/13; decode 5/5; encode 4/4; perf 3/3; rdoq_cache_hash 3/3; scaling_lists 0 run, 1 ignored; ec-h265-syntax unittests 29/29, fuzz 2/2, sei_sweep 1/1.- conformance_intra exact-intra count: 269 intra pictures checked, 269 exact, 100/147 streams accepted (
--nocapturerun, exit 0). - hevcmvpred determinism over conformance streams: 147 streams, 0 slice failures,
motion_derivation_is_deterministic_over_conformance_streamsok (--nocapturerun in package ec-h265, exit 0). The first attempt used-p ec-h265-syntaxand failed to find the target; the test is in package ec-h265.
- conformance_intra exact-intra count: 269 intra pictures checked, 269 exact, 100/147 streams accepted (
cargo check --workspace --all-targets: see the result line below.
What is left
- Inter MC wiring: inter pixels are still placeholder. Wiring hevcmc into the pixel path is the next lane.
- The
cu_syntaxstandalone test still usesZeroMotion. Switching it to real motion needs a DPB-backed harness.