Disable GOP and intra qp offset for all-intra coding automatically
@@ -243,6 +243,12 @@ encoder_control_t* kvz_encoder_control_init(const kvz_config *const cfg)
}
}
+ // Disable GOP and QP offset for all-intra coding
+ if (encoder->cfg.intra_period == 1) {
+ encoder->cfg.gop_len = 0;
+ encoder->cfg.intra_qp_offset = 0;
+ }
+
encoder->poc_lsb_bits = MAX(4, kvz_math_ceil_log2(encoder->cfg.gop_len * 2 + 1));
encoder->max_inter_ref_lcu.right = 1;
