mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Force certain intra modes off
This commit is contained in:
parent
54b8fd054d
commit
fa25621c77
|
@ -557,7 +557,7 @@ static void encode_intra_coding_unit(encoder_state_t * const state,
|
||||||
}
|
}
|
||||||
// Is the mode in the MPM array or not
|
// Is the mode in the MPM array or not
|
||||||
flag[j] = (mpm_preds[j] == -1) ? 0 : 1;
|
flag[j] = (mpm_preds[j] == -1) ? 0 : 1;
|
||||||
if (!(cur_pu->intra.multi_ref_idx || (isp_mode))) {
|
if (true||!(cur_pu->intra.multi_ref_idx || (isp_mode))) {
|
||||||
CABAC_BIN(cabac, flag[j], "prev_intra_luma_pred_flag");
|
CABAC_BIN(cabac, flag[j], "prev_intra_luma_pred_flag");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -573,7 +573,7 @@ static void encode_intra_coding_unit(encoder_state_t * const state,
|
||||||
const int pu_y = PU_GET_Y(cur_cu->part_size, cu_width, y, j);
|
const int pu_y = PU_GET_Y(cur_cu->part_size, cu_width, y, j);
|
||||||
const cu_info_t *cur_pu = kvz_cu_array_at_const(frame->cu_array, pu_x, pu_y);
|
const cu_info_t *cur_pu = kvz_cu_array_at_const(frame->cu_array, pu_x, pu_y);
|
||||||
cabac->cur_ctx = &(cabac->ctx.luma_planar_model[(isp_mode ? 0 : 1)]);
|
cabac->cur_ctx = &(cabac->ctx.luma_planar_model[(isp_mode ? 0 : 1)]);
|
||||||
if (cur_pu->intra.multi_ref_idx == 0) {
|
if (true||cur_pu->intra.multi_ref_idx == 0) {
|
||||||
CABAC_BIN(cabac, (mpm_preds[j] > 0 ? 1 : 0), "mpm_idx_luma_planar");
|
CABAC_BIN(cabac, (mpm_preds[j] > 0 ? 1 : 0), "mpm_idx_luma_planar");
|
||||||
}
|
}
|
||||||
//CABAC_BIN_EP(cabac, (mpm_preds[j] > 0 ? 1 : 0), "mpm_idx");
|
//CABAC_BIN_EP(cabac, (mpm_preds[j] > 0 ? 1 : 0), "mpm_idx");
|
||||||
|
|
Loading…
Reference in a new issue