From b1879b8a168905a4eb039fb65103c5469b8eb5cc Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Fri, 12 Jul 2024 21:12:30 -0400 Subject: [PATCH] tests: add failing test for macos arm64 aom intrinsics --- tests/test_file_avif.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/test_file_avif.py b/tests/test_file_avif.py index a6ef23e..23f2302 100644 --- a/tests/test_file_avif.py +++ b/tests/test_file_avif.py @@ -584,6 +584,18 @@ def test_decoder_strict_flags(self): with Image.open("%s/tests/images/chimera-missing-pixi.avif" % CURR_DIR) as im: assert im.size == (480, 270) + @skip_unless_avif_encoder("aom") + def test_aom_optimizations(self): + im = hopper("RGB") + buf = BytesIO() + im.save(buf, format="AVIF", codec="aom", speed=1) + + @skip_unless_avif_encoder("svt") + def test_svt_optimizations(self): + im = hopper("RGB") + buf = BytesIO() + im.save(buf, format="AVIF", codec="svt", speed=1) + class TestAvifAnimation: @contextmanager