mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
clang-format
This commit is contained in:
parent
4cf5688cfd
commit
6a87df2c1f
|
@ -30,7 +30,7 @@ ImagingGetBBox(Imaging im, int bbox[4], int alpha_only) {
|
||||||
bbox[1] = -1;
|
bbox[1] = -1;
|
||||||
bbox[2] = bbox[3] = 0;
|
bbox[2] = bbox[3] = 0;
|
||||||
|
|
||||||
#define GETBBOX(image, mask) \
|
#define GETBBOX(image, mask) \
|
||||||
/* first stage: looking for any px from top */ \
|
/* first stage: looking for any px from top */ \
|
||||||
for (y = 0; y < im->ysize; y++) { \
|
for (y = 0; y < im->ysize; y++) { \
|
||||||
has_data = 0; \
|
has_data = 0; \
|
||||||
|
@ -41,7 +41,8 @@ ImagingGetBBox(Imaging im, int bbox[4], int alpha_only) {
|
||||||
bbox[1] = y; \
|
bbox[1] = y; \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
if (has_data) break; \
|
if (has_data) \
|
||||||
|
break; \
|
||||||
} \
|
} \
|
||||||
/* Check that we got a box */ \
|
/* Check that we got a box */ \
|
||||||
if (bbox[1] < 0) \
|
if (bbox[1] < 0) \
|
||||||
|
@ -55,7 +56,8 @@ ImagingGetBBox(Imaging im, int bbox[4], int alpha_only) {
|
||||||
bbox[3] = y + 1; \
|
bbox[3] = y + 1; \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
if (has_data) break; \
|
if (has_data) \
|
||||||
|
break; \
|
||||||
} \
|
} \
|
||||||
/* third stage: looking for left and right boundaries */ \
|
/* third stage: looking for left and right boundaries */ \
|
||||||
for (y = bbox[1]; y < bbox[3]; y++) { \
|
for (y = bbox[1]; y < bbox[3]; y++) { \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user