Accepting request 1107834 from home:polslinux:branches:multimedia:libs
- 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. OBS-URL: https://build.opensuse.org/request/show/1107834 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libavif?expand=0&rev=52
This commit is contained in:
parent
54efe1a037
commit
754d46e66c
@ -1 +1 @@
|
||||
libavif15
|
||||
libavif16
|
||||
|
24
fix-gdkpixbuf.patch
Normal file
24
fix-gdkpixbuf.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 8e79701b2d2b8cd872d23b7c9e5e746b61cab65e Mon Sep 17 00:00:00 2001
|
||||
From: Xi Ruoyao <xry111@xry111.site>
|
||||
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;
|
BIN
libavif-0.11.1.tar.gz
(Stored with Git LFS)
BIN
libavif-0.11.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
libavif-1.0.0.tar.gz
Normal file
3
libavif-1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:410f85cf0d13f403b41197c0774da469f5d73b89aa06d40fc726165377f215a0
|
||||
size 10569801
|
@ -1,3 +1,59 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 29 05:18:59 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- 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 <suse+build@de-korte.org>
|
||||
|
||||
|
10
libavif.spec
10
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}
|
||||
|
Loading…
Reference in New Issue
Block a user