forge
Explore
Log in

Don't you dare go Hollow

A tx-split 16x8/8x16 leaf predicted chroma with the intra-edge filter type hard-coded off

Browse files at this commit

6b1a0cd45d0d630e833a333f38a4c4e329582abfAhmet Kaan GümüşParent: 1b78ec6
  • fix
    • a tx-split 16x8/8x16 leaf predicted chroma with the intra-edge filter type hard-coded off
Show full message
fix(av1): a tx-split 16x8/8x16 leaf predicted chroma with the intra-edge filter type hard-coded off

decode_leaf_rect's split arm built RectStripModes with
`smooth_neighbor_uv: false` while its own unsplit arm passes
`neighbours.smooth_uv_neighbour(..)`. Chroma of every tx-split sub-16 strip
therefore chose the wrong intra-edge filter, luma bit-exact and chroma off by
+-1..2 over the block (8-bit seed 46 cq12: U 32 / V 173 samples). The 1:4
32-level gate is green, and the two sub16 filter-intra gates ignored since
lane-fistrip r1 are un-ignored and green.
crates/ec-av1/src/decode.rsmodified+4 -1
@@ -5662,7 +5662,10 @@ fn decode_leaf_rect(
56625662 alpha,
56635663 filter_intra,
56645664 smooth_neighbor,
5665- smooth_neighbor_uv: false,
5665+ // lane-rectsplitx r3: the split arm hard-coded `false` here while
5666+ // the unsplit arm below passes the real neighbour answer -- chroma
5667+ // of a tx-split 16x8/8x16 leaf lost its intra-edge filter type.
5668+ smooth_neighbor_uv,
56665669 };
56675670 decode_rect_split(
56685671 dec,
crates/ec-av1/src/stream.rsmodified+11 -12
@@ -14950,17 +14950,15 @@ mod tests {
1495014950 }
1495114951
1495214952 /// lane-fistrip r1, the 10-bit arm of the strip gate (his films are
14953- /// yuv420p10le). Same ceiling as its 8-bit twin -- kept `#[ignore]`d
14954- /// with the measurement rather than weakened: MEASURED over seeds
14953+ /// yuv420p10le). Same ceiling as its 8-bit twin, lifted in lane-rectsplitx
14954+ /// r3 (the split arm's `smooth_neighbor_uv`); before that, MEASURED over seeds
1495514955 /// 42..61 the 8x16/16x8 strips aomenc writes filter intra on are
1495614956 /// `skip=0`, which `decode_leaf_rect` refuses, so
1495714957 /// `filter_intra_rect_sub16_hits` never reaches a pixel compare.
1495814958 /// lane-fistrip r2 adds seeds 49 and 213 to the window: those are the two
1495914959 /// seeds measured to fire the feature on the 8-BIT twin's recipe (this
1496014960 /// arm's 10-bit encode is a different stream, so they are a widening, not
14961- /// a measured firing set for this recipe -- the round that un-ignores
14962- /// this gate must re-measure which 10-bit seeds fire it).
14963- #[ignore = "lane-rectsplitx r2 (re-measured after the neighbour-mode fix): still a CHROMA-only defect behind the lifted split refusal -- 10-bit seed 49 frame 0 plane V first diff at row 4 col 60, ours 510 vs ffmpeg 509, filter_intra_rect_sub16_hits=2; sub-16 filter-intra chroma prediction, open"]
14961+ /// a measured firing set for this recipe). Green since r3.
1496414962 #[test]
1496514963 fn a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact() {
1496614964 const NAME: &str = "a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact";
@@ -15092,19 +15090,20 @@ mod tests {
1509215090 /// `filter_intra_rect_hits`: a 32x16 strip firing filter intra would
1509315091 /// satisfy that one and prove nothing about the new shapes.
1509415092 /// MEASURED (lane-fistrip r1, seeds 42..=241; r2 re-ran 50..=241), which
15095- /// is why it is `#[ignore]`d rather than green: over those 200 seeds at
15093+ /// is why the window carries the two firing seeds: over those 200 seeds at
1509615094 /// cq 25 aomenc put filter intra on an 8x16/16x8 strip exactly TWICE --
1509715095 /// **seed 49 and seed 213** -- and both times that strip was `skip=0`, so
1509815096 /// the attempt refused at the coded-rect-strip-below-16x16 ceiling before
1509915097 /// any pixel compare (r1: 177 pixel-exact matches, 23 refusals, compared
1510015098 /// sub16 delta 0, all-attempt delta 2; r2 seeds 50..=241: 172 matches, 20
1510115099 /// refusals, the one all-attempt hit at seed 213). BOTH firing seeds are
15102- /// appended to this gate's seed window below, so the un-ignore compares
15103- /// two real hits. Un-ignore this the round that ceiling lifts; the symbol
15104- /// itself is pinned by
15105- /// [`a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag`], whose
15106- /// `expect_err` must become a pixel compare in that same round.
15107- #[ignore = "lane-rectsplitx r2 (re-measured after the neighbour-mode fix): still a CHROMA-only defect behind the lifted split refusal -- 10-bit seed 49 frame 0 plane V first diff at row 4 col 60, ours 510 vs ffmpeg 509, filter_intra_rect_sub16_hits=2; sub-16 filter-intra chroma prediction, open"]
15100+ /// appended to this gate's seed window below, so it compares two real
15101+ /// hits. UN-IGNORED lane-rectsplitx r3: the ceiling lifted with the split
15102+ /// refusal, and the residual chroma defect was the split arm of
15103+ /// [`crate::decode::decode_leaf_rect`] passing `smooth_neighbor_uv: false`
15104+ /// where the unsplit arm passes the neighbour's real answer. The symbol
15105+ /// itself stays pinned by
15106+ /// [`a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag`].
1510815107 #[test]
1510915108 fn a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact() {
1511015109 const NAME: &str =