mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fixed couple of if-clauses which still used the old intra mode range.
This commit is contained in:
parent
a437d4c508
commit
82fb80ab6e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue