Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libheif for openSUSE:Factory checked 
in at 2025-03-01 19:16:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libheif (Old)
 and      /work/SRC/openSUSE:Factory/.libheif.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libheif"

Sat Mar  1 19:16:17 2025 rev:42 rq:1249366 version:1.19.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/libheif/libheif.changes  2024-12-13 
22:33:02.648825870 +0100
+++ /work/SRC/openSUSE:Factory/.libheif.new.19136/libheif.changes       
2025-03-01 19:16:39.393353147 +0100
@@ -1,0 +2,13 @@
+Fri Feb 28 15:42:34 UTC 2025 - Jan Engelhardt <jeng...@inai.de>
+
+- Add 0001-support-SVT-AV1-3.0.0.patch to make build succeed
+  with new SVT-AV1 API.
+
+-------------------------------------------------------------------
+Thu Feb 27 11:34:41 UTC 2025 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Ensure Name: is conditionalized for the multibuild flavors to not
+  overwrite the .src.rpm (which is a processed .spec) and to allow
+  OBS to properly distinguish them flavors.
+
+-------------------------------------------------------------------

New:
----
  0001-support-SVT-AV1-3.0.0.patch

BETA DEBUG BEGIN:
  New:
- Add 0001-support-SVT-AV1-3.0.0.patch to make build succeed
  with new SVT-AV1 API.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libheif.spec ++++++
--- /var/tmp/diff_new_pack.borsmd/_old  2025-03-01 19:16:40.109382861 +0100
+++ /var/tmp/diff_new_pack.borsmd/_new  2025-03-01 19:16:40.113383027 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libheif
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -43,15 +43,16 @@
 %global force_gcc_version 13
 %endif
 
-Name:           libheif
+Name:           libheif%{?psuffix}
 Version:        1.19.5
 Release:        0
 Summary:        HEIF/AVIF file format decoder and encoder
 License:        GPL-2.0-or-later
 Group:          Productivity/Graphics/Other
 URL:            https://github.com/strukturag/libheif
-Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
+Source0:        %{url}/releases/download/v%{version}/libheif-%{version}.tar.gz
 Source99:       baselibs.conf
+Patch1:         0001-support-SVT-AV1-3.0.0.patch
 BuildRequires:  chrpath
 BuildRequires:  cmake >= 3.25
 BuildRequires:  fdupes
@@ -149,7 +150,6 @@
 This plugin provides the encoder and decoder for JPEG in HEIF to libheif. 
Packaged separately
 so that the libraries it requires are not pulled in by default by libheif.
 
-%if %{with kvazaar}
 %package kvazaar
 Summary:        Plugin kvazaar encoder for HEIC
 Group:          System/Libraries
@@ -159,9 +159,7 @@
 %description kvazaar
 This plugin provides the kvazaar encoder for HEIC to libheif. Packaged 
separately
 so that the libraries it requires are not pulled in by default by libheif.
-%endif
 
-%if %{with openjpeg}
 %package openjpeg
 Summary:        Plugin OpenJPEG J2K encoder and decoder for JPEG-2000 in HEIF
 Group:          System/Libraries
@@ -171,9 +169,7 @@
 %description openjpeg
 This plugin provides the OpenJPEG J2K encoder and decoder for JPEG to libheif. 
Packaged separately
 so that the libraries it requires are not pulled in by default by libheif.
-%endif
 
-%if %{with openh264}
 %package openh264
 Summary:        Plugin OpenH264 decoder in HEIF
 Group:          System/Libraries
@@ -183,9 +179,7 @@
 %description openh264
 This plugin provides the OpenH264 decoder to libheif. Packaged separately
 so that the libraries it requires are not pulled in by default by libheif.
-%endif
 
-%if %{with openjph}
 %package openjph
 Summary:        Plugin OpenJPH HT-J2K encoder in HEIF
 Group:          System/Libraries
@@ -195,7 +189,6 @@
 %description openjph
 This plugin provides the OpenJPH HT-J2K encoder to libheif. Packaged separately
 so that the libraries it requires are not pulled in by default by libheif.
-%endif
 
 %package rav1e
 Summary:        Plugin rav1e encoder for AVIF
@@ -207,7 +200,6 @@
 This plugin provides the rav1e encoder for AVIF to libheif. Packaged separately
 so that the libraries it requires are not pulled in by default by libheif.
 
-%if %{with svtenc}
 %package svtenc
 Summary:        Plugin SVT-AV1 encoder for AVIF
 Group:          System/Libraries
@@ -217,9 +209,7 @@
 %description svtenc
 This plugin provides the SVT-AV1 encoder for AVIF to libheif. Packaged 
separately
 so that the libraries it requires are not pulled in by default by libheif.
-%endif
 
-%if %{with x265}
 %package HEIF
 Summary:        Plugin for HEIF decoder and encoder
 Group:          System/Libraries
