hugin: revbump for exiv2-0.28.1.

This commit is contained in:
Mohammed Anas 2023-10-18 19:18:38 +01:00 committed by classabbyamp
parent 86df911a4c
commit 0ebe2eb42f
2 changed files with 78 additions and 1 deletions

View File

@ -0,0 +1,77 @@
Patch-Source: https://gitlab.archlinux.org/archlinux/packaging/packages/hugin/-/blob/main/exiv2-0.28.patch
diff -r 79cd11a7a66f src/hugin_base/panodata/Exiv2Helper.cpp
--- a/src/hugin_base/panodata/Exiv2Helper.cpp Wed May 24 19:13:20 2023 +0200
+++ b/src/hugin_base/panodata/Exiv2Helper.cpp Mon Jun 05 00:31:19 2023 +0200
@@ -40,7 +40,7 @@
Exiv2::ExifData::iterator itr = exifData.findKey(Exiv2::ExifKey(keyName));
if (itr != exifData.end() && itr->count())
{
- value = itr->toLong();
+ value = itr->toUint32();
return true;
}
else
@@ -165,7 +165,7 @@
{
if(it!=exifData.end() && it->count())
{
- return it->toLong();
+ return it->toUint32();
}
return 0;
};
@@ -600,4 +600,4 @@
};
}; //namespace Exiv2Helper
-}; //namespace HuginBase
\ No newline at end of file
+}; //namespace HuginBase
diff -r 79cd11a7a66f src/hugin_base/panodata/SrcPanoImage.cpp
--- a/src/hugin_base/panodata/SrcPanoImage.cpp Wed May 24 19:13:20 2023 +0200
+++ b/src/hugin_base/panodata/SrcPanoImage.cpp Mon Jun 05 00:31:19 2023 +0200
@@ -384,7 +384,7 @@
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageWidthPixels"));
if (pos != xmpData.end())
{
- croppedWidth = pos->toLong();
+ croppedWidth = pos->toUint32();
}
else
{
@@ -394,7 +394,7 @@
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageHeightPixels"));
if (pos != xmpData.end())
{
- croppedHeight = pos->toLong();
+ croppedHeight = pos->toUint32();
}
else
{
@@ -408,7 +408,7 @@
double hfov = 0;
if (pos != xmpData.end())
{
- hfov = 360 * croppedWidth / (double)pos->toLong();
+ hfov = 360 * croppedWidth / (double)pos->toUint32();
}
else
{
@@ -419,7 +419,7 @@
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.FullPanoHeightPixels"));
if (pos != xmpData.end())
{
- fullHeight = pos->toLong();
+ fullHeight = pos->toUint32();
}
else
{
@@ -430,7 +430,7 @@
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaTopPixels"));
if (pos != xmpData.end())
{
- cropTop = pos->toLong();
+ cropTop = pos->toUint32();
}
else
{

View File

@ -1,7 +1,7 @@
# Template file for 'hugin'
pkgname=hugin
version=2022.0.0
revision=11
revision=12
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
pycompile_dirs="usr/share/hugin/data/plugins usr/share/hugin/data/plugins-templates"