forked from python-pillow/Pillow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle avifDecoderCreate and avifEncoderCreate errors (#21)
* Simplify Python code by receiving tuple from C, as per python-pillow#8740 * Use default PyTypeObject value * Removed AVIF_TRUE * Width and height are already set on first frame * Removed memset * Depth is set by avifRGBImageSetDefaults * Replace PyObject with int * After a failed pixel allocation, destroy non-first frame * Added error if avifImageCreateEmpty returns NULL * Python images cannot have negative dimensions * Test invalid canvas dimensions * Use boolean format argument * Handle avifDecoderCreate and avifEncoderCreate errors * tileRowsLog2 and tileColsLog2 are ignored if autotiling is enabled * Only define _add_codec_specific_options if it may be used * Test non-string advanced value * Simplified error handling in AvifEncoderNew * Corrected heading --------- Co-authored-by: Andrew Murray <[email protected]>
- Loading branch information
Showing
4 changed files
with
106 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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 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 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.