Up to [cvs.NetBSD.org] / pkgsrc / graphics / libheif
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
libheif: update to 1.23.0.
This is a smaller release that adds API functions to read and write metadata:
ambient viewing environment
nominal diffuse white luminance
It also adds a output_image_nclx_profile_passthrough option to
heif_decoding_options to pass through the input image NCLX without
doing any internal color conversion.
Security
CVS TBD (GHSA-jvmp-j3cw-84mh) - unbounded heap allocation in HEIF sequence parser (stsz fixed-size mode missing bound check)
libheif: update to 1.22.0. This is a large release with substantial new functionality, mainly focusing on generalized image formats (e.g., multi-spectral images) and a reworked implementation of ISO/IEC 23001-17 (lossless image codec).
libheif: update to 1.21.1.
Workaround for c++17 stopped working, now really needs c++20 (like
it said for a couple releases already).
Changes:
1.21.1
This patch release only fixes a build error with some GCC versions because of a missing #include.
If you didn't get any build error, you do not need this updated patch release.
1.21.0
This release adds full support for reading and writing HEIF image sequences.
libheif will now encode HEIF image sequences with all included codecs.
Since HEIF image sequences are very similar to MP4 videos, this new version is also capable of decoding most MP4 videos (without audio, of course).
heif-enc documentation for sequence encoding
API documentation for reading and writing sequences
Other major changes:
Support for image sequences with alpha channels. For most codecs, the alpha channel will be stored in a separate, auxiliary, monochrome track. For ISO/IEC 23001-17 (uncompressed) streams, the alpha channel is stored in the main video track.
Support for sequence track edit lists to define the number of sequence repetitions (without actually repeating the video data).
New encoder plugin using x264 to write H.264-compressed video streams and images.
The FFmpeg decoder plugin will now decode both H.265 and H.264.
Support for HEIF text items and language properties (thanks to @bradh).
CVEs fixed:
CVE-2025-68431
libheif: update to 1.20.1.
1.20.1
Fixes a bug in decoder plugin loading.
1.20.0
Sequences:
API for reading and writing image sequences.
You can read and write sequences for all codecs (not just H.265 / AV1, but also JPEG-2000, ISO-23001-17 uncompressed, ...).
Currently only intra-coded sequences are supported.
API for reading and writing metadata sequences.
The metadata tracks can contain any raw timed data.
Support for SAI (sample auxiliary information).
Timed samples (from image sequences or metadata) can have auxiliary data attached.
Currently we support TAI timestamps and GIMI content description IDs.
Support for track references.
The API for sequences is described here:
https://github.com/strukturag/libheif/wiki/Reading-and-Writing-Sequences
New command line tool heif-view to show HEIF sequences (requires libSDL).
Other new features:
You can specify a security limit for the maximum total memory libheif may use for decoding.
This is easier to handle than specifying limits on the maximum image size or single memory allocations.
Support for TAI timestamps (in images and sequences) has been promoted from
experimental to stable.
FFMPEG plugin now supports HDR decoding
Header files are now split into individual headers by topic.
However, it should still be backwards compatible with heif.h being a catch-all covering the old content.
For new functionality (sequences, TAI), you will need to include the specific headers.
All struct names of the API are now also typedefs.
libheif: update to 1.18.2. fixes: fix regression that Exif orientation was not correctly reset when converting rotated HEIF (heif-dec) swap Exif width/height when rotating image by 90 degrees fix memory leak in OpenJPEG decoding plugin pay attention to DESTDIR variable when installing heif-convert symlink
libheif: update to 1.18.0. now reads images generated by iOS 18 heif-convert has been renamed to heif-dec encoding: property item boxes with identical content are reused experimental codec plugins for VVC (vvenc/vvdec and uvg266) experimental codec plugin for OpenJPH (High-throughput JPEG2000) support ISO 23001-17 version 1 uncC minimized headers support ISO 23001-17 images with 'deflate', 'zlib' and Brotli compression heif-enc can read TIFF images API functions to read/write raw items and item properties many bug fixes and smaller enhancements
libheif: update to 1.17.3.
1.17.3
Bug fix #1026: corrected transform box generation for heif_orientation_flip_vertically and heif_orientation_rotate_90_cw_then_flip_vertically
1.17.2
Corrections:
#1010 loading of HEIF files with extra zero bytes at the end
#1015 / #1017 default nclx values now match sRGB
support JPEG2000 images with alpha channel
various smaller fixes
1.17.1
This release mainly fixes compilation and build issues for various platforms.
Other changes:
fix issue of loading images with premultiplied alpha channel,
correctly set compatible_version for macOS dylib builds,
fix loading HDR PNGs, but encoding them as 8-bit SDR,
fix saving AVIF with alpha using the SVT-AV1 encoder,
@kleisauke has modernized the JS wrapper (thanks!).
v1.17.0 - Many new compression formats and codecs
This release introduces support for new compression formats:
JPEG in HEIF
JPEG2000
It contains these new codec plugins:
Kvazaar encoder (HEIC) as alternative to x265
ffmpeg decoder (HEIC) decoding with potential hardware decoder support
jpegdec, jpegenc codecs for JPEG in HEIF
j2kdec, j2kenc codecs for JPEG-2000 in HEIF (still experimental)
Moreover:
added support for region masks
added support for alpha channels in images decoded with JS/WASM
heif-enc and heif-convert can be called with only input filenames, input and output filename, or with -o option. This makes the use of the two commands more consistent.
added 4:2:2 <-> 4:4:4 color conversion with bilinear upscaling / average filtering
Some more notable changes:
heif_context_get_image_handle() can now also access non-top-level images
add script to build Android libraries for all platforms
again, known bugs have been fixed
Thank you everyone who contributed with code or issue reports.
Special thanks go to @bradh for work on the regions support and
the uncompressed codec, to @dukesook for his work on JPEG2000
support, to @palemieux for our discussions on interpreting the
JPEG2000-in-HEIF standard, to @Edi61 for providing the ffmpeg
decoder plugin, to @fancycode who will again do the Debian packaging,
and to @kmilos for continuously reporting and fixing compilation
and configuration issues.
Add svt-av1 buildlink3.mk Fixed build issue if svt-av1 is installed. Bump PKGREVISION (Timeout from "OK to commit?" email sent 2023-05-09)
libheif: update to 1.15.2.
Switch to CMake since upstream will deprecate autoconf.
Remove merged patch.
v1.15.2 - maintenance release Latest
Fixes an incompatibility with AOM v3.6.0.
A couple of smaller fixes.
v1.15.1 - fix compilation without plugins
build fix only
v1.15.0 - Windows plugins / CLLI, MDCV, PASP boxes
codec plugin system now also works with Windows
heif_convert: manually choose which decoder should be used
support for CLLI (content light level box), MDCV (mastering display colour volume), PASP (pixel aspect) information
ICC profile support in gdk-pixbuf loader
various fixes
v1.14.2 - maintenance
A function name typo in the C++ wrapper was corrected in v1.14.1, but the old function name should not have been removed from the API
(ColorProfile_nclx::set_color_primaries()). The old name is added to the API again in this release.
This is the only change in this update.
v1.14.1 - maintenance release
This release fixes
various issues is the build system
encoding images smaller than 64x64 with svt-av1
the 'quality' parameter for svt-av1
a potentially wrong image orientation for PNG inputs
crash on non-null terminated XMP input
HDR RGB to YCbCr conversion coefficients for limited range coefficients
1.14.0 - codec plugins / svt-av1 backend
adds SVT-AV1 encoder as AVIF backend
dynamic plugin interface for installing codecs independently from libheif (currently Unix only)
add XMP header compression (using zlib)
library should now be initialized with heif_init()
heif_convert: extract EXIF and XMP to separate files
heif_enc: add benchmarking function to compare codecs
copy EXIF/XMP between HEIC/AVIF files and JPEG/PNG in all kinds of combinations
remove EXIF orientation tag from input when converting to HEIC/AVIF and generate irot/imir boxes matching the input orientation
graphics/libheif: import libheif-1.8.0 libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format) file format decoder and encoder. 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 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.