[cclm] fix trying cclm on the upper level

This commit is contained in:
Joose Sainio 2021-11-18 07:13:16 +02:00
parent c16ce9a82b
commit d9875a3d92

View file

@ -917,8 +917,15 @@ static void intra_recon_tb_leaf(
}
y_rec += LCU_WIDTH;
}
if(cclm_params == NULL) {
cclm_parameters_t temp_params;
kvz_predict_cclm(
state, color, width, width, x, y, stride, intra_mode, lcu->rec.y, &refs, pred, &temp_params);
}
else {
linear_transform_cclm(&cclm_params[color == COLOR_U ? 0 : 1], pred, pred, width, width);
}
}
const int index = lcu_px.x + lcu_px.y * lcu_width;
kvz_pixel *block = NULL;