S9: drop EncoderConfig::min_cu_size; default 8 made the max(8).trailing_zeros() call a constant 3
Browse files at this commit265d15d06e2b32614efb3b519d4e4e3d8d573042Parent: 06fedd51 changed file +1 -8
crates/ec-h265/src/encoder.rsmodified+1 -8
| @@ -126,12 +126,6 @@ pub struct EncoderConfig { | ||
| 126 | 126 | /// knee is where the default sits. `EC_H265_RDO_CANDIDATES` in the gate |
| 127 | 127 | /// test re-runs the sweep. |
| 128 | 128 | pub rdo_candidates: usize, |
| 129 | - /// Smallest coding unit the search will produce, 8 or 16. Sixteen is a | |
| 130 | - /// *coarser* search that is not always faster: on real pictures the 8x8 | |
| 131 | - /// blocks pay for their search in residual bits (measured: -27% bits and | |
| 132 | - /// +1.5 dB at QP 22 on a 1080p camera frame, at the same wall time), which | |
| 133 | - /// is why 8 is the default. | |
| 134 | - pub min_cu_size: usize, | |
| 135 | 129 | /// Whether an 8x8 coding unit may split into four 4x4 intra partitions |
| 136 | 130 | /// (PART_NxN). On: measured at +2.14 dB BD-PSNR on a 2560x1440 screen |
| 137 | 131 | /// capture (-2.619 dB against x265 without it, -0.479 dB with) and |
| @@ -272,7 +266,6 @@ impl EncoderConfig { | ||
| 272 | 266 | threads: default_threads(), |
| 273 | 267 | ctb_size: 32, |
| 274 | 268 | rdo_candidates: 5, |
| 275 | - min_cu_size: 8, | |
| 276 | 269 | intra_nxn: true, |
| 277 | 270 | sign_hiding: false, |
| 278 | 271 | rdoq: true, |
| @@ -827,7 +820,7 @@ impl Encoder { | ||
| 827 | 820 | self.cfg.rdoq, |
| 828 | 821 | self.cfg.transform_skip, |
| 829 | 822 | self.cfg.rqt, |
| 830 | - self.cfg.min_cu_size.max(8).trailing_zeros(), | |
| 823 | + 3, | |
| 831 | 824 | u32::from(self.cfg.bit_depth), |
| 832 | 825 | ); |
| 833 | 826 | for col in 0..cols { |