mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fixed typos
This commit is contained in:
parent
5f31fe8b38
commit
aad079a669
|
@ -729,7 +729,7 @@ static cmsBool _calculate_rgb_primaries(CmsProfileObject* self, cmsCIEXYZTRIPLE*
|
||||||
|
|
||||||
/* http://littlecms2.blogspot.com/2009/07/less-is-more.html */
|
/* http://littlecms2.blogspot.com/2009/07/less-is-more.html */
|
||||||
|
|
||||||
// double array of RGB values with max on each identitiy
|
// double array of RGB values with max on each identity
|
||||||
hXYZ = cmsCreateXYZProfile();
|
hXYZ = cmsCreateXYZProfile();
|
||||||
if (hXYZ == NULL)
|
if (hXYZ == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
2
decode.c
2
decode.c
|
@ -204,7 +204,7 @@ _setimage(ImagingDecoderObject* decoder, PyObject* args)
|
||||||
}
|
}
|
||||||
state->bytes = (state->bits * state->xsize+7)/8;
|
state->bytes = (state->bits * state->xsize+7)/8;
|
||||||
}
|
}
|
||||||
/* malloc check ok, oveflow checked above */
|
/* malloc check ok, overflow checked above */
|
||||||
state->buffer = (UINT8*) malloc(state->bytes);
|
state->buffer = (UINT8*) malloc(state->bytes);
|
||||||
if (!state->buffer)
|
if (!state->buffer)
|
||||||
return PyErr_NoMemory();
|
return PyErr_NoMemory();
|
||||||
|
|
|
@ -407,7 +407,7 @@ int quantize_octree(Pixel *pixelData,
|
||||||
/* remove the used fine colors from the coarse cube */
|
/* remove the used fine colors from the coarse cube */
|
||||||
subtract_color_buckets(coarseCube, paletteBucketsFine, nFineColors);
|
subtract_color_buckets(coarseCube, paletteBucketsFine, nFineColors);
|
||||||
|
|
||||||
/* did the substraction cleared one or more coarse bucket? */
|
/* did the subtraction cleared one or more coarse bucket? */
|
||||||
while (nCoarseColors > count_used_color_buckets(coarseCube)) {
|
while (nCoarseColors > count_used_color_buckets(coarseCube)) {
|
||||||
/* then we can use the free buckets for fine colors */
|
/* then we can use the free buckets for fine colors */
|
||||||
nAlreadySubtracted = nFineColors;
|
nAlreadySubtracted = nFineColors;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user