Skip to content

Releases: AOMediaCodec/libavif

v1.0.4

08 Feb 15:52
Compare
Choose a tag to compare

[1.0.4] - 2024-02-08

Changed

  • AVIF_ENABLE_WERROR is set to OFF by default.
  • Fix wrong alpha plane deallocation when decoded tile pixel format does not
    match reconstructed output image pixel format (b/320234262).
  • Fix identical chunk skipping optimization when writing animation data
    (b/321189607).
  • Fix ID selection for artificial grid alpha item when decoding a grid of tiles
    which each have an associated auxiliary alpha image item
    (https://crbug.com/oss-fuzz/65657).

v1.0.3

04 Dec 19:26
Compare
Choose a tag to compare

[1.0.3] - 2023-12-03

Changed

  • Rewrite the fix for memory errors reported in crbug.com/1501770.
  • Fix memory errors reported in crbug.com/1504792 by Fudan
    University
    .
  • src/reformat.c: Allocate the threadData array directly.

v1.0.2

16 Nov 23:02
Compare
Choose a tag to compare

[1.0.2] - 2023-11-16

Changed

  • Update avifCropRectConvertCleanApertureBox() to the revised requirements in
    ISO/IEC 23000-22:2019/Amd. 2:2021 Section 7.3.6.7.
  • Fix memory errors reported in crbug.com/1501766 and crbug.com/1501770 by
    Fudan University.

v1.0.1

29 Aug 22:21
Compare
Choose a tag to compare

1.0.1 - 2023-08-29

Changed

  • gdk-pixbuf: Explicitly pass link directories
  • gdk-pixbuf: Fix build failure after imir.mode -> imir.axis rename

v1.0.0

28 Aug 22:27
bc41fc5
Compare
Choose a tag to compare

1.0.0 - 2023-08-24

With the 1.0.0 release, the ABI will be more stable from now on. Please note
the allocation and initialization requirements for avifImage, avifDecoder,
avifEncoder, and avifRGBImage in the "avif/avif.h" header.

List of incompatible ABI changes in this release:

  • The clli member was added to the avifImage struct.
  • The repetitionCount member was added to the avifEncoder and avifDecoder
    structs.
  • The quality and qualityAlpha members were added to the avifEncoder struct.
  • Check that functions returning pointers do not return NULL before accessing
    those pointers.
  • Check the return value of avifEncoderSetCodecSpecificOption().
  • The maxThreads member was added to the avifRGBImage struct.
  • Check the return value of avifRGBImageAllocatePixels(), avifRWDataRealloc(),
    avifRWDataSet(), avifImageSetProfileICC(), avifImageSetMetadataExif() and
    avifImageSetMetadataXMP().
  • The meaning of the keyframeInterval member of avifEncoder struct has changed
    slightly. When set to a value of "n",
    • Before: It forces a keyframe on every nth frame.
    • After: Any set of "n" consecutive frame will have at least one keyframe
      (every nth frame may or may not be a keyframe).

Added

  • Add STATIC library target avif_internal to allow tests to access functions
    from internal.h when BUILD_SHARED_LIBS is ON.
  • Add clli metadata read and write support
  • Add repetitionCount member to avifEncoder and avifDecoder structs to specify
    the number of repetitions for animated image sequences.
  • Add quality and qualityAlpha to avifEncoder. Note: minQuantizer,
    maxQuantizer, minQuantizerAlpha, and maxQuantizerAlpha are deprecated. Code
    should be updated to set quality (and qualityAlpha if applicable) and leave
    minQuantizer, maxQuantizer, minQuantizerAlpha, and maxQuantizerAlpha
    initialized to the default values.
  • The --target-size flag in avifenc was added to adapt the quality so that the
    output file size is as close to the given number of bytes as possible.
  • Add the public API function avifImageIsOpaque() in avif.h.
  • Add the public API functions avifImagePlane(), avifImagePlaneRowBytes(),
    avifImagePlaneWidth(), and avifImagePlaneHeight() in avif.h.
  • Add experimental API for progressive AVIF encoding.
  • Add API for multi-threaded YUV to RGB color conversion.
  • Add experimental support for AV2 behind the compilation flag AVIF_CODEC_AVM.
    AVIF_CODEC_CHOICE_AVM is now part of avifCodecChoice.
  • Add experimental YCgCo-R support behind the compilation flag
    AVIF_ENABLE_EXPERIMENTAL_YCGCO_R.
  • Allow lossless 4:0:0 on grayscale input.
  • Add avifenc --no-overwrite flag to avoid overwriting output file.
  • Add avifenc --clli flag to set clli.
  • Add support for all transfer functions when using libsharpyuv.

Changed

  • Enable the libaom AV1E_SET_SKIP_POSTPROC_FILTERING codec control by default.
  • Use the constant rate factor (CRF) instead of the constant quantization
    parameter (CQP) rate control mode with the SVT-AV1 encoder.
  • Exif and XMP metadata is exported to PNG and JPEG files by default,
    except XMP payloads larger than 65502 bytes in JPEG.
  • The --grid flag in avifenc can be used for images that are not evenly divided
    into cells.
  • Apps must be built with libpng version 1.6.32 or above.
  • Change the encoder to write the boxes within the "stbl" box in the order of
    stsd, stts, stsc, stsz, stco, stss.
  • avifImageCopy() no longer accepts source U and V channels to be NULL for
    non-4:0:0 input if Y is not NULL and if AVIF_PLANES_YUV is specified.
  • The default values of the maxQuantizer and maxQuantizerAlpha members of
    avifEncoder changed from AVIF_QUANTIZER_LOSSLESS (0) to
    AVIF_QUANTIZER_WORST_QUALITY (63). The behavior changed if minQuantizer and
    maxQuantizer are left initialized to the default values. Code should be
    updated to set the quality member. Similarly for the alpha quantizers and
    qualityAlpha.
  • avifImageRGBToYUV() and avifImageYUVToRGB() handle avifImage bit depths 8, 10,
    12 and now also 16. Files read by apps/shared/ can output 16-bit avifImage
    instances.
  • Update aom.cmd: v3.6.1
  • Update dav1d.cmd: 1.2.1
  • Update libsharpyuv: 0.4.0
  • Update rav1e.cmd: v0.6.6
  • Update svt.cmd/svt.sh: v1.6.0
  • Update zlibpng.cmd: zlib 1.2.13 and libpng 1.6.39
  • avifImageCreate(), avifImageCreateEmpty(), avifEncoderCreate() and other
    internal functions now return NULL if a memory allocation failed.
  • avifEncoderSetCodecSpecificOption() now returns avifResult instead of void to
    report memory allocation failures.
  • At decoding, avifIOStats now returns the same values as at encoding.
  • avifRGBImageAllocatePixels(), avifRWDataRealloc(), avifRWDataSet(),
    avifImageSetProfileICC(), avifImageSetMetadataExif() and
    avifImageSetMetadataXMP() now return avifResult instead of void to report
    memory allocation failures.
  • avifReadImage(), avifJPEGRead() and avifPNGRead() now remove the trailing zero
    byte from read XMP chunks, if any. See avifImageFixXMP().
  • Force keyframe for alpha if color is a keyframe.
  • Write primaries and transfer characteritics info in decoded PNG.
  • Add support for reading PNG gAMA, cHRM and sRGB chunks.
  • The 'mode' member of the avifImageMirror struct was renamed 'axis'.
  • Change the type of the 'depth' parameter from int to uint32_t in
    avifFullToLimitedY(), avifFullToLimitedUV(), avifLimitedToFullY(), and
    avifLimitedToFullUV().

v0.11.1

20 Oct 23:13
6ab5318
Compare
Choose a tag to compare

[0.11.1] - 2022-10-19

Changed

  • avifincrtest_helpers: Cast 64-bit offset to size_t
  • avifmetadatatest: don't include avif/internal.h
  • avifrgbtoyuvtest: skip if no libsharpyuv
  • Disable tests that may fail if the codec is not aom (#1176)

v0.11.1-rc1

19 Oct 21:38
6ab5318
Compare
Choose a tag to compare
v0.11.1-rc1 Pre-release
Pre-release
v0.11.1-rc1

v0.11.0

14 Oct 20:56
3c48152
Compare
Choose a tag to compare

[0.11.0] - 2022-10-12

There are incompatible ABI changes in this release. The alphaRange member was
removed from the avifImage struct. The chromaDownsampling and avoidLibYUV
members were added to the avifRGBImage struct. The imageDimensionLimit member
was added to the avifDecoder struct. avifImageCopy() and
avifImageAllocatePlanes() signatures changed. It is necessary to recompile your
code. Also check the return values of avifImageCopy() and
avifImageAllocatePlanes().

Added

  • Add man pages for avifenc and avifdec
  • Add the avifChannelIndex type alias for enum avifChannelIndex
  • Add avifChromaDownsampling enum
  • Add chromaDownsampling field to avifRGBImage struct
  • Add support for AVIF_RGB_FORMAT_RGB_565
  • Add imageDimensionLimit field to avifDecoder struct
  • Add autoTiling field to avifEncoder struct
  • Add new avifResult codes AVIF_RESULT_CANNOT_CHANGE_SETTING and
    AVIF_RESULT_INCOMPATIBLE_IMAGE
  • Add new enum constants AVIF_PIXEL_FORMAT_COUNT and AVIF_RGB_FORMAT_COUNT
  • avifdec: Add --dimension-limit, which specifies the image dimension limit
    (width or height) that should be tolerated
  • avifenc: Add --sharpyuv, which enables "sharp" RGB to YUV420 conversion, which
    reduces artifacts caused by 420 chroma downsampling. Needs libsharpyuv (part
    of the libwebp repository) at compile time.
  • avifenc: Add --ignore-exif and --ignore-xmp flags.
  • avifenc: Add --autotiling, which sets --tilerowslog2 and --tilecolslog2
    automatically.
  • avifenc: Input Exif orientation is converted to irot/imir by default.

Changed

  • Fix memory leaks of metadata on avifenc exit
  • Update the handling of 'lsel' and progressive decoding to AVIF spec v1.1.0
  • Treat an absent lsel and layer_id == 0xFFFF equivalently for backward
    compatibility with earlier drafts of AVIF spec v1.1.0
  • Set libavif's own default value of cfg.rc_end_usage for libaom
  • Fix #953
  • Set the libaom-specific option -a tune=ssim by default
  • Bump cmake_minimum_required from 3.5 to 3.13
  • Fix https://crbug.com/oss-fuzz/48135
  • Use several new libyuv functions in reformat_libyuv.c
  • Fix SVT-AV1's issue 1957 related to uninitialized variables crashing the
    encoder
  • Fix #787
  • Update aom.cmd: v3.5.0
  • Update rav1e.cmd: v0.5.1
  • Update svt.cmd/svt.sh: v1.2.1
  • Update libgav1.cmd: v0.18.0
  • Update libyuv.cmd: f9fda6e7 (version 1844)
  • avifImageCopy() and avifImageAllocatePlanes() now return avifResult instead of
    void to report invalid parameters or memory allocation failures.
  • avifImageRGBToYUV() now uses libyuv fast paths by default. It may slightly
    change conversion results. The old behavior can be restored by setting
    avifRGBImage::chromaDownsampling to AVIF_CHROMA_DOWNSAMPLING_BEST_QUALITY
    and avifRGBImage::avoidLibYUV to AVIF_TRUE.
  • avifRGBImage::chromaUpsampling now only applies to conversions that need
    upsampling chroma from 4:2:0 or 4:2:2 and has no impact on the use of libyuv.
    Set avifRGBImage::avoidLibYUV accordingly to control the use of libyuv.
  • avifenc: Set the YUV format to 4:0:0 for grayscale PNGs
  • Support updating encoder settings and codec-specific options during encoding
  • Disable AVIF_STRICT_CLAP_VALID and AVIF_STRICT_PIXI_REQUIRED in the JNI
    wrapper
  • avifdec: Return proper exit code in "info" mode
  • In avifenc and avifdec, treat all arguments that start with '-' as options
  • Fix #1086
  • Exif and XMP metadata is imported from PNG and JPEG files.
  • avifImageSetMetadataExif() parses the Exif metadata and converts any Exif
    orientation found into transformFlags, irot and imir values.
  • Write 'auxi' box for animated images with alpha channel
  • Write 'auxv' as handler_type for alpha channel track
  • Use PNG_COLOR_TYPE_GRAY for 8-bit grayscale output
  • Replace repeated subtraction by modulo in calcGCD (fix b/246649620)
  • Change avifImageCreate to take uint32_t instead of int parameters
  • When writing an image sequence, check if it's safe to cast width and height to
    uint16_t
  • Allow clamped grid cells in avifEncoderAddImageGrid()

Removed

  • alphaRange field was removed from the avifImage struct. It it presumed that
    alpha plane is always full range.
  • The avifCodecConfigurationBox struct becomes a private type for libavif
    internal use

v0.10.1

12 Apr 00:31
Compare
Choose a tag to compare
v0.10.1 Pre-release
Pre-release

[0.10.1] - 2022-04-11

Changed

  • tests/docker/build.sh: Build SVT-AV1 using cmake and ninja directly
  • Fix a Visual Studio 2017 compiler warning in src\reformat.c: warning C4204:
    nonstandard extension used: non-constant aggregate initializer
  • Fix the help message of avifdec: --index takes a value

v0.10.0

06 Apr 21:16
Compare
Choose a tag to compare
v0.10.0 Pre-release
Pre-release

[0.10.0] - 2022-04-06

There is an incompatible ABI change in this release. New members were added to
the avifDecoder and avifRGBImage structs. It is necessary to recompile your
code.

Added

  • Support F16 Half Float conversion in avifRGBImage: new isFloat member
  • Incremental decoding of AVIF grid tiles: new allowIncremental member in
    avifDecoder and new avifDecoderDecodedRowCount() function
  • Support parsing of version 3 of ItemInfoEntry
  • Add new avifResult code AVIF_RESULT_OUT_OF_MEMORY
  • Document the "[Strict]" prefix in error strings
  • Document that SVT-AV1 doesn't support lossless yet
  • CI: Add CIFuzz integration
  • Add Docker build CI pipeline
  • Add SVT-AV1 to CI and build scripts
  • ci.yml: Build examples and apps

Changed

  • Print the item type in the diagnostic messages for missing mandatory av1C or
    pixi property
  • Update aom.cmd: v3.3.0
  • Update dav1d.cmd: 1.0.0
  • Update libgav1.cmd: 0.17.0
  • Update rav1e.cmd: 0.5.0
  • Update svt.cmd/svt.sh: v0.9.1
  • Update zlibpng.cmd: zlib v1.2.12
  • findrav1e: add LDFLAGS to LIBRARIES
  • rav1e: add bcrypt.lib to list of extra libs
  • Fix y4m read/write for images of non-standard dimensions
  • Fix y4mRead() and y4mWrite() for 4:0:0
  • Fix compilation with Clang 13 and 14
  • Remove the obsolete script fuzz.sh
  • Support local android builds for libgav1
  • Add Android JNI bindings
  • Delay failures of AV1 codecs not existing to frame decoding, to allow libavif
    to perform AVIF parsing without any AV1 codecs
  • Change encoder speed in gdk-pixbuf plug-in
  • Fix compilation with 1755 <= LIBYUV_VERSION < 1774
  • Remove JSON-based tests (as they are unreliable), along with associated
    helper code (cJSON, compare)
  • CMakeLists.txt: Move codec enabled message after check passed
  • Fix alpha copy in aomCodecEncodeImage()
  • Support SVT-AV1 v0.9.0 or later
  • Call svt_av1_get_version() for SVT-AV1 v0.9.0 or later
  • Handle avifArrayCreate() failures
  • Only consider a frame index to be a keyframe if all tiles/planes are sync
    frames
  • Move checks to avifAreGridDimensionsValid()
  • avifArrayPop() should zero the popped element
  • avifDecoderReset() should not return AVIF_FALSE
  • Handle avifDecoderDataCreateTile() failures
  • Fix endian dependent parameters to avifRWStreamWrite
  • Mark the input images of an image grid as hidden
  • Write ccst box in Sample Entry for animated images
  • Add iso8 to compatible_brands for animated images
  • Compare with snapshot of AOM_EXT_PART_ABI_VERSION
  • Handle the new AOM_IMG_FMT_NV12 enum conditionally in a switch statement in
    aomCodecGetNextImage()
  • Fix avifpng.c for libpng 1.4
  • Fix -Wformat / -Wformat-non-iso on MinGW UCRT
  • Replace some memcpy calls with struct assignments
  • Remove unnecessary memcpy() calls in src/utils.c
  • Split CMakeLists.txt into tests/CMakeLists.txt
  • Use bilinear chroma upsampling in libyuv when possible
  • Call libyuv functions to convert 10bpc YUV to 8bpc RGB
  • Prepare avif example for non-aborting avifAlloc()
  • Handle the tileRowsLog2 and tileColsLog2 members of avifEncoder correctly for
    SVT-AV1.