From 6ef8c840bb44d4adb8ab767807cca0e35cf27e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 23 Sep 2026 13:31:13 +0300 Subject: [PATCH] ec-av1: cite decodeframe.c:1262 for the skip reset; correct the report's ours hash (review P3s) --- crates/ec-av1/src/decode.rs | 4 ++-- crates/ec-av1/src/stream.rs | 2 +- lanes/av1loss64.report.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index c2a0a5bf..640a6b2f 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -5026,7 +5026,7 @@ thread_local! { static CHROMA_EDGE_TU_CLIP_HITS: std::cell::Cell = const { std::cell::Cell::new(0) }; /// lane-av1-loss64: skipped lossless intrabc rect strips whose luma /// entropy bands were zeroed per unit (libaom `av1_reset_entropy_context`, - /// decodemv.c:1262) instead of leaking the previous occupant's. + /// decodeframe.c:1262) instead of leaking the previous occupant's. static SKIP_LOSSLESS_BAND_RESET_HITS: std::cell::Cell = const { std::cell::Cell::new(0) }; } @@ -12385,7 +12385,7 @@ fn decode_intrabc_owned_rect( push_mc_rect(2, px / 2, py / 2, cside, cw, ch, Pred::Inline(&pred_v, cside), &ZERO_RESIDUAL[..cside * ch], fctx); if let Some(ls) = leaves.as_ref() { // libaom `av1_reset_entropy_context` (`if (mbmi->skip_txfm)`, - // decodemv.c:1262 -> blockd.c:58): a SKIPPED block zeroes its + // decodeframe.c:1262 -> blockd.c:58): a SKIPPED block zeroes its // whole entropy-band footprint. The non-skip arm below writes // those bands per transform unit and the tail's // `record_split_luma_rect_mi` writes chroma only, so without diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 8fad3bdd..187d9675 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -5135,7 +5135,7 @@ pub(crate) mod tests { /// lane-av1-loss64: a SKIPPED intrabc rect strip on a lossless frame /// zeroes its whole entropy-band footprint (libaom - /// `av1_reset_entropy_context`, `if (mbmi->skip_txfm)` decodemv.c:1262 -> + /// `av1_reset_entropy_context`, `if (mbmi->skip_txfm)` decodeframe.c:1262 -> /// blockd.c:58) instead of leaving the previous occupant's luma bands /// standing. The skip arm of `decode_intrabc_owned_rect` never wrote the /// luma bands: the lossless `read_block_tx_size_rect` resolves the 4x4 diff --git a/lanes/av1loss64.report.md b/lanes/av1loss64.report.md index 1dc0c5f8..1c5468e9 100644 --- a/lanes/av1loss64.report.md +++ b/lanes/av1loss64.report.md @@ -66,7 +66,7 @@ reference have identical decoded bytes (`diff 0`). Artifact hashes: ``` obu: 1fe5edc300a378c486abe385dad8251f3f21452f04e5a6f60f69feb48e58c8cb ref8: 421ca38c91a133e78b84a9a3c9f79defbddbc7163a0b3088a176f4cd50179728 -ours: f8fc6c3248e6d8782ebccd88d46f7254aa8915fd4deaf62b7b92953599709eda +ours: 421ca38c91a133e78b84a9a3c9f79defbddbc7163a0b3088a176f4cd50179728 ``` Before the chroma-route fix, Y was exact but U/V differed at 2,488 samples;