Name the filter-intra tx_depth ceiling at the candidate
Browse files at this commit48bcb5cef6e3d5bfcf295b86abaadf751eac87a7Parent: eb8b60a- docs
- name the filter-intra tx_depth ceiling at the candidate
1 changed file +12 -4
- crates/ec-av1/src/encode.rs +12 -4
crates/ec-av1/src/encode.rsmodified+12 -4
| @@ -3921,10 +3921,18 @@ fn code_square( | |||
| 3921 | // The five recursive filter-intra modes (spec 5.11.14), priced against | 3921 | // The five recursive filter-intra modes (spec 5.11.14), priced against |
| 3922 | // whatever the mode, transform-depth and palette searches settled on -- | 3922 | // whatever the mode, transform-depth and palette searches settled on -- |
| 3923 | // the same "one candidate loop after the incumbent is known" shape the | 3923 | // 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` | 3924 | + // palette above uses. A block that takes one is `DC_PRED` with no palette |
| 3925 | - // 0 and no palette by construction (`av1_filter_intra_allowed`), and its | 3925 | + // by construction (`av1_filter_intra_allowed`), and its luma transform |
| 3926 | - // luma transform types are coded from `fimode_to_intradir`'s row | 3926 | + // types are coded from `fimode_to_intradir`'s row (`crate::tile::tx_row`). |
| 3927 | - // (`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. | ||
| 3928 | let mut filter_intra: Option<u8> = None; | 3936 | let mut filter_intra: Option<u8> = None; |
| 3929 | if filter_intra_on() | 3937 | if filter_intra_on() |
| 3930 | && palette.is_none() | 3938 | && palette.is_none() |