Here is an update to libheif 0.7.0 which adds initial AVIF support.
Index: Makefile =================================================================== RCS file: /home/cvs/ports/multimedia/libheif/Makefile,v retrieving revision 1.3 diff -u -p -u -p -r1.3 Makefile --- Makefile 27 Feb 2020 12:20:24 -0000 1.3 +++ Makefile 9 Jul 2020 04:42:28 -0000 @@ -1,10 +1,9 @@ # $OpenBSD: Makefile,v 1.3 2020/02/27 12:20:24 sthen Exp $ -COMMENT= ISO/IEC 23008-12:2017 HEIF file format decoder and encoder +COMMENT= HEIF and AVIF file format decoder and encoder -V= 1.6.2 +V= 1.7.0 DISTNAME= libheif-$V -REVISION= 1 SHARED_LIBS += heif 0.0 # 7.2 @@ -15,7 +14,7 @@ HOMEPAGE= https://github.com/strukturag/ # LGPLv3+ (library), MIT (sample applications) PERMIT_PACKAGE= Yes -WANTLIB += ${COMPILER_LIBCXX} c de265 ffi gdk_pixbuf-2.0 gio-2.0 +WANTLIB += ${COMPILER_LIBCXX} aom c de265 ffi gdk_pixbuf-2.0 gio-2.0 WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 iconv intl jpeg m WANTLIB += pcre png x265 z @@ -29,6 +28,7 @@ CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/li USE_GMAKE= Yes LIB_DEPENDS= graphics/gdk-pixbuf2 \ + multimedia/aom \ multimedia/libde265 \ multimedia/x265 RUN_DEPENDS= misc/shared-mime-info Index: distinfo =================================================================== RCS file: /home/cvs/ports/multimedia/libheif/distinfo,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 distinfo --- distinfo 24 Feb 2020 23:22:56 -0000 1.1.1.1 +++ distinfo 9 Jul 2020 04:41:38 -0000 @@ -1,2 +1,2 @@ -SHA256 (libheif-1.6.2.tar.gz) = uyKehVYh3rN09hvulcRkL2DCoklr3tNd89PELMbY7vw= -SIZE (libheif-1.6.2.tar.gz) = 1515763 +SHA256 (libheif-1.7.0.tar.gz) = hCqatLjW8Pr1ptxehQcyEZnsRMCx2OsZny3ptJ4tsJI= +SIZE (libheif-1.7.0.tar.gz) = 1526096 Index: pkg/DESCR =================================================================== RCS file: /home/cvs/ports/multimedia/libheif/pkg/DESCR,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 DESCR --- pkg/DESCR 24 Feb 2020 23:22:56 -0000 1.1.1.1 +++ pkg/DESCR 9 Jul 2020 04:45:37 -0000 @@ -1,12 +1,13 @@ -libheif is an ISO/IEC 23008-12:2017 HEIF file format decoder and -encoder. +libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File +Format) file format decoder and encoder. -HEIF is a new image file format employing HEVC (h.265) image coding for -the best compression ratios currently possible. +HEIF and AVIF are new image file formats employing HEVC (h.265) or +AV1 image coding, respectively, for the best compression ratios +currently possible. -libheif makes use of libde265 for the actual image decoding and x265 for -encoding. Alternative codecs for, e.g., AVC and JPEG can be provided as -plugins. There is experimental code for an AV1 plugin (for AVIF format -support) in the 'avif' branch. +libheif makes use of libde265 for HEIF image decoding and x265 for +encoding. For AVIF, libaom is used as encoder and decoder. +Alternative codecs for, e.g., AVC and JPEG can be provided as +plugins. The library has a C API for easy integration and wide language support.