-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Use enums for Modes and RawModes in C #9100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
eyedav
wants to merge
60
commits into
python-pillow:main
Choose a base branch
from
eyedav:mode_enums
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
cd93629
use a struct for mode names instead of just a string
Yay295 63a45ad
add special modes
Yay295 12409e4
use mode structs in _imaging.c
eyedav a37f53c
use mode structs in tkImaging.c
Yay295 a12dc30
use mode structs in encode.c and decode.c
eyedav 0df2ed0
use mode structs in Access.c
eyedav 82182ba
use mode structs in AlphaComposite.c
Yay295 d0541a7
use mode structs in Bands.c
Yay295 38c75b9
use mode structs in Blend.c
Yay295 6f6e1f9
use mode structs in BoxBlur.c
Yay295 ecf1fce
use mode structs in Chops.c
Yay295 9bf3495
use mode structs in Convert.c
eyedav bcfe5f2
use mode structs in Draw.c
eyedav b5c4b82
use mode structs in Effects.c
Yay295 19c0d1d
use mode structs in File.c
Yay295 6202eef
use mode structs in Fill.c
Yay295 af22363
use mode structs in Filter.c
eyedav cfe9155
use mode structs in Geometry.c
Yay295 2668338
use mode structs in GetBBox.c
Yay295 2749770
use mode structs in Histo.c
Yay295 3327258
use mode structs in Jpeg2KDecode.c
Yay295 98a2c63
use mode structs in Jpeg2KEncode.c
Yay295 30d4cd0
use mode structs in JpegDecode.c
Yay295 0abfdd2
use mode structs in JpegEncode.c
Yay295 378c3bd
use mode structs in Matrix.c
Yay295 4906285
add function isModeI16() to check if a mode is an I;16 mode
eyedav e5bc5b4
use mode structs in Pack.c
eyedav af3c24e
use mode structs in Palette.c
Yay295 2a9d712
use mode structs in Paste.c
Yay295 7e48697
use mode structs in Point.c
Yay295 fb73d90
use mode structs in Quant.c
Yay295 c80fba3
use mode structs in Reduce.c
Yay295 858b0b3
use mode structs in Resample.c
eyedav e75a0a9
use mode structs in Storage.c
eyedav 141c95d
use mode structs in TiffDecode.c
Yay295 39d434b
use (void) for empty function parameters
Yay295 31118b0
set pointer to NULL after free
Yay295 d11819c
use mode structs in Unpack.c
eyedav feb7e6e
use mode structs in map.c
Yay295 c9c50ac
initialize accessors similar to converters/packers/unpackers
eyedav cacb8b3
define rawmodes
Yay295 20a5aea
fix findRawMode()
Yay295 579c55e
check for null input in findMode() and findRawMode()
Yay295 422eb1e
replace some string function usage with imaging mode checks
Yay295 16fc61e
use RawMode struct for jpegmode
Yay295 4b07ed5
use Mode struct for windows display code
Yay295 9527ce7
change mode structs to enums
eyedav 4d721bc
use mode enums in _webp.c
Yay295 aa39e84
use mode enums in Jpeg2KDecode.c
eyedav a53f83f
use mode enums in _imagingft.c
Yay295 f8bfa2f
use more mode enums in decode.c
Yay295 4750347
add Mode.c as a dependency for _imagingft.c and _webp.c
eyedav e483a97
use a different temp build dir for each module
Yay295 28adda9
build Mode.c as a common library
eyedav 0567f06
add debug check that all modes and rawmodes are defined
Yay295 2f169fa
use mode enums in _imagingcms.c
Yay295 d82576f
require types-setuptools>=75.2.0
eyedav 84aa437
linter changes
eyedav adfb66f
Fix Compliation errors from rebase
wiredfool 726de49
Merge branch 'main' into mode_enums
radarhere File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ sphinx | |
types-atheris | ||
types-defusedxml | ||
types-olefile | ||
types-setuptools | ||
types-setuptools>=75.2.0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're currently at 80.9.0. I think this has sufficiently propagated?