From 6fb68f67a0fab0cdd9ffa61329ed09939fe1bb31 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 24 Aug 2026 15:31:24 +0000 Subject: [PATCH 1/2] Add SVE2 optimizations of ImagePngSaver. Implement SVE2 PNG filter encoding, Adler-32, and zlib match counting for ImagePngSaver, wire it into ImageSaveToMemory, extend save tests for unaligned PNG sizes, and note the change in release 7.2.165. Co-authored-by: igor.ermolaev --- docs/2026.html | 2 + prj/vs2022/Sve2.vcxproj | 3 + prj/vs2022/Sve2.vcxproj.filters | 9 + src/Simd/SimdImageSave.h | 6 + src/Simd/SimdImageSavePng.h | 30 ++- src/Simd/SimdSve2ImageSave.cpp | 2 +- src/Simd/SimdSve2ImageSavePng.cpp | 421 ++++++++++++++++++++++++++++++ src/Test/TestImageIO.cpp | 13 + 8 files changed, 484 insertions(+), 2 deletions(-) create mode 100644 src/Simd/SimdSve2ImageSavePng.cpp diff --git a/docs/2026.html b/docs/2026.html index 6c298e28b6..54f7b77a66 100644 --- a/docs/2026.html +++ b/docs/2026.html @@ -78,6 +78,7 @@
New features
  • SVE2 optimizations of class ImagePpmTxtSaver.
  • SVE2 optimizations of class ImagePpmBinSaver.
  • SVE2 optimizations of class ImageBmpSaver.
  • +
  • SVE2 optimizations of class ImagePngSaver.
  • C++ wrapper Simd::SynetAdd16b.
  • C++ wrapper Simd::SynetQuantizedAdd.
  • C++ wrapper Simd::SynetQuantizedMul.
  • @@ -148,6 +149,7 @@
    New features
  • Tests for verifying functionality of SVE2 optimizations of class ImagePgmBinSaver.
  • Tests for verifying functionality of SVE2 optimizations of class ImagePpmTxtSaver.
  • Tests for verifying functionality of SVE2 optimizations of class ImagePpmBinSaver.
  • +
  • Tests for verifying functionality of SVE2 optimizations of class ImagePngSaver.
  • Removing