[refwrap] Add ref_lcu dependancy to the rightmost lcu since refwrap will wrap around the frame

This commit is contained in:
Marko Viitanen 2024-08-02 14:45:20 +03:00
parent e8633dab1d
commit f212ce1369

View file

@ -244,6 +244,8 @@ encoder_control_t* uvg_encoder_control_init(const uvg_config *const cfg)
encoder->max_inter_ref_lcu.right = 1; encoder->max_inter_ref_lcu.right = 1;
encoder->max_inter_ref_lcu.down = 1; encoder->max_inter_ref_lcu.down = 1;
if (encoder->cfg.ref_wraparound) encoder->max_inter_ref_lcu.right = (encoder->cfg.width+LCU_LUMA_SIZE-1)>>LOG2_LCU_WIDTH;
int max_threads = encoder->cfg.threads; int max_threads = encoder->cfg.threads;
if (max_threads < 0) { if (max_threads < 0) {
max_threads = cfg_num_threads(); max_threads = cfg_num_threads();