SHA256
1
0
forked from pool/libavif
libavif/fix-gdkpixbuf.patch

25 lines
882 B
Diff
Raw Normal View History

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
2023-08-29 07:01:17 +00:00
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;