@@ -229,7 +219,6 @@
 %description HEIF
 This plugin provides an decoder and encoder for HEIF to libheif. Packaged 
separately
 so that the libraries it requires are not pulled in by default by libheif.
-%endif
 
 %package devel
 Summary:        Devel Package for %{name}
@@ -251,7 +240,6 @@
 
 This package contains the GDK PixBuf Loader for %{name}.
 
-%if %{with x265}
 %package -n heif-examples
 Summary:        Example binary programs for %{name}
 Group:          Productivity/Graphics/Other
@@ -270,10 +258,9 @@
 
 %description -n heif-thumbnailer
 Allows to show thumbnail previews of HEIF and AVIF images using %{name}.
-%endif
 
 %prep
-%autosetup -p1
+%autosetup -p1 -n libheif-%{version}
 
 %build
 # https://github.com/strukturag/libheif/issues/1281
@@ -384,8 +371,7 @@
 %endif
 %fdupes -s %{buildroot}%{_includedir}
 
-%post -n libheif1 -p /sbin/ldconfig
-%postun -n libheif1 -p /sbin/ldconfig
+%ldconfig_scriptlets -n libheif1
 
 %post -n gdk-pixbuf-loader-libheif
 %{gdk_pixbuf_loader_post}

++++++ 0001-support-SVT-AV1-3.0.0.patch ++++++
>From 4bc4cfb66055a997f03d57649bf5456fe09a5a97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= <stefantalpal...@yahoo.com>
Date: Sun, 23 Feb 2025 20:21:44 +0100
Subject: [PATCH] support SVT-AV1 3.0.0
References: 
https://github.com/strukturag/libheif/commit/4bc4cfb66055a997f03d57649bf5456fe09a5a97

---
 libheif/plugins/encoder_svt.cc | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/libheif/plugins/encoder_svt.cc b/libheif/plugins/encoder_svt.cc
index 6c6db76a..2e8950cd 100644
--- a/libheif/plugins/encoder_svt.cc
+++ b/libheif/plugins/encoder_svt.cc
@@ -678,7 +678,11 @@ struct heif_error svt_encode_image(void* encoder_raw, 
const struct heif_image* i
   EbSvtAv1EncConfiguration svt_config;
   memset(&svt_config, 0, sizeof(EbSvtAv1EncConfiguration));
 
+#if SVT_AV1_CHECK_VERSION(3, 0, 0)
+  res = svt_av1_enc_init_handle(&svt_encoder, &svt_config);
+#else
   res = svt_av1_enc_init_handle(&svt_encoder, nullptr, &svt_config);
+#endif
   if (res != EB_ErrorNone) {
     //goto cleanup;
     return heif_error_codec_library_error;
@@ -698,7 +702,9 @@ struct heif_error svt_encode_image(void* encoder_raw, const 
struct heif_image* i
   auto nclx_deleter = std::unique_ptr<heif_color_profile_nclx, void 
(*)(heif_color_profile_nclx*)>(nclx, heif_nclx_color_profile_free);
 
   if (nclx) {
+#if !SVT_AV1_CHECK_VERSION(3, 0, 0)
     svt_config.color_description_present_flag = true;
+#endif
 #if SVT_AV1_VERSION_MAJOR >= 1
     svt_config.color_primaries = 
static_cast<EbColorPrimaries>(nclx->color_primaries);
     svt_config.transfer_characteristics = 
static_cast<EbTransferCharacteristics>(nclx->transfer_characteristics);
@@ -712,20 +718,28 @@ struct heif_error svt_encode_image(void* encoder_raw, 
const struct heif_image* i
 #endif
 
 
+#if !SVT_AV1_CHECK_VERSION(3, 0, 0)
     // Follow comment in svt header: set if input is HDR10 BT2020 using SMPTE 
ST2084.
     svt_config.high_dynamic_range_input = (bitdepth_y == 10 && // TODO: should 
this be >8 ?
                                            nclx->color_primaries == 
heif_color_primaries_ITU_R_BT_2020_2_and_2100_0 &&
                                            nclx->transfer_characteristics == 
heif_transfer_characteristic_ITU_R_BT_2100_0_PQ &&
                                            nclx->matrix_coefficients == 
heif_matrix_coefficients_ITU_R_BT_2020_2_non_constant_luminance);
+#endif
   }
   else {
+#if !SVT_AV1_CHECK_VERSION(3, 0, 0)
     svt_config.color_description_present_flag = false;
+#endif
   }
 
 
   svt_config.source_width = encoded_width;
   svt_config.source_height = encoded_height;
+#if SVT_AV1_CHECK_VERSION(3, 0, 0)
+  svt_config.level_of_parallelism = encoder->threads;
+#else
   svt_config.logical_processors = encoder->threads;
+#endif
 
   // disable 2-pass
   svt_config.rc_stats_buffer = SvtAv1FixedBuf {nullptr, 0};
-- 
2.48.1

Reply via email to