Skip to content

Commit f20ce67

Browse files
committed
bump libavif to 1.3.0
1 parent 8905480 commit f20ce67

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/wheels-dependencies.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LIBWEBP_VERSION=1.5.0
5151
BZIP2_VERSION=1.0.8
5252
LIBXCB_VERSION=1.17.0
5353
BROTLI_VERSION=1.1.0
54-
LIBAVIF_VERSION=1.2.1
54+
LIBAVIF_VERSION=1.3.0
5555

5656
function build_pkg_config {
5757
if [ -e pkg-config-stamp ]; then return; fi
@@ -128,22 +128,17 @@ function build_libavif {
128128
fi
129129

130130
local out_dir=$(fetch_unpack https://github.com/AOMediaCodec/libavif/archive/refs/tags/v$LIBAVIF_VERSION.tar.gz libavif-$LIBAVIF_VERSION.tar.gz)
131-
# CONFIG_AV1_DECODER=0 is a flag for libaom (included as a subproject of
132-
# libavif) to disable the compilation and inclusion of aom's AV1 decoder.
133-
# CONFIG_AV1_HIGHBITDEPTH=0 is another flag for libaom that disables support
134-
# for encoding high bit depth images.
135-
# CMAKE_POLICY_VERSION_MINIMUM=3.9 enables cmake policy CMP0069, which is
136-
# required to allow INTERPROCEDURAL_OPTIMIZATION (-flto) WITH gcc
131+
# CONFIG_AV1_HIGHBITDEPTH=0 is a flag for libaom (included as a subproject
132+
# of libavif) that disables support for encoding high bit depth images.
137133
(cd $out_dir \
138-
&& CMAKE_POLICY_VERSION_MINIMUM=3.9 cmake \
134+
&& cmake \
139135
-DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX \
140136
-DCMAKE_INSTALL_LIBDIR=$BUILD_PREFIX/lib \
141137
-DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib \
142138
-DBUILD_SHARED_LIBS=ON \
143139
-DAVIF_LIBSHARPYUV=LOCAL \
144140
-DAVIF_LIBYUV=LOCAL \
145141
-DAVIF_CODEC_AOM=LOCAL \
146-
-DCONFIG_AV1_DECODER=0 \
147142
-DCONFIG_AV1_HIGHBITDEPTH=0 \
148143
-DAVIF_CODEC_AOM_DECODE=OFF \
149144
-DAVIF_CODEC_DAV1D=LOCAL \

Tests/test_file_avif.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_background_from_gif(self, tmp_path: Path) -> None:
233233
with Image.open(out_gif) as reread:
234234
reread_value = reread.convert("RGB").getpixel((1, 1))
235235
difference = sum([abs(original_value[i] - reread_value[i]) for i in range(3)])
236-
assert difference <= 3
236+
assert difference <= 6
237237

238238
def test_save_single_frame(self, tmp_path: Path) -> None:
239239
temp_file = tmp_path / "temp.avif"

winbuild/build_prepare.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def cmd_msbuild(
119119
"HARFBUZZ": "11.1.0",
120120
"JPEGTURBO": "3.1.0",
121121
"LCMS2": "2.17",
122-
"LIBAVIF": "1.2.1",
122+
"LIBAVIF": "1.3.0",
123123
"LIBIMAGEQUANT": "4.3.4",
124124
"LIBPNG": "1.6.47",
125125
"LIBWEBP": "1.5.0",
@@ -399,7 +399,6 @@ def cmd_msbuild(
399399
"-DAVIF_LIBSHARPYUV=LOCAL",
400400
"-DAVIF_LIBYUV=LOCAL",
401401
"-DAVIF_CODEC_AOM=LOCAL",
402-
"-DCONFIG_AV1_DECODER=0",
403402
"-DCONFIG_AV1_HIGHBITDEPTH=0",
404403
"-DAVIF_CODEC_AOM_DECODE=OFF",
405404
"-DAVIF_CODEC_DAV1D=LOCAL",

0 commit comments

Comments
 (0)