[inter] Disable AMVR by default

* Can be used to reduce cost on signalling motion vectors later
This commit is contained in:
Marko Viitanen 2021-11-16 17:38:38 +02:00
parent d4902cc840
commit 757772e8c4
2 changed files with 4 additions and 3 deletions

View file

@ -195,7 +195,7 @@ int kvz_config_init(kvz_config *cfg)
cfg->jccr = 0;
cfg->amvr = 1;
cfg->amvr = 0;
return 1;
}

View file

@ -1368,8 +1368,9 @@ void kvz_encode_coding_tree(encoder_state_t * const state,
kvz_hmvp_add_mv(state, x, y, pu_w, pu_h, cur_pu);
}
// imv mode, set to quarter-pel resolution
if (non_zero_mvd) {
// imv mode, select between fullpel, half-pel and quarter-pel resolutions
// 0 = off, 1 = fullpel, 2 = quarter-pel, 3 = half-pel
if (ctrl->cfg.amvr && non_zero_mvd) {
cabac->cur_ctx = &(cabac->ctx.imv_flag[0]);
CABAC_BIN(cabac, (imv_mode > 0), "imv_flag");
if (imv_mode > 0) {