Here is an update to libavif 0.9.1. ## [0.9.1] - 2021-05-19
### Added * Added strict mode/flags (enabled by default): `AVIF_STRICT_PIXI_REQUIRED`, `AVIF_STRICT_CLAP_VALID` * avifdec: Added `--no-strict` to disable all strict flags * avifdec: Added `-r` (`--raw-color`), which avoids multiplying against AVIF alpha channel before packing into non-alpha formats (JPEG) * avifenc: Recognize the Y4M format string "C420mpeg2" * avifenc: Add `--crop` convenient alternative arg to the difficult-to-use `--clap` arg * avifenc: New default for `--yuv`: `"auto"`, which will use a source JPEG's internal YUV format instead of YUV444, if detected * Uses: Prevent colorspace conversion when reading from JPEG if possible (tongyuantongyu) * avifenc/avifdec: Add helpful values/calculations when dumping clap box * Added avifDiagnostics, which allows for a detailed, freeform error string upon decode or encode error * Create helper avifCropRect struct and methods for helping to manipulate/populate/validate avifCleanApertureBox * Added ability to set codec-specific options for color or alpha only * Support for libaom's ALL_INTRA mode (if available) * Create avifDecoder.imageCountLimit as a sanity check against malformed files * SVT: Image sequence encoding support (tongyuantongyu) * Added rav1e to AppVeyor builds ### Changed * avifenc/avifdec: Link AOM_LIBRARIES and use CXX if vmaf is present (1480c1) * Ensure that an AVIF has a ftyp box, and based on ftyp, has other appropriate toplevel boxes present as well * Avoid linking against libyuv if it is too old / incompatible * Always require a primary item when decoding items * Add some strictness around ipma box parsing (version/flags tuples must be unique across ipma boxes in a file) * Fix alpha grids by properly writing alpha grid metadata payload * A HandlerBox (hdlr) of type 'pict' must be the first box within the MetaBox (meta) * Add some typedefs for various flag decls in avif.h to self-document which flags should be used in which function arguments * When encoding single-frame images using libaom, clean up the encoder immediately after encoding the frame to cut down on resources high watermarks * Fail on reformat Identity (MC=0) with subsampling (not using YUV444) * Warn if alpha is limited range (deprecated) * Validate the first_chunk fields in the stsc box * In libaom all intra mode, set cq-level for user * Check the return values of some aom_codec_ calls and add diagnostics output (wantehchang) * Use aom_codec_set_option() if available (allows for future compat with libaom 3.0+ advanced features) * rav1e: Use cargo cinstall in local builds to ensure consistency in target output, as cbuild no longer builds directly into target/release * Tweaks to compiler flags (analyze related) * Use libyuv BT.709 & 2020 full range YuvConstants (wantehchang) * Multiply color with alpha for opaque RGB format during conversion (see #520) * Switch docker to ubuntu 20.04, fix tzdata install (paskal) * Added an "Understanding maxThreads" explanatory comment block in avif.h * Minor fixes to support AVIF_CODEC_AOM_ENCODE * Various minor code/comments cleanup * CI tweaks, macOS build, and caching / speed increases (EwoutH) * Update aom.cmd: v3.1.0 * Update dav1d.cmd: 0.9.0 * Update libgav1: v0.16.3 * Update libyuv.cmd: 2f0cbb9 Index: Makefile =================================================================== RCS file: /home/cvs/ports/graphics/libavif/Makefile,v retrieving revision 1.15 diff -u -p -u -p -r1.15 Makefile --- Makefile 28 Mar 2021 10:34:33 -0000 1.15 +++ Makefile 3 Jun 2021 01:00:57 -0000 @@ -4,10 +4,10 @@ COMMENT= library for encoding and decodi GH_ACCOUNT= AOMediaCodec GH_PROJECT= libavif -GH_TAGNAME= v0.9.0 +GH_TAGNAME= v0.9.1 CATEGORIES= graphics -SHARED_LIBS= avif 4.0 +SHARED_LIBS= avif 4.1 HOMEPAGE= https://github.com/AOMediaCodec/libavif Index: distinfo =================================================================== RCS file: /home/cvs/ports/graphics/libavif/distinfo,v retrieving revision 1.11 diff -u -p -u -p -r1.11 distinfo --- distinfo 28 Mar 2021 10:34:33 -0000 1.11 +++ distinfo 3 Jun 2021 00:58:30 -0000 @@ -1,2 +1,2 @@ -SHA256 (libavif-0.9.0.tar.gz) = 6hYD/Bjn3SDPAfC0BRVldohuy134TbjA6HGHzS+KAPQ= -SIZE (libavif-0.9.0.tar.gz) = 2961252 +SHA256 (libavif-0.9.1.tar.gz) = hSbz//NKBaUdfHA83PHQ04yTm1tt1Lt9OjQF3a2IGGw= +SIZE (libavif-0.9.1.tar.gz) = 1985366 Index: pkg/PLIST =================================================================== RCS file: /home/cvs/ports/graphics/libavif/pkg/PLIST,v retrieving revision 1.3 diff -u -p -u -p -r1.3 PLIST --- pkg/PLIST 23 Apr 2020 06:42:08 -0000 1.3 +++ pkg/PLIST 3 Jun 2021 01:01:40 -0000 @@ -3,7 +3,6 @@ @bin bin/avifenc include/avif/ include/avif/avif.h -lib/cmake/ lib/cmake/libavif/ lib/cmake/libavif/libavif-config${MODCMAKE_BUILD_SUFFIX} lib/cmake/libavif/libavif-config-version.cmake