mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 08:14:10 +03:00
Only use ASCII characters in C source file
This commit is contained in:
parent
8ed46cd568
commit
d97db54be0
|
@ -7,8 +7,8 @@
|
|||
#define PRECISION_BITS (16 - 8 - 2)
|
||||
#define PRECISION_ROUNDING (1 << (PRECISION_BITS - 1))
|
||||
|
||||
/* 8 — scales are multiplied on byte.
|
||||
6 — max index in the table
|
||||
/* 8 - scales are multiplied on byte.
|
||||
6 - max index in the table
|
||||
(max size is 65, but index 64 is not reachable) */
|
||||
#define SCALE_BITS (32 - 8 - 6)
|
||||
#define SCALE_MASK ((1 << SCALE_BITS) - 1)
|
||||
|
@ -44,14 +44,14 @@ table_index3D(int index1D, int index2D, int index3D, int size1D, int size1D_2D)
|
|||
Transforms colors of imIn using provided 3D lookup table
|
||||
and puts the result in imOut. Returns imOut on success or 0 on error.
|
||||
|
||||
imOut, imIn — images, should be the same size and may be the same image.
|
||||
imOut, imIn - images, should be the same size and may be the same image.
|
||||
Should have 3 or 4 channels.
|
||||
table_channels — number of channels in the lookup table, 3 or 4.
|
||||
table_channels - number of channels in the lookup table, 3 or 4.
|
||||
Should be less or equal than number of channels in imOut image;
|
||||
size1D, size_2D and size3D — dimensions of provided table;
|
||||
table — flat table,
|
||||
array with table_channels × size1D × size2D × size3D elements,
|
||||
where channels are changed first, then 1D, then 2D, then 3D.
|
||||
size1D, size_2D and size3D - dimensions of provided table;
|
||||
table - flat table,
|
||||
array with table_channels * size1D * size2D * size3D elements,
|
||||
where channels are changed first, then 1D, then 2D, then 3D.
|
||||
Each element is signed 16-bit int where 0 is lowest output value
|
||||
and 255 << PRECISION_BITS (16320) is highest value.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user