Skip to content

Commit badc9db

Browse files
authored
Merge branch 'AcademySoftwareFoundation:main' into CUDA
2 parents 7775b2f + 4e9e70f commit badc9db

File tree

8 files changed

+56
-50
lines changed

8 files changed

+56
-50
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ jobs:
463463
LIBRAW_VERSION=0.21.4
464464
LIBTIFF_VERSION=v4.7.1
465465
OPENJPEG_VERSION=v2.5.4
466-
PTEX_VERSION=v2.4.3
466+
PTEX_VERSION=v2.5.0
467467
PUGIXML_VERSION=v1.15
468468
WEBP_VERSION=v1.6.0
469469
FREETYPE_VERSION=VER-2-14-0
@@ -502,7 +502,7 @@ jobs:
502502
# Ensure we are testing all the deps we think we are. We would
503503
# like this test to have minimal missing dependencies.
504504
required_deps: all
505-
optional_deps: 'CUDAToolkit;DCMTK;JXL;Nuke;OpenCV;OpenGL;OpenVDB;R3DSDK'
505+
optional_deps: 'CUDAToolkit;DCMTK;JXL;libuhdr;Nuke;OpenCV;OpenGL;openjph;R3DSDK;'
506506
- desc: all local builds gcc12 C++17 avx2 exr3.2 ocio2.3
507507
nametag: linux-local-builds
508508
runner: ubuntu-22.04
@@ -517,18 +517,19 @@ jobs:
517517
PTEX_VERSION=v2.4.2
518518
PUGIXML_VERSION=v1.14
519519
WEBP_VERSION=v1.4.0
520-
- desc: clang15 C++17 avx2 exr3.1 ocio2.3
521-
nametag: linux-clang15
522-
runner: ubuntu-22.04
523-
cxx_compiler: clang++-15
524-
cc_compiler: clang-15
520+
- desc: clang18 C++17 avx2 exr3.1 ocio2.3
521+
nametag: linux-clang18
522+
runner: ubuntu-24.04
523+
cxx_compiler: clang++
524+
cc_compiler: clang
525525
cxx_std: 17
526526
fmt_ver: 10.1.1
527527
opencolorio_ver: v2.3.0
528528
openexr_ver: v3.1.13
529529
pybind11_ver: v2.12.0
530-
python_ver: "3.10"
530+
python_ver: "3.12"
531531
simd: avx2,f16c
532+
setenvs: export USE_OPENVDB=0
532533
- desc: Linux ARM latest releases gcc14 C++20 py3.12 exr3.4 ocio2.4
533534
nametag: linux-arm-latest-releases
534535
runner: ubuntu-24.04-arm

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ NEW or CHANGED MINIMUM dependencies since the last major release are **bold**.
7171
* If you want support for WebP images:
7272
* WebP >= 1.1 (tested through 1.6)
7373
* If you want support for Ptex:
74-
* Ptex >= 2.3.1 (probably works for older; tested through 2.4.3)
74+
* Ptex >= 2.3.1 (probably works for older; tested through 2.5)
7575
* If you want to be able to do font rendering into images:
7676
* Freetype >= 2.10.0 (tested through 2.14)
7777
* If you want to be able to read "ultra-HDR" embedded in JPEG files:

src/build-scripts/build_Ptex.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ git checkout ${PTEX_VERSION} --force
3333

