mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
[cclm] fix cclm for 4x4
This commit is contained in:
parent
b8b603feb7
commit
2fbbae834b
|
@ -941,10 +941,10 @@ static double search_cu(
|
||||||
state, x, y, cu_width / 2, cu_width / 2, lcu->rec.y, lcu->left_ref.y[64]
|
state, x, y, cu_width / 2, cu_width / 2, lcu->rec.y, lcu->left_ref.y[64]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
intra_search.pred_cu.joint_cb_cr = 0;
|
|
||||||
|
|
||||||
// TODO: This heavily relies to square CUs
|
// TODO: This heavily relies to square CUs
|
||||||
if ((depth != 4 || (x % 8 && y % 8)) && state->encoder_control->chroma_format != UVG_CSP_400 && tree_type != UVG_LUMA_T) {
|
if ((depth != 4 || (x % 8 && y % 8)) && state->encoder_control->chroma_format != UVG_CSP_400 && tree_type != UVG_LUMA_T) {
|
||||||
|
|
||||||
|
intra_search.pred_cu.joint_cb_cr = 0;
|
||||||
// There is almost no benefit to doing the chroma mode search for
|
// There is almost no benefit to doing the chroma mode search for
|
||||||
// rd2. Possibly because the luma mode search already takes chroma
|
// rd2. Possibly because the luma mode search already takes chroma
|
||||||
// into account, so there is less of a chanse of luma mode being
|
// into account, so there is less of a chanse of luma mode being
|
||||||
|
@ -985,6 +985,9 @@ static double search_cu(
|
||||||
intra_search.pred_cu.violates_lfnst_constrained_chroma = false;
|
intra_search.pred_cu.violates_lfnst_constrained_chroma = false;
|
||||||
intra_search.pred_cu.lfnst_last_scan_pos = false;
|
intra_search.pred_cu.lfnst_last_scan_pos = false;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
intra_search.pred_cu.intra.mode_chroma = intra_mode;
|
||||||
|
}
|
||||||
intra_search.pred_cu.intra.mode = intra_mode;
|
intra_search.pred_cu.intra.mode = intra_mode;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue