diff --git a/crates/ec-h265/src/ctu.rs b/crates/ec-h265/src/ctu.rs index 153dc4e7..7d9319cb 100644 --- a/crates/ec-h265/src/ctu.rs +++ b/crates/ec-h265/src/ctu.rs @@ -234,7 +234,6 @@ impl<'a> CtuEncoder<'a> { intra_nxn: bool, sign_hiding: bool, rdoq: bool, - rdoq_estimate: bool, transform_skip: TransformSkip, rqt: bool, min_cb_log2: u32, @@ -272,7 +271,7 @@ impl<'a> CtuEncoder<'a> { rqt, rdoq_enc: { let mut enc = CabacEncoder::counter(Contexts::new(qp.clamp(0, 51))); - enc.set_estimating(rdoq_estimate); + enc.set_estimating(true); enc }, min_cb_log2: min_cb_log2.clamp(MIN_CB_LOG2, 5), diff --git a/crates/ec-h265/src/encoder.rs b/crates/ec-h265/src/encoder.rs index 9efc8ac9..052beee2 100644 --- a/crates/ec-h265/src/encoder.rs +++ b/crates/ec-h265/src/encoder.rs @@ -187,16 +187,6 @@ pub struct EncoderConfig { /// coder's own price for the whole block, so dropping a level is priced /// with the significance map and last position that follow from it. pub rdoq: bool, - /// Whether RDOQ's per-candidate bit cost comes from an estimated - /// per-context fractional-bit table (x265/HM `entropyBits`-style: the - /// entropy of the bin under its context's current probability state) - /// instead of replaying the exact adaptive-CABAC coder for every trial. - /// Changes output bytes (the estimate is not exact). On by default: - /// measured 1.6x faster on `ec-bench`'s h265 encode row and, on the - /// synthetic `bd_psnr_vs_x265` clip, a small BD-PSNR-YUV *gain* over the - /// exact-replay path (+7.948 vs +7.880 dB against x265) rather than a - /// loss. `false` restores exact per-trial CABAC replay for A/B. - pub rdoq_estimate: bool, /// Whether 4x4 TUs may skip the integer transform. /// /// `Rd` by default: the tool is the screen-content lever, and it wants a @@ -315,7 +305,6 @@ impl EncoderConfig { intra_nxn: true, sign_hiding: false, rdoq: true, - rdoq_estimate: true, transform_skip: TransformSkip::Rd, rqt: true, video_signal_type: None, @@ -867,7 +856,6 @@ impl Encoder { self.cfg.intra_nxn, self.cfg.sign_hiding, self.cfg.rdoq, - self.cfg.rdoq_estimate, self.cfg.transform_skip, self.cfg.rqt, self.cfg.min_cu_size.max(8).trailing_zeros(),