clang-format

This commit is contained in:
Aleksandr Karpinskii 2024-07-02 18:40:19 +04:00
parent 4cf5688cfd
commit 6a87df2c1f

View File

@ -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++) { \