Both halves of a split intra block read the FIRST half's edge-filter neighbours
Browse files at this commit4438a11a3970915f5afcec2dd2fb25e99221aafaParent: 9a73c30- fix
- both halves of a split intra block read the FIRST half's edge-filter neighbours
1 changed file +9 -2
crates/ec-av1/src/decode.rsmodified+9 -2
| @@ -7665,7 +7665,14 @@ fn decode_intra_rect_in_inter( | ||
| 7665 | 7665 | // The intra-edge filter type is the NEIGHBOUR's mode (libaom |
| 7666 | 7666 | // `get_filt_type`), luma's off the luma neighbours and chroma's off the |
| 7667 | 7667 | // chroma ones -- [`decode_block_rect`]'s own pair. |
| 7668 | - let (nb_above_mode, nb_left_mode) = neighbours.modes_above_left(r, c); | |
| 7668 | + // lane-t900 r4: the coarse pair is keyed on the 16x16 cell's OWN top-left | |
| 7669 | + // mi, so both 8x16 halves of a VERT split read the neighbours of the FIRST | |
| 7670 | + // half. libaom's `above_mbmi`/`left_mbmi` are this block's own | |
| 7671 | + // (`mi[-mi_stride]` / `mi[-1]`) -- take the mi-exact pair over the coarse | |
| 7672 | + // one exactly as [`decode_leaf8`] already does (class | |
| 7673 | + // context-read-from-one-cell). | |
| 7674 | + let (nb_above_mode, nb_left_mode) = | |
| 7675 | + neighbours.modes_above_left_mi(mi_r, mi_c, neighbours.modes_above_left(r, c)); | |
| 7669 | 7676 | let smooth_neighbor = is_smooth_mode(nb_above_mode) || is_smooth_mode(nb_left_mode); |
| 7670 | 7677 | if smooth_neighbor { |
| 7671 | 7678 | SMOOTH_LUMA_HITS.with(|h| h.set(h.get() + 1)); |
| @@ -10864,7 +10871,7 @@ impl PlaneBuf { | ||
| 10864 | 10871 | let row0: Vec<u16> = prediction[..bw.min(8)].to_vec(); |
| 10865 | 10872 | let col0: Vec<u16> = (0..bh.min(8)).map(|r| prediction[r * bw]).collect(); |
| 10866 | 10873 | eprintln!( |
| 10867 | - "@{} OUR_PRED x={x} y={y} bw={bw} bh={bh} mode={mode} ad={angle_delta} sum={sum} row0={row0:?} col0={col0:?}", std::panic::Location::caller() | |
| 10874 | + "@{} OUR_PRED x={x} y={y} bw={bw} bh={bh} mode={mode} ad={angle_delta} ft={} sum={sum} row0={row0:?} col0={col0:?}", std::panic::Location::caller(), i32::from(smooth_neighbor) | |
| 10868 | 10875 | ); |
| 10869 | 10876 | } |
| 10870 | 10877 | for row in 0..bh { |