mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fixed merge candidate usage by skipping weighted prediction candidate
This commit is contained in:
parent
7952f892fc
commit
2d8552d0d6
|
@ -469,6 +469,7 @@ static unsigned tz_search(const encoder_state_t * const state, unsigned depth,
|
|||
// both mv_cand vectors and (0, 0).
|
||||
for (i = 0; i < num_cand; ++i)
|
||||
{
|
||||
if (merge_cand[i].dir == 3) continue;
|
||||
mv.x = merge_cand[i].mv[merge_cand[i].dir - 1][0] >> 2;
|
||||
mv.y = merge_cand[i].mv[merge_cand[i].dir - 1][1] >> 2;
|
||||
|
||||
|
@ -620,6 +621,7 @@ static unsigned hexagon_search(const encoder_state_t * const state, unsigned dep
|
|||
// Select starting point from among merge candidates. These should include
|
||||
// both mv_cand vectors and (0, 0).
|
||||
for (i = 0; i < num_cand; ++i) {
|
||||
if (merge_cand[i].dir == 3) continue;
|
||||
mv.x = merge_cand[i].mv[merge_cand[i].dir - 1][0] >> 2;
|
||||
mv.y = merge_cand[i].mv[merge_cand[i].dir - 1][1] >> 2;
|
||||
|
||||
|
|
Loading…
Reference in a new issue