mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Prevent 8x4 and 4x8 bipred in merge analysis
This commit is contained in:
parent
ef1fdbf259
commit
147378e1f9
|
@ -1565,7 +1565,11 @@ static void search_pu_inter(encoder_state_t * const state,
|
|||
cur_cu->inter.mv[1][0] = cur_cand->mv[1][0];
|
||||
cur_cu->inter.mv[1][1] = cur_cand->mv[1][1];
|
||||
|
||||
// If bipred is not enabled, do not try candidates with mv_dir == 3.
|
||||
// Bipred is also forbidden for 4x8 and 8x4 blocks by the standard.
|
||||
if (cur_cu->inter.mv_dir == 3 && !state->encoder_control->cfg.bipred) continue;
|
||||
if (cur_cu->inter.mv_dir == 3 && !(width + height > 12)) continue;
|
||||
|
||||
bool is_duplicate = merge_candidate_in_list(info.merge_cand, cur_cand,
|
||||
mrg_cands,
|
||||
num_rdo_cands);
|
||||
|
|
Loading…
Reference in a new issue