mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Rename variables
This commit is contained in:
parent
81c72bd297
commit
1e1f773f8a
|
@ -554,7 +554,7 @@ ImagingResampleInner(Imaging imIn, int xsize, int ysize,
|
||||||
Imaging imOut = NULL;
|
Imaging imOut = NULL;
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int yroi_min, yroi_max;
|
int ybox_first, ybox_last;
|
||||||
int ksize_horiz, ksize_vert;
|
int ksize_horiz, ksize_vert;
|
||||||
int *bounds_horiz, *bounds_vert;
|
int *bounds_horiz, *bounds_vert;
|
||||||
double *kk_horiz, *kk_vert;
|
double *kk_horiz, *kk_vert;
|
||||||
|
@ -574,21 +574,21 @@ ImagingResampleInner(Imaging imIn, int xsize, int ysize,
|
||||||
}
|
}
|
||||||
|
|
||||||
// First used row in the source image
|
// First used row in the source image
|
||||||
yroi_min = bounds_vert[0];
|
ybox_first = bounds_vert[0];
|
||||||
// Last used row in the source image
|
// Last used row in the source image
|
||||||
yroi_max = bounds_vert[ysize*2 - 2] + bounds_vert[ysize*2 - 1];
|
ybox_last = bounds_vert[ysize*2 - 2] + bounds_vert[ysize*2 - 1];
|
||||||
|
|
||||||
|
|
||||||
/* two-pass resize, first pass */
|
/* two-pass resize, first pass */
|
||||||
if (box[0] || box[2] != xsize) {
|
if (box[0] || box[2] != xsize) {
|
||||||
// Shift bounds for vertical pass
|
// Shift bounds for vertical pass
|
||||||
for (i = 0; i < ysize; i++) {
|
for (i = 0; i < ysize; i++) {
|
||||||
bounds_vert[i * 2] -= yroi_min;
|
bounds_vert[i * 2] -= ybox_first;
|
||||||
}
|
}
|
||||||
|
|
||||||
imTemp = ImagingNewDirty(imIn->mode, xsize, yroi_max - yroi_min);
|
imTemp = ImagingNewDirty(imIn->mode, xsize, ybox_last - ybox_first);
|
||||||
if (imTemp) {
|
if (imTemp) {
|
||||||
ResampleHorizontal(imTemp, imIn, yroi_min,
|
ResampleHorizontal(imTemp, imIn, ybox_first,
|
||||||
ksize_horiz, bounds_horiz, kk_horiz);
|
ksize_horiz, bounds_horiz, kk_horiz);
|
||||||
}
|
}
|
||||||
free(bounds_horiz);
|
free(bounds_horiz);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user