Here is an update to libheif 1.19.5.
v1.19.0 - tile access for high-resolution images The major new feature in this release is the decoding of separate image tiles and also encoding an image tile by tile. This allows to process high-resolution images that do not fit into memory. Other changes: - decoding is faster, especially if you let libheif decide on the best colorspace to work in by passing heif_colorspace_unknown and heif_chroma_unknown to heif_decode_image(). It will then use the input colorspace and avoid unnecessary conversions. - support for multi-resolution pyramids (pymd) to show downscaled versions of high-resolution images - improved reader interface that enables to connect libheif to a network source. Libheif will request the portions of the image file that have to be downloaded from the server. This is especially useful in connection with the tiling / multi-resolution pyramid feature. - function to generate overlay images - decoding progress is signaled to the client application and decoding can be cancelled - decoding of AVC encoded images through OpenH264 - security limits can be changed to be able to read very large images Index: Makefile =================================================================== RCS file: /cvs/ports/multimedia/libheif/Makefile,v retrieving revision 1.18 diff -u -p -u -p -r1.18 Makefile --- Makefile 4 Oct 2024 11:36:02 -0000 1.18 +++ Makefile 24 Nov 2024 07:58:09 -0000 @@ -1,9 +1,9 @@ COMMENT= HEIF and AVIF file format decoder and encoder -V= 1.18.2 +V= 1.19.5 DISTNAME= libheif-$V -SHARED_LIBS += heif 2.2 +SHARED_LIBS += heif 2.3 CATEGORIES= multimedia graphics @@ -13,8 +13,8 @@ HOMEPAGE= https://github.com/strukturag/ PERMIT_PACKAGE= Yes WANTLIB += ${COMPILER_LIBCXX} aom c dav1d de265 gdk_pixbuf-2.0 -WANTLIB += glib-2.0 gobject-2.0 intl jpeg m png sharpyuv tiff x265 -WANTLIB += z +WANTLIB += glib-2.0 gobject-2.0 intl jpeg m openh264 png sharpyuv +WANTLIB += tiff x265 z SITES= https://github.com/strukturag/libheif/releases/download/v$V/ @@ -27,12 +27,14 @@ LIB_DEPENDS= graphics/gdk-pixbuf2 \ multimedia/aom \ multimedia/dav1d \ multimedia/libde265 \ + multimedia/openh264 \ graphics/jpeg \ multimedia/x265 # examples LIB_DEPENDS+= graphics/png -CONFIGURE_ARGS= -DWITH_DAV1D=On \ +CONFIGURE_ARGS= -DCMAKE_COMPILE_WARNING_AS_ERROR=Off \ + -DWITH_DAV1D=On \ -DWITH_JPEG_DECODER=On \ -DWITH_JPEG_ENCODER=On \ -DWITH_RAV1E=Off \ Index: distinfo =================================================================== RCS file: /cvs/ports/multimedia/libheif/distinfo,v retrieving revision 1.11 diff -u -p -u -p -r1.11 distinfo --- distinfo 4 Oct 2024 11:36:02 -0000 1.11 +++ distinfo 24 Nov 2024 07:58:09 -0000 @@ -1,2 +1,2 @@ -SHA256 (libheif-1.18.2.tar.gz) = xAAqYivsn1GfKdhL/cYCTjP9Z5U6X7TcLC8R9n1eRb8= -SIZE (libheif-1.18.2.tar.gz) = 1525096 +SHA256 (libheif-1.19.5.tar.gz) = 088KdgdhFaBw+byHz1JZszOh8FgGUABFM4eYSG0K+68= +SIZE (libheif-1.19.5.tar.gz) = 1716856 Index: patches/patch-CMakeLists_txt =================================================================== RCS file: patches/patch-CMakeLists_txt diff -N patches/patch-CMakeLists_txt --- patches/patch-CMakeLists_txt 3 Apr 2024 12:12:11 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ -Index: CMakeLists.txt ---- CMakeLists.txt.orig -+++ CMakeLists.txt -@@ -28,7 +28,6 @@ endif() - - if(NOT MSVC) - add_definitions(-Wall) -- add_definitions(-Werror) - add_definitions(-Wsign-compare) - add_definitions(-Wconversion) - add_definitions(-Wno-sign-conversion)