A tx-split 16x8/8x16 leaf predicted chroma with the intra-edge filter type hard-coded off
Browse files at this commit6b1a0cd45d0d630e833a333f38a4c4e329582abfParent: 1b78ec6- fix
- a tx-split 16x8/8x16 leaf predicted chroma with the intra-edge filter type hard-coded off
2 changed files +15 -13
- crates/ec-av1/src/decode.rs +4 -1
- crates/ec-av1/src/stream.rs +11 -12
crates/ec-av1/src/decode.rsmodified+4 -1
| @@ -5662,7 +5662,10 @@ fn decode_leaf_rect( | ||
| 5662 | 5662 | alpha, |
| 5663 | 5663 | filter_intra, |
| 5664 | 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 | 5670 | decode_rect_split( |
| 5668 | 5671 | dec, |
crates/ec-av1/src/stream.rsmodified+11 -12
| @@ -14950,17 +14950,15 @@ mod tests { | ||
| 14950 | 14950 | } |
| 14951 | 14951 | |
| 14952 | 14952 | /// 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 | |
| 14955 | 14955 | /// 42..61 the 8x16/16x8 strips aomenc writes filter intra on are |
| 14956 | 14956 | /// `skip=0`, which `decode_leaf_rect` refuses, so |
| 14957 | 14957 | /// `filter_intra_rect_sub16_hits` never reaches a pixel compare. |
| 14958 | 14958 | /// lane-fistrip r2 adds seeds 49 and 213 to the window: those are the two |
| 14959 | 14959 | /// seeds measured to fire the feature on the 8-BIT twin's recipe (this |
| 14960 | 14960 | /// 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. | |
| 14964 | 14962 | #[test] |
| 14965 | 14963 | fn a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact() { |
| 14966 | 14964 | const NAME: &str = "a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact"; |
| @@ -15092,19 +15090,20 @@ mod tests { | ||
| 15092 | 15090 | /// `filter_intra_rect_hits`: a 32x16 strip firing filter intra would |
| 15093 | 15091 | /// satisfy that one and prove nothing about the new shapes. |
| 15094 | 15092 | /// 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 | |
| 15096 | 15094 | /// cq 25 aomenc put filter intra on an 8x16/16x8 strip exactly TWICE -- |
| 15097 | 15095 | /// **seed 49 and seed 213** -- and both times that strip was `skip=0`, so |
| 15098 | 15096 | /// the attempt refused at the coded-rect-strip-below-16x16 ceiling before |
| 15099 | 15097 | /// any pixel compare (r1: 177 pixel-exact matches, 23 refusals, compared |
| 15100 | 15098 | /// sub16 delta 0, all-attempt delta 2; r2 seeds 50..=241: 172 matches, 20 |
| 15101 | 15099 | /// 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`]. | |
| 15108 | 15107 | #[test] |
| 15109 | 15108 | fn a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact() { |
| 15110 | 15109 | const NAME: &str = |