Skip to content

Commit

Permalink
graphics/hugin: make compatible with exiv2 0.28
Browse files Browse the repository at this point in the history
PR:		272311
  • Loading branch information
mandree committed Jul 9, 2023
1 parent f13af80 commit 4e79a07
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/hugin/Makefile
@@ -1,6 +1,6 @@
PORTNAME= hugin
DISTVERSION= 2022.0.0
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}

Expand Down
@@ -0,0 +1,27 @@
--- src/hugin_base/panodata/Exiv2Helper.cpp.orig 2019-05-15 15:30:47 UTC
+++ src/hugin_base/panodata/Exiv2Helper.cpp
@@ -40,7 +40,7 @@ namespace HuginBase
Exiv2::ExifData::iterator itr = exifData.findKey(Exiv2::ExifKey(keyName));
if (itr != exifData.end() && itr->count())
{
- value = itr->toLong();
+ value = itr->toInt64();
return true;
}
else
@@ -165,7 +165,7 @@ namespace HuginBase
{
if(it!=exifData.end() && it->count())
{
- return it->toLong();
+ return it->toInt64();
}
return 0;
};
@@ -600,4 +600,4 @@ namespace HuginBase
};

}; //namespace Exiv2Helper
-}; //namespace HuginBase
\ No newline at end of file
+}; //namespace HuginBase
@@ -0,0 +1,47 @@
--- src/hugin_base/panodata/SrcPanoImage.cpp.orig 2022-05-26 16:18:56 UTC
+++ src/hugin_base/panodata/SrcPanoImage.cpp
@@ -384,7 +384,7 @@ bool SrcPanoImage::readEXIF()
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageWidthPixels"));
if (pos != xmpData.end())
{
- croppedWidth = pos->toLong();
+ croppedWidth = pos->toInt64();
}
else
{
@@ -394,7 +394,7 @@ bool SrcPanoImage::readEXIF()
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageHeightPixels"));
if (pos != xmpData.end())
{
- croppedHeight = pos->toLong();
+ croppedHeight = pos->toInt64();
}
else
{
@@ -408,7 +408,7 @@ bool SrcPanoImage::readEXIF()
double hfov = 0;
if (pos != xmpData.end())
{
- hfov = 360 * croppedWidth / (double)pos->toLong();
+ hfov = 360 * croppedWidth / (double)pos->toInt64();
}
else
{
@@ -419,7 +419,7 @@ bool SrcPanoImage::readEXIF()
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.FullPanoHeightPixels"));
if (pos != xmpData.end())
{
- fullHeight = pos->toLong();
+ fullHeight = pos->toInt64();
}
else
{
@@ -430,7 +430,7 @@ bool SrcPanoImage::readEXIF()
pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaTopPixels"));
if (pos != xmpData.end())
{
- cropTop = pos->toLong();
+ cropTop = pos->toInt64();
}
else
{

0 comments on commit 4e79a07

Please sign in to comment.