forge
Explore
Log in

Don't you dare go Hollow

Name the filter-intra tx_depth ceiling at the candidate

Browse files at this commit

48bcb5cef6e3d5bfcf295b86abaadf751eac87a7Ahmet Kaan GümüşParent: eb8b60a
  • docs
    • name the filter-intra tx_depth ceiling at the candidate
Show full message
docs(av1): name the filter-intra tx_depth ceiling at the candidate
crates/ec-av1/src/encode.rsmodified+12 -4
@@ -3921,10 +3921,18 @@ fn code_square(
39213921 // The five recursive filter-intra modes (spec 5.11.14), priced against
39223922 // whatever the mode, transform-depth and palette searches settled on --
39233923 // the same "one candidate loop after the incumbent is known" shape the
3924- // palette above uses. A block that takes one is `DC_PRED` with `tx_depth`
3925- // 0 and no palette by construction (`av1_filter_intra_allowed`), and its
3926- // luma transform types are coded from `fimode_to_intradir`'s row
3927- // (`crate::tile::tx_row`).
3924+ // palette above uses. A block that takes one is `DC_PRED` with no palette
3925+ // by construction (`av1_filter_intra_allowed`), and its luma transform
3926+ // types are coded from `fimode_to_intradir`'s row (`crate::tile::tx_row`).
3927+ //
3928+ // corner-cut, ceiling named: the candidate is only ever priced at
3929+ // `tx_depth` 0 (one transform over the whole block), so a block whose
3930+ // ordinary intra winner wanted a SPLIT transform is compared against a
3931+ // handicapped filter-intra arm -- and only 19-44% of this encoder's intra
3932+ // blocks code depth 0. Upgrade path: predict per transform unit inside
3933+ // [`Plane::code_tx_depth`] (the decoder already reads `filter_intra` per
3934+ // unit, decode.rs:11835) and run the depth search under the winning
3935+ // filter mode.
39283936 let mut filter_intra: Option<u8> = None;
39293937 if filter_intra_on()
39303938 && palette.is_none()