From 1064603164cc0233a35cd8d967861cbdebedf2e9 Mon Sep 17 00:00:00 2001 From: siivonek Date: Tue, 7 Sep 2021 14:51:09 +0200 Subject: [PATCH] Limit MRL search to only MPM modes. --- src/search_intra.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/search_intra.c b/src/search_intra.c index 42a4c6a3..6216cbbc 100644 --- a/src/search_intra.c +++ b/src/search_intra.c @@ -1102,6 +1102,10 @@ void kvz_search_cu_intra(encoder_state_t * const state, } for(int line = 0; line < lines; ++line) { + // For extra reference lines, only check predicted modes + if (line != 0) { + number_of_modes_to_search = 0; + } int num_modes_to_check = MIN(number_of_modes[line], number_of_modes_to_search); cur_cu->intra.multi_ref_idx = line; kvz_sort_modes(modes[line], costs[line], number_of_modes[line]);