From 82fb80ab6eb80da53092baccfc0ef3c25f323679 Mon Sep 17 00:00:00 2001 From: Sami Ahovainio Date: Mon, 17 Sep 2018 08:56:43 +0300 Subject: [PATCH] Fixed couple of if-clauses which still used the old intra mode range. --- src/search_intra.c | 4 ++-- src/transform.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/search_intra.c b/src/search_intra.c index 1021d6de..25cb6e49 100644 --- a/src/search_intra.c +++ b/src/search_intra.c @@ -744,8 +744,8 @@ int8_t kvz_search_cu_intra_chroma(encoder_state_t * const state, int8_t intra_mode = cur_pu->intra.mode; double costs[5]; - int8_t modes[5] = { 0, 26, 10, 1, 34 }; - if (intra_mode != 0 && intra_mode != 26 && intra_mode != 10 && intra_mode != 1) { + int8_t modes[5] = { 0, 50, 18, 1, 66 }; + if (intra_mode != 0 && intra_mode != 50 && intra_mode != 18 && intra_mode != 1) { modes[4] = intra_mode; } diff --git a/src/transform.c b/src/transform.c index 26876efe..2396b49a 100644 --- a/src/transform.c +++ b/src/transform.c @@ -361,9 +361,9 @@ static void quantize_tr_residual(encoder_state_t * const state, coeff); if (cfg->implicit_rdpcm && cur_pu->type == CU_INTRA) { // implicit rdpcm for horizontal and vertical intra modes - if (mode == 10) { + if (mode == 18) { rdpcm(tr_width, RDPCM_HOR, coeff); - } else if (mode == 26) { + } else if (mode == 50) { rdpcm(tr_width, RDPCM_VER, coeff); } }