pillow-avif-plugin 1.4.2__tar.gz → 1.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/PKG-INFO +1 -1
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/setup.py +14 -1
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif/__init__.py +1 -1
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif/_avif.c +5 -1
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/PKG-INFO +1 -1
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/LICENSE +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/MANIFEST.in +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/README.md +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/pyproject.toml +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/setup.cfg +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif/AvifImagePlugin.py +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/SOURCES.txt +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/dependency_links.txt +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/not-zip-safe +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/top_level.txt +0 -0
- {pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/tox.ini +0 -0
|
@@ -28,6 +28,19 @@ def readme():
|
|
|
28
28
|
IS_DEBUG = hasattr(sys, "gettotalrefcount")
|
|
29
29
|
PLATFORM_MINGW = os.name == "nt" and "GCC" in sys.version
|
|
30
30
|
|
|
31
|
+
libraries = ["avif"]
|
|
32
|
+
if sys.platform == "win32":
|
|
33
|
+
libraries.extend(
|
|
34
|
+
[
|
|
35
|
+
"advapi32",
|
|
36
|
+
"bcrypt",
|
|
37
|
+
"ntdll",
|
|
38
|
+
"userenv",
|
|
39
|
+
"ws2_32",
|
|
40
|
+
"kernel32",
|
|
41
|
+
]
|
|
42
|
+
)
|
|
43
|
+
|
|
31
44
|
setup(
|
|
32
45
|
name="pillow-avif-plugin",
|
|
33
46
|
description="A pillow plugin that adds avif support via libavif",
|
|
@@ -39,7 +52,7 @@ setup(
|
|
|
39
52
|
"pillow_avif._avif",
|
|
40
53
|
["src/pillow_avif/_avif.c"],
|
|
41
54
|
depends=["avif/avif.h"],
|
|
42
|
-
libraries=
|
|
55
|
+
libraries=libraries,
|
|
43
56
|
),
|
|
44
57
|
],
|
|
45
58
|
package_data={"": ["README.rst"]},
|
|
@@ -448,7 +448,11 @@ AvifEncoderNew(PyObject *self_, PyObject *args) {
|
|
|
448
448
|
init_max_threads();
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
|
|
451
|
+
int is_aom_encode = strcmp(codec, "aom") == 0 ||
|
|
452
|
+
(strcmp(codec, "auto") == 0 &&
|
|
453
|
+
_codec_available("aom", AVIF_CODEC_FLAG_CAN_ENCODE));
|
|
454
|
+
|
|
455
|
+
encoder->maxThreads = is_aom_encode && max_threads > 64 ? 64 : max_threads;
|
|
452
456
|
#if AVIF_VERSION >= 1000000
|
|
453
457
|
if (enc_options.qmin != -1 && enc_options.qmax != -1) {
|
|
454
458
|
encoder->minQuantizer = enc_options.qmin;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{pillow-avif-plugin-1.4.2 → pillow-avif-plugin-1.4.3}/src/pillow_avif_plugin.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|