forge
Explore
Log in

Don't you dare go Hollow

ec-av1: cite decodeframe.c:1262 for the skip reset; correct the report's ours hash (review P3s)

Browse files at this commit

6ef8c840bb44d4adb8ab767807cca0e35cf27e98Ahmet Kaan GümüşParent: 2c42148
crates/ec-av1/src/decode.rsmodified+2 -2
@@ -5026,7 +5026,7 @@ thread_local! {
5026 static CHROMA_EDGE_TU_CLIP_HITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) };5026 static CHROMA_EDGE_TU_CLIP_HITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) };
5027 /// lane-av1-loss64: skipped lossless intrabc rect strips whose luma5027 /// lane-av1-loss64: skipped lossless intrabc rect strips whose luma
5028 /// entropy bands were zeroed per unit (libaom `av1_reset_entropy_context`,5028 /// entropy bands were zeroed per unit (libaom `av1_reset_entropy_context`,
5029- /// decodemv.c:1262) instead of leaking the previous occupant's.5029+ /// decodeframe.c:1262) instead of leaking the previous occupant's.
5030 static SKIP_LOSSLESS_BAND_RESET_HITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) };5030 static SKIP_LOSSLESS_BAND_RESET_HITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) };
5031 }5031 }
5032 5032
@@ -12385,7 +12385,7 @@ fn decode_intrabc_owned_rect(
12385 push_mc_rect(2, px / 2, py / 2, cside, cw, ch, Pred::Inline(&pred_v, cside), &ZERO_RESIDUAL[..cside * ch], fctx);12385 push_mc_rect(2, px / 2, py / 2, cside, cw, ch, Pred::Inline(&pred_v, cside), &ZERO_RESIDUAL[..cside * ch], fctx);
12386 if let Some(ls) = leaves.as_ref() {12386 if let Some(ls) = leaves.as_ref() {
12387 // libaom `av1_reset_entropy_context` (`if (mbmi->skip_txfm)`,12387 // libaom `av1_reset_entropy_context` (`if (mbmi->skip_txfm)`,
12388- // decodemv.c:1262 -> blockd.c:58): a SKIPPED block zeroes its12388+ // decodeframe.c:1262 -> blockd.c:58): a SKIPPED block zeroes its
12389 // whole entropy-band footprint. The non-skip arm below writes12389 // whole entropy-band footprint. The non-skip arm below writes
12390 // those bands per transform unit and the tail's12390 // those bands per transform unit and the tail's
12391 // `record_split_luma_rect_mi` writes chroma only, so without12391 // `record_split_luma_rect_mi` writes chroma only, so without
crates/ec-av1/src/stream.rsmodified+1 -1
@@ -5135,7 +5135,7 @@ pub(crate) mod tests {
5135 5135
5136 /// lane-av1-loss64: a SKIPPED intrabc rect strip on a lossless frame5136 /// lane-av1-loss64: a SKIPPED intrabc rect strip on a lossless frame
5137 /// zeroes its whole entropy-band footprint (libaom5137 /// zeroes its whole entropy-band footprint (libaom
5138- /// `av1_reset_entropy_context`, `if (mbmi->skip_txfm)` decodemv.c:1262 ->5138+ /// `av1_reset_entropy_context`, `if (mbmi->skip_txfm)` decodeframe.c:1262 ->
5139 /// blockd.c:58) instead of leaving the previous occupant's luma bands5139 /// blockd.c:58) instead of leaving the previous occupant's luma bands
5140 /// standing. The skip arm of `decode_intrabc_owned_rect` never wrote the5140 /// standing. The skip arm of `decode_intrabc_owned_rect` never wrote the
5141 /// luma bands: the lossless `read_block_tx_size_rect` resolves the 4x45141 /// luma bands: the lossless `read_block_tx_size_rect` resolves the 4x4
lanes/av1loss64.report.mdmodified+1 -1
@@ -66,7 +66,7 @@ reference have identical decoded bytes (`diff 0`). Artifact hashes:
66 ```66 ```
67 obu: 1fe5edc300a378c486abe385dad8251f3f21452f04e5a6f60f69feb48e58c8cb67 obu: 1fe5edc300a378c486abe385dad8251f3f21452f04e5a6f60f69feb48e58c8cb
68 ref8: 421ca38c91a133e78b84a9a3c9f79defbddbc7163a0b3088a176f4cd5017972868 ref8: 421ca38c91a133e78b84a9a3c9f79defbddbc7163a0b3088a176f4cd50179728
69-ours: f8fc6c3248e6d8782ebccd88d46f7254aa8915fd4deaf62b7b92953599709eda69+ours: 421ca38c91a133e78b84a9a3c9f79defbddbc7163a0b3088a176f4cd50179728
70 ```70 ```
71 71
72 Before the chroma-route fix, Y was exact but U/V differed at 2,488 samples;72 Before the chroma-route fix, Y was exact but U/V differed at 2,488 samples;