diag(av1): sbpart r10's EC_SBPART_DUMP64 trace; scratch probe stripped
Browse files at this commitb615bdc0cbabe1664d7195656f824e039ecec35aParent: 2a9daf11 changed file +14 -0
- crates/ec-av1/src/decode.rs +14 -0
crates/ec-av1/src/decode.rsmodified+14 -0
| @@ -3515,6 +3515,20 @@ fn decode_block_rect64( | ||
| 3515 | 3515 | filter_intra, |
| 3516 | 3516 | smooth_neighbor, |
| 3517 | 3517 | ); |
| 3518 | + if std::env::var_os("EC_SBPART_DUMP64").is_some() { | |
| 3519 | + let leftcol: Vec<u16> = if px > 0 { | |
| 3520 | + (py..py + bh).map(|row| y.data[row * y.width + px - 1]).collect() | |
| 3521 | + } else { | |
| 3522 | + vec![] | |
| 3523 | + }; | |
| 3524 | + eprintln!( | |
| 3525 | + "DUMP64 mi_r={mi_r} mi_c={mi_c} px={px} py={py} bw={bw} bh={bh} mode={mode} \ | |
| 3526 | + skip={skip} eob_nonzero={} row0={:?} leftcol={:?}", | |
| 3527 | + luma_corner.iter().any(|&v| v != 0), | |
| 3528 | + &y.data[py * y.width + px..][..bw], | |
| 3529 | + leftcol, | |
| 3530 | + ); | |
| 3531 | + } | |
| 3518 | 3532 | // CHROMA: a real, untruncated chroma_w x chroma_h transform -- no |
| 3519 | 3533 | // corner crop needed (see doc comment). |
| 3520 | 3534 | let ac = alpha.map(|_| cfl_ac_q3_rect(y, px, py, bw, bh)); |