Fixed couple of if-clauses which still used the old intra mode range.

This commit is contained in:
Sami Ahovainio 2018-09-17 08:56:43 +03:00
parent a437d4c508
commit 82fb80ab6e
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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);
}
}