mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Skip computing MV cost twice in hexagon search
Changes the first step of hexagon search to skip the zero offset since the cost of the motion vector has already been computed.
This commit is contained in:
parent
fa4648061d
commit
606d441362
|
@ -659,7 +659,7 @@ static void hexagon_search(inter_search_info_t *info, vector2d_t extra_mv)
|
|||
int best_index = 0;
|
||||
|
||||
// Search the initial 7 points of the hexagon.
|
||||
for (int i = 0; i < 7; ++i) {
|
||||
for (int i = 1; i < 7; ++i) {
|
||||
if (check_mv_cost(info, mv.x + large_hexbs[i].x, mv.y + large_hexbs[i].y)) {
|
||||
best_index = i;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue