mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
[lfnst] Also chroma can only use lfnst if dimensions are minimum 4
This commit is contained in:
parent
a36a1fb5ff
commit
f3c8a4f5db
|
@ -1445,7 +1445,7 @@ int8_t uvg_search_intra_chroma_rdo(
|
||||||
const int offset = ((cu_loc->local_x) >> 1) + ((cu_loc->local_y) >> 1)* LCU_WIDTH_C;
|
const int offset = ((cu_loc->local_x) >> 1) + ((cu_loc->local_y) >> 1)* LCU_WIDTH_C;
|
||||||
|
|
||||||
int lfnst_modes_to_check[3];
|
int lfnst_modes_to_check[3];
|
||||||
if((is_separate || tree_type == UVG_CHROMA_T) && state->encoder_control->cfg.lfnst && PU_IS_TU(&chroma_data->pred_cu) ) {
|
if((is_separate || tree_type == UVG_CHROMA_T) && state->encoder_control->cfg.lfnst && PU_IS_TU(&chroma_data->pred_cu) && chroma_height >= 4 && chroma_width >= 4) {
|
||||||
for (int i = 0; i < 3; ++i) {
|
for (int i = 0; i < 3; ++i) {
|
||||||
lfnst_modes_to_check[i] = i;
|
lfnst_modes_to_check[i] = i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue