mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-12-18 03:04:06 +00:00
[inter] Disable AMVR by default
* Can be used to reduce cost on signalling motion vectors later
This commit is contained in:
parent
d4902cc840
commit
757772e8c4
|
@ -195,7 +195,7 @@ int kvz_config_init(kvz_config *cfg)
|
||||||
|
|
||||||
cfg->jccr = 0;
|
cfg->jccr = 0;
|
||||||
|
|
||||||
cfg->amvr = 1;
|
cfg->amvr = 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
kvz_hmvp_add_mv(state, x, y, pu_w, pu_h, cur_pu);
|
||||||
}
|
}
|
||||||
|
|
||||||
// imv mode, set to quarter-pel resolution
|
// imv mode, select between fullpel, half-pel and quarter-pel resolutions
|
||||||
if (non_zero_mvd) {
|
// 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->cur_ctx = &(cabac->ctx.imv_flag[0]);
|
||||||
CABAC_BIN(cabac, (imv_mode > 0), "imv_flag");
|
CABAC_BIN(cabac, (imv_mode > 0), "imv_flag");
|
||||||
if (imv_mode > 0) {
|
if (imv_mode > 0) {
|
||||||
|
|
Loading…
Reference in a new issue