eyedav
84aa4372fd
linter changes
2025-07-19 17:06:44 +02:00
eyedav
9527ce7f8c
change mode structs to enums
...
Structs have better type safety, but they make allocation more difficult, especially when we have multiple Python modules trying to share the same code.
2025-07-19 16:54:32 +02:00
eyedav
d11819ca6b
use mode structs in Unpack.c
2025-07-19 15:55:44 +02:00
Yay295
141c95df9a
use mode structs in TiffDecode.c
2025-07-19 15:54:15 +02:00
Yay295
af3c24e12b
use mode structs in Palette.c
2025-07-19 15:47:10 +02:00
eyedav
e5bc5b4ffa
use mode structs in Pack.c
2025-07-19 15:47:07 +02:00
eyedav
4906285619
add function isModeI16() to check if a mode is an I;16 mode
2025-07-19 15:41:13 +02:00
Yay295
30d4cd0229
use mode structs in JpegDecode.c
2025-07-19 15:39:18 +02:00
eyedav
0df2ed0640
use mode structs in Access.c
2025-07-19 14:53:22 +02:00
eyedav
a12dc30dc0
use mode structs in encode.c and decode.c
2025-07-19 14:46:29 +02:00
Yay295
63a45ad8d0
add special modes
2025-07-19 14:29:08 +02:00
Yay295
cd93629a5c
use a struct for mode names instead of just a string
2025-07-19 14:29:08 +02:00