forge
Explore
Log in

Don't you dare go Hollow

ec-av1: lane-av1422ctxgather -- review P2: the around_c comment and the

Browse files at this commit

a34d785001b17a2123e3cc68c7d3ad65f2dc9ea9Ahmet Kaan GümüşParent: d80593a
report sentence claimed every VERT shape keeps the plain per-mi gather;
false for 4:2:2 VERT -- the ss-gated reroute catches it (pair span (8,16),
above side one chroma column per two luma mi, same double-count) and is
oracle-correct there. Comment and report corrected; only 4:2:0/4:4:4 VERT
keep the plain gather. No code change.
crates/ec-av1/src/decode.rsmodified+6 -3
@@ -34585,9 +34585,12 @@ fn decode_inter_block(
34585 // `!(subsampling_y)` row clause) -- pair_mi is the strip34585 // `!(subsampling_y)` row clause) -- pair_mi is the strip
34586 // itself and the context reads the strip's own 8x4, ONE34586 // itself and the context reads the strip's own 8x4, ONE
34587 // luma-mi row tall, with the 4:2:2 above sampling34587 // luma-mi row tall, with the 4:2:2 above sampling
34588- // ([`Neighbours::around_mi_422_chroma`]). The 4:2:0 pair34588+ // ([`Neighbours::around_mi_422_chroma`]) -- and the same
34589- // merge keeps the (16, 8) span and the plain per-mi gather34589+ // reroute catches 4:2:2 VERT: its (8, 16) pair span's
34590- // (as do 4:4:4 and every VERT shape).34590+ // above side covers one chroma column per two luma mi
34591+ // columns, the identical double-count. The plain per-mi
34592+ // gather survives only where the ss gate excludes it:
34593+ // the 4:2:0 pair merge (16, 8) and every 4:4:4 shape.
34591 let around_c = match strip_chroma {34594 let around_c = match strip_chroma {
34592 Some(s) if s.has_chroma => {34595 Some(s) if s.has_chroma => {
34593 let (pw, ph) = if s.horz {34596 let (pw, ph) = if s.horz {
lanes/av1422ctxgather.report.mdmodified+6 -1
@@ -23,7 +23,12 @@
23 columns at ss_x 1, so every column's whole-unit dc sign is counted23 columns at ss_x 1, so every column's whole-unit dc sign is counted
24 twice). At ss (1,0) it now reads `(16, 4)` through24 twice). At ss (1,0) it now reads `(16, 4)` through
25 [`Neighbours::around_mi_422_chroma`]; the 4:2:0 pair merge keeps the25 [`Neighbours::around_mi_422_chroma`]; the 4:2:0 pair merge keeps the
26- (16, 8) span and the per-mi gather, as do 4:4:4 and every VERT shape.26+ (16, 8) span and the per-mi gather, as does 4:4:4. The same reroute
27+ catches 4:2:2 VERT (pair span (8, 16)): its above side covers one
28+ chroma column per two luma mi columns — the identical double-count —
29+ so it reads through [`around_mi_422_chroma`] too, and is
30+ oracle-correct there. Only the ss gate's excluded shapes (4:2:0
31+ VERT/4:4:4 VERT) keep the plain gather.
27 3. **The intra strip's chroma gather** (the charter's named site,32 3. **The intra strip's chroma gather** (the charter's named site,
28 `decode_rect4_16_strip` ~15331): the else arm's33 `decode_rect4_16_strip` ~15331): the else arm's
29 `around_mi_rect(pair_mi, pw, ph)` is routed through34 `around_mi_rect(pair_mi, pw, ph)` is routed through