From 265d15d06e2b32614efb3b519d4e4e3d8d573042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 15:13:42 +0300 Subject: [PATCH] S9: drop EncoderConfig::min_cu_size; default 8 made the max(8).trailing_zeros() call a constant 3 --- crates/ec-h265/src/encoder.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/ec-h265/src/encoder.rs b/crates/ec-h265/src/encoder.rs index 9fd45520..29b2ef67 100644 --- a/crates/ec-h265/src/encoder.rs +++ b/crates/ec-h265/src/encoder.rs @@ -126,12 +126,6 @@ pub struct EncoderConfig { /// knee is where the default sits. `EC_H265_RDO_CANDIDATES` in the gate /// test re-runs the sweep. pub rdo_candidates: usize, - /// Smallest coding unit the search will produce, 8 or 16. Sixteen is a - /// *coarser* search that is not always faster: on real pictures the 8x8 - /// blocks pay for their search in residual bits (measured: -27% bits and - /// +1.5 dB at QP 22 on a 1080p camera frame, at the same wall time), which - /// is why 8 is the default. - pub min_cu_size: usize, /// Whether an 8x8 coding unit may split into four 4x4 intra partitions /// (PART_NxN). On: measured at +2.14 dB BD-PSNR on a 2560x1440 screen /// capture (-2.619 dB against x265 without it, -0.479 dB with) and @@ -272,7 +266,6 @@ impl EncoderConfig { threads: default_threads(), ctb_size: 32, rdo_candidates: 5, - min_cu_size: 8, intra_nxn: true, sign_hiding: false, rdoq: true, @@ -827,7 +820,7 @@ impl Encoder { self.cfg.rdoq, self.cfg.transform_skip, self.cfg.rqt, - self.cfg.min_cu_size.max(8).trailing_zeros(), + 3, u32::from(self.cfg.bit_depth), ); for col in 0..cols {