mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 07:34:46 +03:00
Fixed indentation to use 4 spaces.
This commit is contained in:
parent
02f0ee5dc4
commit
34c8cbfc0e
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
#ifndef round
|
#ifndef round
|
||||||
double round(double x) {
|
double round(double x) {
|
||||||
return floor(x+0.5);
|
return floor(x+0.5);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -730,7 +730,7 @@ I16S_I(UINT8* out_, const UINT8* in, int xsize)
|
||||||
int x;
|
int x;
|
||||||
INT32* out = (INT32*) out_;
|
INT32* out = (INT32*) out_;
|
||||||
for (x = 0; x < xsize; x++, in += 2)
|
for (x = 0; x < xsize; x++, in += 2)
|
||||||
*out++ = (INT16)(in[0] + ((int) in[1] << 8));
|
*out++ = (INT16)(in[0] + ((int) in[1] << 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -819,9 +819,9 @@ I16S_L(UINT8* out, const UINT8* in, int xsize)
|
||||||
int x;
|
int x;
|
||||||
for (x = 0; x < xsize; x++, in += 2)
|
for (x = 0; x < xsize; x++, in += 2)
|
||||||
if (in[1] & 0x80)
|
if (in[1] & 0x80)
|
||||||
*out++ = 0; /* Negative -> 0 */
|
*out++ = 0; /* Negative -> 0 */
|
||||||
else if (in[1] != 0)
|
else if (in[1] != 0)
|
||||||
*out++ = 255; /* Greater than 255 -> 255 */
|
*out++ = 255; /* Greater than 255 -> 255 */
|
||||||
else
|
else
|
||||||
*out++ = in[0];
|
*out++ = in[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user