Skip to content

Commit 6999e44

Browse files
committed
[ibc] Remove check_mv_cost_satd since it is not needed and causes an error, fixes #23
1 parent 0c1a830 commit 6999e44

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

Diff for: src/search_ibc.c

-32
Original file line numberDiff line numberDiff line change
@@ -219,38 +219,6 @@ static uint32_t calculate_ibc_cost_sad(ibc_search_info_t *info, const cu_loc_t*
219219
return cost;
220220
}
221221

222-
static bool check_mv_cost_satd(ibc_search_info_t *info,
223-
int x,
224-
int y,
225-
double *best_cost,
226-
double* best_bits,
227-
vector2d_t *best_mv)
228-
{
229-
if (!intmv_within_ibc_range(info, x, y)) return false;
230-
231-
double cost = calculate_ibc_cost_satd(info->state, info->lcu, &info->origin, x, y);
232-
233-
if (cost >= *best_cost) return false;
234-
235-
cost += info->mvd_cost_func(
236-
info->state,
237-
x, y, INTERNAL_MV_PREC,
238-
info->mv_cand,
239-
NULL,
240-
0,
241-
0,
242-
best_bits
243-
);
244-
245-
if (cost >= *best_cost) return false;
246-
247-
// Set to motion vector in internal pixel precision.
248-
best_mv->x = x * (1 << INTERNAL_MV_PREC);
249-
best_mv->y = y * (1 << INTERNAL_MV_PREC);
250-
*best_cost = cost;
251-
252-
return true;
253-
}
254222
/**
255223
* \brief Calculate cost for an integer motion vector.
256224
*

0 commit comments

Comments
 (0)