mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
Disable GOP and intra qp offset for all-intra coding automatically
This commit is contained in:
parent
9849fb7c77
commit
fe4869916c
|
@ -241,6 +241,12 @@ encoder_control_t* kvz_encoder_control_init(const kvz_config *const cfg)
|
|||
kvz_config_process_lp_gop(&encoder->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));
|
||||
|
|
Loading…
Reference in a new issue