Pillow/src
Andrew Murray 0590f08f42
Handle avifDecoderCreate and avifEncoderCreate errors (#21)
* Simplify Python code by receiving tuple from C, as per #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 <radarhere@users.noreply.github.com>
2025-02-12 15:35:03 -05:00
..
libImaging Removed unused file 2025-01-29 17:33:55 +11:00
PIL Handle avifDecoderCreate and avifEncoderCreate errors (#21) 2025-02-12 15:35:03 -05:00
thirdparty Fix SEGFAULT from calling FT_New_Face/FT_Done_Face in multiple threads 2024-10-24 16:01:28 +02:00
Tk rename PyCapsule -> Capsule 2024-09-08 17:30:24 +04:00
_avif.c Handle avifDecoderCreate and avifEncoderCreate errors (#21) 2025-02-12 15:35:03 -05:00
_imaging.c Merge pull request #8734 from radarhere/module 2025-02-06 13:25:54 +02:00
_imagingcms.c Use member names to initialize modules 2025-02-05 20:20:57 +11:00
_imagingft.c Merge pull request #8734 from radarhere/module 2025-02-06 13:25:54 +02:00
_imagingmath.c Use member names to initialize modules 2025-02-05 20:20:57 +11:00
_imagingmorph.c Use member names to initialize modules 2025-02-05 20:20:57 +11:00
_imagingtk.c Use member names to initialize modules 2025-02-05 20:20:57 +11:00
_webp.c Merge pull request #8734 from radarhere/module 2025-02-06 13:25:54 +02:00
decode.c Use Py_RETURN_NONE macro when possible 2025-01-27 18:17:03 +11:00
display.c Use Py_RETURN_NONE macro when possible 2025-01-27 18:17:03 +11:00
encode.c Simplify Python code by passing tuples to C 2025-02-05 19:12:50 +11:00
map.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
outline.c Use Py_RETURN_NONE macro when possible 2025-01-27 18:17:03 +11:00
path.c Use Py_RETURN_NONE macro when possible 2025-01-27 18:17:03 +11:00