mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
videoscale Use stride instead of width in more places
This commit is contained in:
parent
db296c5924
commit
5adff2e65a
1 changed files with 4 additions and 4 deletions
|
@ -366,10 +366,10 @@ vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
t0 = tmpbuf + (CLAMP (j - 1, 0, src->height - 1) & 3) * dest->width;
|
t0 = tmpbuf + (CLAMP (j - 1, 0, src->height - 1) & 3) * dest->stride;
|
||||||
t1 = tmpbuf + (CLAMP (j, 0, src->height - 1) & 3) * dest->width;
|
t1 = tmpbuf + (CLAMP (j, 0, src->height - 1) & 3) * dest->stride;
|
||||||
t2 = tmpbuf + (CLAMP (j + 1, 0, src->height - 1) & 3) * dest->width;
|
t2 = tmpbuf + (CLAMP (j + 1, 0, src->height - 1) & 3) * dest->stride;
|
||||||
t3 = tmpbuf + (CLAMP (j + 2, 0, src->height - 1) & 3) * dest->width;
|
t3 = tmpbuf + (CLAMP (j + 2, 0, src->height - 1) & 3) * dest->stride;
|
||||||
vs_scanline_merge_4tap_Y (dest->pixels + i * dest->stride,
|
vs_scanline_merge_4tap_Y (dest->pixels + i * dest->stride,
|
||||||
t0, t1, t2, t3, dest->width, yacc & 0xffff);
|
t0, t1, t2, t3, dest->width, yacc & 0xffff);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue