diff --git a/baselibs.conf b/baselibs.conf index 346a881..8f7fafe 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libavif15 +libavif16 diff --git a/fix-gdkpixbuf.patch b/fix-gdkpixbuf.patch new file mode 100644 index 0000000..2e734ba --- /dev/null +++ b/fix-gdkpixbuf.patch @@ -0,0 +1,24 @@ +From 8e79701b2d2b8cd872d23b7c9e5e746b61cab65e Mon Sep 17 00:00:00 2001 +From: Xi Ruoyao +Date: Tue, 29 Aug 2023 13:08:33 +0800 +Subject: [PATCH] gdk-pixbuf: Fix build failure after imir.mode -> imir.axis + rename + +Fixes #1526. +--- + contrib/gdk-pixbuf/loader.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/contrib/gdk-pixbuf/loader.c b/contrib/gdk-pixbuf/loader.c +index 47e25a13b..868b054fb 100644 +--- a/contrib/gdk-pixbuf/loader.c ++++ b/contrib/gdk-pixbuf/loader.c +@@ -209,7 +209,7 @@ static gboolean avif_context_try_load(struct avif_context * context, GError ** e + if (image->transformFlags & AVIF_TRANSFORM_IMIR) { + GdkPixbuf *output_mirrored = NULL; + +- switch (image->imir.mode) { ++ switch (image->imir.axis) { + case 0: + output_mirrored = gdk_pixbuf_flip(output, FALSE); + break; diff --git a/libavif-0.11.1.tar.gz b/libavif-0.11.1.tar.gz deleted file mode 100644 index 1f124bc..0000000 --- a/libavif-0.11.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0eb49965562a0e5e5de58389650d434cff32af84c34185b6c9b7b2fccae06d4e -size 5826813 diff --git a/libavif-1.0.0.tar.gz b/libavif-1.0.0.tar.gz new file mode 100644 index 0000000..b8b7c0c --- /dev/null +++ b/libavif-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:410f85cf0d13f403b41197c0774da469f5d73b89aa06d40fc726165377f215a0 +size 10569801 diff --git a/libavif.changes b/libavif.changes index b9628cb..aa83292 100644 --- a/libavif.changes +++ b/libavif.changes @@ -1,3 +1,59 @@ +------------------------------------------------------------------- +Tue Aug 29 05:18:59 UTC 2023 - Paolo Stivanin + +- Update to 1.0.0: + * Incompatible changes: + + 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 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 API for multi-threaded YUV to RGB color conversion. + + 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: + + 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. + + Change the encoder to write the boxes within the "stbl" box in the order of + stsd, stts, stsc, stsz, stco, stss. + + 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. + + 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. +- Add fix-gdkpixbuf.patch. + ------------------------------------------------------------------- Sun May 7 14:52:35 UTC 2023 - Arjen de Korte diff --git a/libavif.spec b/libavif.spec index 7715d8d..ca5f169 100644 --- a/libavif.spec +++ b/libavif.spec @@ -25,20 +25,20 @@ %endif # Also update baselibs.conf if you bump the version -%global lib_soversion 15 +%global lib_soversion 16 %global lib_name libavif%{lib_soversion} Name: libavif -Version: 0.11.1 +Version: 1.0.0 Release: 0 Summary: Library for encoding and decoding .avif files License: BSD-2-Clause Group: Development/Libraries/C and C++ URL: https://github.com/AOMediaCodec/libavif -# Source: https://github.com/AOMediaCodec/libavif/archive/v%{version}/%{name}-%{version}.tar.gz Source99: baselibs.conf -# +# PATCH-FIX-UPSTREAM https://github.com/AOMediaCodec/libavif/pull/1528 +Patch0: fix-gdkpixbuf.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libjpeg8-devel @@ -46,7 +46,7 @@ BuildRequires: pkgconfig(dav1d) BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) -BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(libpng) >= 1.6.32 BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(rav1e) >= 0.5.0 %if %{with aom}