forge
Explore
Log in

Don't you dare go Hollow

ec-av1: cite read_tx_mode's ONLY_4X4 return at decodeframe.c:141 (review P3)

Browse files at this commit

db6754467269123dee4ba4959b990cdab7214244Ahmet Kaan GümüşParent: 62c2fb5
The comments named line 140, the parameter line. The return
`if (coded_lossless) return ONLY_4X4;` is line 141, matching the report.
The :1183 cite for read_tx_size is unchanged.
crates/ec-av1/src/decode.rsmodified+2 -2
@@ -15155,7 +15155,7 @@ pub(crate) fn intra_sb128_hits() -> (usize, usize, [usize; 3]) {
15155 /// lane-lossless128: on a LOSSLESS frame every one of those sizes collapses to15155 /// lane-lossless128: on a LOSSLESS frame every one of those sizes collapses to
15156 /// TX_4X4 -- `read_tx_mode` returns `ONLY_4X4` before the frame codes a tx-size15156 /// TX_4X4 -- `read_tx_mode` returns `ONLY_4X4` before the frame codes a tx-size
15157 /// symbol and `read_tx_size` returns `TX_4X4` before it looks at anything15157 /// symbol and `read_tx_size` returns `TX_4X4` before it looks at anything
15158-/// (`decodeframe.c:140`, `:1183`) -- so the block is tiled into 4x4 luma units15158+/// (`decodeframe.c:141`, `:1183`) -- so the block is tiled into 4x4 luma units
15159 /// and (because a lossless frame forces `TX_4X4` on CHROMA too) 4x4 chroma15159 /// and (because a lossless frame forces `TX_4X4` on CHROMA too) 4x4 chroma
15160 /// units, plane-major inside each 64x64 mu chunk exactly as15160 /// units, plane-major inside each 64x64 mu chunk exactly as
15161 /// `decode_token_recon_block` codes them. Reading the 64-point geometry there15161 /// `decode_token_recon_block` codes them. Reading the 64-point geometry there
@@ -15221,7 +15221,7 @@ fn decode_block_128rect(
15221 // not. `bsize_to_tx_size_cat(BLOCK_128X64)` is 3 (see this fn's doc).15221 // not. `bsize_to_tx_size_cat(BLOCK_128X64)` is 3 (see this fn's doc).
15222 // lane-lossless128: a LOSSLESS frame codes no tx-size symbol at all --15222 // lane-lossless128: a LOSSLESS frame codes no tx-size symbol at all --
15223 // libaom's `read_tx_mode` returns `ONLY_4X4` for a `coded_lossless` frame15223 // libaom's `read_tx_mode` returns `ONLY_4X4` for a `coded_lossless` frame
15224- // before the symbol is even considered (`decodeframe.c:140`) and15224+ // before the symbol is even considered (`decodeframe.c:141`) and
15225 // `read_tx_size` returns `TX_4X4` before it looks at anything15225 // `read_tx_size` returns `TX_4X4` before it looks at anything
15226 // (`decodeframe.c:1183`). So `tx_select` is off, every plane is walked as15226 // (`decodeframe.c:1183`). So `tx_select` is off, every plane is walked as
15227 // TX_4X4 transform units, and no `tx_size_cat3` symbol may be consumed.15227 // TX_4X4 transform units, and no `tx_size_cat3` symbol may be consumed.