-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openimageio] Update to 3.0.0.3 (#42175)
- Loading branch information
1 parent
9e71cb7
commit 6e1219d
Showing
13 changed files
with
126 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/src/cmake/Config.cmake.in b/src/cmake/Config.cmake.in | ||
index 08401a2..4f2694e 100644 | ||
index 9ee9c9d..6b9e7c2 100644 | ||
--- a/src/cmake/Config.cmake.in | ||
+++ b/src/cmake/Config.cmake.in | ||
@@ -24,6 +24,8 @@ if (NOT @OPENIMAGEIO_CONFIG_DO_NOT_FIND_IMATH@ AND NOT OPENIMAGEIO_CONFIG_DO_NOT | ||
if (@OpenEXR_VERSION@ VERSION_GREATER_EQUAL 3.0) | ||
find_dependency(Imath @Imath_VERSION@ | ||
HINTS @Imath_DIR@) | ||
+ find_dependency(OpenEXR @OpenEXR_VERSION@ | ||
@@ -31,6 +31,8 @@ endif() | ||
if (NOT @OPENIMAGEIO_CONFIG_DO_NOT_FIND_IMATH@ AND NOT OPENIMAGEIO_CONFIG_DO_NOT_FIND_IMATH) | ||
find_dependency(Imath @Imath_VERSION@ | ||
HINTS @Imath_DIR@) | ||
+ find_dependency(OpenEXR @OpenEXR_VERSION@ | ||
+ HINTS @OpenEXR_DIR@) | ||
elseif (@OpenEXR_VERSION@ VERSION_GREATER_EQUAL 2.4 AND @FOUND_OPENEXR_WITH_CONFIG@) | ||
find_dependency(IlmBase @OpenEXR_VERSION@ | ||
HINTS @IlmBase_DIR@ @OpenEXR_DIR@) | ||
endif () | ||
|
||
if (NOT @fmt_LOCAL_BUILD@ AND NOT @OIIO_INTERNALIZE_FMT@) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
diff -u -r a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake | ||
diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake | ||
index 816ba08..7fe6a14 100644 | ||
--- a/src/cmake/externalpackages.cmake | ||
+++ b/src/cmake/externalpackages.cmake | ||
@@ -193,6 +193,11 @@ | ||
else () | ||
set (OpenColorIO_FOUND 0) | ||
@@ -133,6 +133,11 @@ if (NOT OPENCOLORIO_INCLUDES) | ||
get_target_property(OPENCOLORIO_INCLUDES OpenColorIO::OpenColorIO INTERFACE_INCLUDE_DIRECTORIES) | ||
endif () | ||
include_directories(BEFORE ${OPENCOLORIO_INCLUDES}) | ||
+if(USE_OPENCOLORIO AND TARGET Imath::Imath AND OIIO_USING_IMATH STREQUAL "2") | ||
+ message(FATAL_ERROR | ||
+ "OpenColorIO and OpenEXR use incompatible versions of Imath. " | ||
+ "You cannot use openimageio[opencolorio] for this configuration.") | ||
+endif() | ||
|
||
set(OPENCV_INCLUDES "") | ||
set(OPENCV_LIBRARIES opencv_core) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff --git a/src/theia/image/image.cc b/src/theia/image/image.cc | ||
index 6175a1f..18cb59b 100644 | ||
--- a/src/theia/image/image.cc | ||
+++ b/src/theia/image/image.cc | ||
@@ -296,7 +296,7 @@ FloatImage FloatImage::ComputeGradient() const { | ||
|
||
void FloatImage::ApproximateGaussianBlur(const int kernel_size) { | ||
oiio::ImageBuf kernel; | ||
- oiio::ImageBufAlgo::make_kernel(kernel, "gaussian", | ||
+ oiio::ImageBufAlgo::make_kernel("gaussian", | ||
static_cast<float>(kernel_size), | ||
static_cast<float>(kernel_size)); | ||
oiio::ImageBufAlgo::convolve(image_, image_, kernel); | ||
diff --git a/src/theia/sfm/exif_reader.cc b/src/theia/sfm/exif_reader.cc | ||
index c63465a..6b0e702 100644 | ||
--- a/src/theia/sfm/exif_reader.cc | ||
+++ b/src/theia/sfm/exif_reader.cc | ||
@@ -150,7 +150,7 @@ bool ExifReader::ExtractEXIFMetadata( | ||
camera_intrinsics_prior->focal_length.is_set = true; | ||
|
||
// Set GPS latitude. | ||
- const oiio::ImageIOParameter* latitude = | ||
+ const OIIO::ParamValue* latitude = | ||
image_spec.find_attribute("GPS:Latitude"); | ||
if (latitude != nullptr) { | ||
camera_intrinsics_prior->latitude.is_set = true; | ||
@@ -169,7 +169,7 @@ bool ExifReader::ExtractEXIFMetadata( | ||
} | ||
|
||
// Set GPS longitude. | ||
- const oiio::ImageIOParameter* longitude = | ||
+ const OIIO::ParamValue* longitude = | ||
image_spec.find_attribute("GPS:Longitude"); | ||
if (longitude != nullptr) { | ||
camera_intrinsics_prior->longitude.is_set = true; | ||
@@ -189,7 +189,7 @@ bool ExifReader::ExtractEXIFMetadata( | ||
|
||
|
||
// Set GSP altitude. | ||
- const oiio::ImageIOParameter* altitude = | ||
+ const OIIO::ParamValue* altitude = | ||
image_spec.find_attribute("GPS:Altitude"); | ||
if (altitude != nullptr) { | ||
camera_intrinsics_prior->altitude.is_set = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters