assembling: Fix assembling of last frame in reverse mode
The last image is always misplaced because the sign of the delta vector isn't corrected. This could result in false positives and verification failing. https://bugs.freedesktop.org/show_bug.cgi?id=105027
This commit is contained in:
parent
37bb59df13
commit
0215483fb3
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ static unsigned int do_movement_estimation(struct fpi_frame_asmbl_ctx *ctx,
|
|||
|
||||
if (reverse) {
|
||||
find_overlap(ctx, prev_stripe, cur_stripe, &min_error);
|
||||
prev_stripe->delta_y = -prev_stripe->delta_y;
|
||||
prev_stripe->delta_x = -prev_stripe->delta_x;
|
||||
cur_stripe->delta_y = -cur_stripe->delta_y;
|
||||
cur_stripe->delta_x = -cur_stripe->delta_x;
|
||||
}
|
||||
else
|
||||
find_overlap(ctx, cur_stripe, prev_stripe, &min_error);
|
||||
|
|
Loading…
Reference in a new issue