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(
5662 alpha,5662 alpha,
5663 filter_intra,5663 filter_intra,
5664 smooth_neighbor,5664 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,
5666 };5669 };
5667 decode_rect_split(5670 decode_rect_split(
5668 dec,5671 dec,
crates/ec-av1/src/stream.rsmodified+11 -12
@@ -14950,17 +14950,15 @@ mod tests {
14950 }14950 }
14951 14951
14952 /// lane-fistrip r1, the 10-bit arm of the strip gate (his films are14952 /// 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]`d14953+ /// yuv420p10le). Same ceiling as its 8-bit twin, lifted in lane-rectsplitx
14954- /// with the measurement rather than weakened: MEASURED over seeds14954+ /// r3 (the split arm's `smooth_neighbor_uv`); before that, MEASURED over seeds
14955 /// 42..61 the 8x16/16x8 strips aomenc writes filter intra on are14955 /// 42..61 the 8x16/16x8 strips aomenc writes filter intra on are
14956 /// `skip=0`, which `decode_leaf_rect` refuses, so14956 /// `skip=0`, which `decode_leaf_rect` refuses, so
14957 /// `filter_intra_rect_sub16_hits` never reaches a pixel compare.14957 /// `filter_intra_rect_sub16_hits` never reaches a pixel compare.
14958 /// lane-fistrip r2 adds seeds 49 and 213 to the window: those are the two14958 /// lane-fistrip r2 adds seeds 49 and 213 to the window: those are the two
14959 /// seeds measured to fire the feature on the 8-BIT twin's recipe (this14959 /// seeds measured to fire the feature on the 8-BIT twin's recipe (this
14960 /// arm's 10-bit encode is a different stream, so they are a widening, not14960 /// 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-ignores14961+ /// a measured firing set for this recipe). Green since r3.
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"]
14964 #[test]14962 #[test]
14965 fn a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact() {14963 fn a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact() {
14966 const NAME: &str = "a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact";14964 const NAME: &str = "a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact";
@@ -15092,19 +15090,20 @@ mod tests {
15092 /// `filter_intra_rect_hits`: a 32x16 strip firing filter intra would15090 /// `filter_intra_rect_hits`: a 32x16 strip firing filter intra would
15093 /// satisfy that one and prove nothing about the new shapes.15091 /// satisfy that one and prove nothing about the new shapes.
15094 /// MEASURED (lane-fistrip r1, seeds 42..=241; r2 re-ran 50..=241), which15092 /// 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 at15093+ /// is why the window carries the two firing seeds: over those 200 seeds at
15096 /// cq 25 aomenc put filter intra on an 8x16/16x8 strip exactly TWICE --15094 /// cq 25 aomenc put filter intra on an 8x16/16x8 strip exactly TWICE --
15097 /// **seed 49 and seed 213** -- and both times that strip was `skip=0`, so15095 /// **seed 49 and seed 213** -- and both times that strip was `skip=0`, so
15098 /// the attempt refused at the coded-rect-strip-below-16x16 ceiling before15096 /// the attempt refused at the coded-rect-strip-below-16x16 ceiling before
15099 /// any pixel compare (r1: 177 pixel-exact matches, 23 refusals, compared15097 /// any pixel compare (r1: 177 pixel-exact matches, 23 refusals, compared
15100 /// sub16 delta 0, all-attempt delta 2; r2 seeds 50..=241: 172 matches, 2015098 /// sub16 delta 0, all-attempt delta 2; r2 seeds 50..=241: 172 matches, 20
15101 /// refusals, the one all-attempt hit at seed 213). BOTH firing seeds are15099 /// 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 compares15100+ /// appended to this gate's seed window below, so it compares two real
15103- /// two real hits. Un-ignore this the round that ceiling lifts; the symbol15101+ /// hits. UN-IGNORED lane-rectsplitx r3: the ceiling lifted with the split
15104- /// itself is pinned by15102+ /// refusal, and the residual chroma defect was the split arm of
15105- /// [`a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag`], whose15103+ /// [`crate::decode::decode_leaf_rect`] passing `smooth_neighbor_uv: false`
15106- /// `expect_err` must become a pixel compare in that same round.15104+ /// where the unsplit arm passes the neighbour's real answer. The symbol
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"]15105+ /// itself stays pinned by
15106+ /// [`a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag`].
15108 #[test]15107 #[test]
15109 fn a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact() {15108 fn a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact() {
15110 const NAME: &str =15109 const NAME: &str =