forge
Explore
Log in

Don't you dare go Hollow

S9: drop EncoderConfig::min_cu_size; default 8 made the max(8).trailing_zeros() call a constant 3

Browse files at this commit

265d15d06e2b32614efb3b519d4e4e3d8d573042Ahmet Kaan GümüşParent: 06fedd5
crates/ec-h265/src/encoder.rsmodified+1 -8
@@ -126,12 +126,6 @@ pub struct EncoderConfig {
126 /// knee is where the default sits. `EC_H265_RDO_CANDIDATES` in the gate126 /// knee is where the default sits. `EC_H265_RDO_CANDIDATES` in the gate
127 /// test re-runs the sweep.127 /// test re-runs the sweep.
128 pub rdo_candidates: usize,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 /// Whether an 8x8 coding unit may split into four 4x4 intra partitions129 /// Whether an 8x8 coding unit may split into four 4x4 intra partitions
136 /// (PART_NxN). On: measured at +2.14 dB BD-PSNR on a 2560x1440 screen130 /// (PART_NxN). On: measured at +2.14 dB BD-PSNR on a 2560x1440 screen
137 /// capture (-2.619 dB against x265 without it, -0.479 dB with) and131 /// capture (-2.619 dB against x265 without it, -0.479 dB with) and
@@ -272,7 +266,6 @@ impl EncoderConfig {
272 threads: default_threads(),266 threads: default_threads(),
273 ctb_size: 32,267 ctb_size: 32,
274 rdo_candidates: 5,268 rdo_candidates: 5,
275- min_cu_size: 8,
276 intra_nxn: true,269 intra_nxn: true,
277 sign_hiding: false,270 sign_hiding: false,
278 rdoq: true,271 rdoq: true,
@@ -827,7 +820,7 @@ impl Encoder {
827 self.cfg.rdoq,820 self.cfg.rdoq,
828 self.cfg.transform_skip,821 self.cfg.transform_skip,
829 self.cfg.rqt,822 self.cfg.rqt,
830- self.cfg.min_cu_size.max(8).trailing_zeros(),823+ 3,
831 u32::from(self.cfg.bit_depth),824 u32::from(self.cfg.bit_depth),
832 );825 );
833 for col in 0..cols {826 for col in 0..cols {