From 48bcb5cef6e3d5bfcf295b86abaadf751eac87a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 7 Sep 2026 05:18:28 +0300 Subject: [PATCH] docs(av1): name the filter-intra tx_depth ceiling at the candidate --- crates/ec-av1/src/encode.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index e0adf674..e9a2fe62 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -3921,10 +3921,18 @@ fn code_square( // The five recursive filter-intra modes (spec 5.11.14), priced against // whatever the mode, transform-depth and palette searches settled on -- // the same "one candidate loop after the incumbent is known" shape the - // palette above uses. A block that takes one is `DC_PRED` with `tx_depth` - // 0 and no palette by construction (`av1_filter_intra_allowed`), and its - // luma transform types are coded from `fimode_to_intradir`'s row - // (`crate::tile::tx_row`). + // palette above uses. A block that takes one is `DC_PRED` with no palette + // by construction (`av1_filter_intra_allowed`), and its luma transform + // types are coded from `fimode_to_intradir`'s row (`crate::tile::tx_row`). + // + // corner-cut, ceiling named: the candidate is only ever priced at + // `tx_depth` 0 (one transform over the whole block), so a block whose + // ordinary intra winner wanted a SPLIT transform is compared against a + // handicapped filter-intra arm -- and only 19-44% of this encoder's intra + // blocks code depth 0. Upgrade path: predict per transform unit inside + // [`Plane::code_tx_depth`] (the decoder already reads `filter_intra` per + // unit, decode.rs:11835) and run the depth search under the winning + // filter mode. let mut filter_intra: Option = None; if filter_intra_on() && palette.is_none()