[lfnst] lfnst is not allowed for transform split

This commit is contained in:
Joose Sainio 2022-09-05 12:04:21 +03:00 committed by Marko Viitanen
parent cb7f9919e3
commit e0e96068cc

View file

@ -114,7 +114,7 @@ bool uvg_is_lfnst_allowed(
const color_t color, const color_t color,
const lcu_t* lcu) const lcu_t* lcu)
{ {
if (state->encoder_control->cfg.lfnst && pred_cu->type == CU_INTRA) { if (state->encoder_control->cfg.lfnst && pred_cu->type == CU_INTRA && pred_cu->depth == pred_cu->tr_depth) {
const int isp_mode = pred_cu->intra.isp_mode; const int isp_mode = pred_cu->intra.isp_mode;
const int depth = pred_cu->depth; const int depth = pred_cu->depth;
const int chroma_width = width >> 1; const int chroma_width = width >> 1;