3434
time cmake -S . -B ${PTEX_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release \
3535
-DCMAKE_INSTALL_PREFIX=${PTEX_INSTALL_DIR} \
36+
-DCMAKE_CXX_STANDARD=17 \
3637
${PTEX_CONFIG_OPTS}
3738
time cmake --build ${PTEX_BUILD_DIR} --config Release --target install
3839

src/build-scripts/gh-installdeps.bash

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,17 @@ else
9696
if [[ "${SKIP_SYSTEM_DEPS_INSTALL}" != "1" ]] ; then
9797
time sudo apt-get -q install -y --fix-missing \
9898
git cmake ninja-build ccache g++ \
99-
libilmbase-dev libopenexr-dev \
100-
libtiff-dev libgif-dev libpng-dev \
99+
libtiff-dev libgif-dev libpng-dev libjpeg-dev \
101100
libraw-dev libwebp-dev \
102101
libavcodec-dev libavformat-dev libswscale-dev libavutil-dev \
103102
dcmtk libopenvdb-dev \
104103
libfreetype6-dev \
105104
libopencolorio-dev \
106-
libtbb-dev || true
105+
libtbb-dev \
106+
libdeflate-dev bzip2
107+
# Iffy ones get the "|| true" treatment so failure is ok
108+
time sudo apt-get -q install -y --fix-missing \
109+
libjxl-dev || true
107110
fi
108111
if [[ "${USE_OPENCV}" != "0" ]] && [[ "${INSTALL_OPENCV}" != "0" ]] ; then
109112
sudo apt-get -q install -y --fix-missing libopencv-dev || true
@@ -133,6 +136,10 @@ else
133136
libheif-plugin-x265 libheif-dev || true
134137
fi
135138

139+
if [[ "${USE_FFMPEG}" != "0" ]] ; then
140+
time sudo apt-get -q install -y ffmpeg || true
141+
fi
142+
136143
export CMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu:$CMAKE_PREFIX_PATH
137144

138145
if [[ "$CXX" == "icpc" || "$CC" == "icc" || "$USE_ICC" != "" || "$USE_ICX" != "" ]] ; then

src/build-scripts/install_homebrew_deps.bash

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if [[ `which brew` == "" ]] ; then
1919
exit 1
2020
fi
2121

22+
set -ex
2223

2324
if [[ "${DO_BREW_UPDATE:=0}" != "0" ]] ; then
2425
brew update >/dev/null
@@ -27,42 +28,38 @@ echo ""
2728
echo "Before my brew installs:"
2829
brew list --versions
2930

30-
# All cases except for clang-format target, we need the dependencies.
31-
brew install --display-times -q gcc ccache cmake ninja || true
32-
brew link --overwrite gcc
33-
brew install --display-times -q python@${PYTHON_VERSION} || true
34-
brew unlink [email protected] || true
35-
brew unlink [email protected] || true
36-
brew unlink [email protected] || true
37-
brew link --overwrite --force python@${PYTHON_VERSION} || true
38-
#brew upgrade --display-times -q cmake || true
39-
#brew install --display-times -q libtiff
40-
brew install --display-times -q imath openexr opencolorio
41-
#brew install --display-times -q libpng giflib webp
42-
brew install --display-times -q jpeg-turbo openjpeg libultrahdr
43-
brew install --display-times -q freetype libraw dcmtk pybind11 numpy || true
44-
brew install --display-times -q ffmpeg libheif ptex || true
45-
brew install --display-times -q tbb || true
46-
brew install --display-times -q openvdb || true
47-
brew install --display-times -q robin-map || true
48-
if [[ "${USE_OPENCV}" != "0" ]] && [[ "${INSTALL_OPENCV:=1}" != "0" ]] ; then
49-
brew install --display-times -q opencv || true
50-
fi
51-
if [[ "${USE_QT:=1}" != "0" ]] && [[ "${INSTALL_QT:=1}" != "0" ]] ; then
52-
brew install --display-times -q qt${QT_VERSION}
53-
fi
54-
if [[ "${USE_LLVM:=0}" != "0" ]] || [[ "${LLVMBREWVER}" != "" ]]; then
55-
brew install --display-times -q llvm${LLVMBREWVER}
56-
export PATH=/usr/local/opt/llvm/bin:$PATH
31+
if [[ "$OIIO_BREW_INSTALL_PACKAGES" == "" ]] ; then
32+
OIIO_BREW_INSTALL_PACKAGES=" \
33+
ccache \
34+
dcmtk \
35+
ffmpeg \
36+
imath \
37+
libheif \
38+
libraw \
39+
libultrahdr \
40+
numpy \
41+
opencolorio \
42+
openexr \
43+
openjpeg \
44+
openvdb \
45+
ptex \
46+
pybind11 \
47+
robin-map \
48+
tbb \
49+
"
50+
if [[ "${USE_OPENCV}" != "0" ]] && [[ "${INSTALL_OPENCV:=1}" != "0" ]] ; then
51+
OIIO_BREW_INSTALL_PACKAGES+=" opencv"
52+
fi
53+
if [[ "${USE_QT:=1}" != "0" ]] && [[ "${INSTALL_QT:=1}" != "0" ]] ; then
54+
OIIO_BREW_INSTALL_PACKAGES+=" qt${QT_VERSION}"
55+
fi
5756
fi
57+
brew install --display-times -q $OIIO_BREW_INSTALL_PACKAGES $OIIO_BREW_EXTRA_INSTALL_PACKAGES || true
5858

5959
echo ""
6060
echo "After brew installs:"
6161
brew list --versions
6262

63-
# Needed on some systems
64-
pip${PYTHON_VERSION} install numpy
65-
6663
# Set up paths. These will only affect the caller if this script is
6764
# run with 'source' rather than in a separate shell.
6865
export PATH=/usr/local/opt/qt5/bin:$PATH

src/libOpenImageIO/imagebufalgo_yee.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class GaussianPyramid {
5252
if (lev >= PYRAMID_MAX_LEVELS)
5353
return 0.0f;
5454
else
55-
return level[lev].getchannel(x, y, 0, 1);
55+
return level[lev].getchannel(x, y, 0, 0);
5656
}
5757

5858
#if 0 /* unused */
@@ -65,7 +65,7 @@ class GaussianPyramid {
6565
float operator()(int x, int y, int lev) const
6666
{
6767
OIIO_DASSERT(lev < PYRAMID_MAX_LEVELS);
68-
return level[lev].getchannel(x, y, 0, 1);
68+
return level[lev].getchannel(x, y, 0, 0);
6969
}
7070
#endif
7171

testsuite/diff/ref/out-fmt6.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Computing diff of "img1.exr" vs "img2.exr"
1616
121 pixels (2.95%) over 1e-06
1717
FAILURE
1818
Computing perceptual diff of "img1.exr" vs "img2.exr"
19-
Max error = 1.0 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
19+
Max error = 10.0 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
2020
121 pixels (2.95%) failed the perceptual test
2121
FAILURE
2222
Computing perceptual diff of "img1.exr" vs "img1.exr"
@@ -26,7 +26,7 @@ Comparing "img1.exr" and "img2.exr"
2626
Mean error = 0
2727
RMS error = 0
2828
Peak SNR = 0
29-
Max error = 1 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
29+
Max error = 10 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
3030
0 pixels (0%) over 0.008
3131
121 pixels (2.95%) over 0.004
3232
121 pixels (2.9541%) failed the perceptual test
@@ -38,7 +38,7 @@ Comparing "img1.exr" and "img2.exr"
3838
Mean error = 0
3939
RMS error = 0
4040
Peak SNR = 0
41-
Max error = 1 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
41+
Max error = 10 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
4242
0 pixels (0%) over 0.008
4343
121 pixels (2.95%) over 1.0
4444
121 pixels (2.9541%) failed the perceptual test

testsuite/diff/ref/out.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Computing diff of "img1.exr" vs "img2.exr"
1616
121 pixels (2.95%) over 1e-06
1717
FAILURE
1818
Computing perceptual diff of "img1.exr" vs "img2.exr"
19-
Max error = 1 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
19+
Max error = 10 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
2020
121 pixels (2.95%) failed the perceptual test
2121
FAILURE
2222
Computing perceptual diff of "img1.exr" vs "img1.exr"
@@ -26,7 +26,7 @@ Comparing "img1.exr" and "img2.exr"
2626
Mean error = 0
2727
RMS error = 0
2828
Peak SNR = 0
29-
Max error = 1 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
29+
Max error = 10 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
3030
0 pixels (0%) over 0.008
3131
121 pixels (2.95%) over 0.004
3232
121 pixels (2.9541%) failed the perceptual test
@@ -38,7 +38,7 @@ Comparing "img1.exr" and "img2.exr"
3838
Mean error = 0
3939
RMS error = 0
4040
Peak SNR = 0
41-
Max error = 1 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
41+
Max error = 10 @ (5, 17, R) values are 0.1, 0.1, 0.1 vs 0.1, 0.6, 0.1
4242
0 pixels (0%) over 0.008
4343
121 pixels (2.95%) over 1
4444
121 pixels (2.9541%) failed the perceptual test

0 commit comments

Comments
 (0)