Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
opencolorio_ver: v2.3.0
pybind11_ver: v2.9.0
setenvs: export FREETYPE_VERSION=VER-2-12-0
BUILD_PNG_VERSION=1.6.30
- desc: VP2022 clang13/C++17 py39 avx2 exr3.1 ocio2.3
nametag: linux-vfx2022.clang13
runner: ubuntu-latest
Expand All @@ -75,6 +76,7 @@ jobs:
simd: "avx2,f16c"
fmt_ver: 9.1.0
setenvs: export FREETYPE_VERSION=VER-2-12-0
BUILD_PNG_VERSION=1.6.30
- desc: oldest gcc9.3/C++17 py3.9 exr3.1 ocio2.3
# Oldest gcc and versions of the dependencies that we support.
nametag: linux-oldest
Expand All @@ -92,6 +94,7 @@ jobs:
PTEX_VERSION=v2.3.2
WEBP_VERSION=v1.1.0
PUGIXML_VERSION=v1.8
BUILD_PNG_VERSION=1.6.0
depcmds: sudo rm -rf /usr/local/include/OpenEXR
- desc: oldest clang10/C++17 py3.9 exr3.1 ocio2.3
# Oldest clang and versions of the dependencies that we support.
Expand All @@ -112,6 +115,7 @@ jobs:
PTEX_VERSION=v2.3.2
WEBP_VERSION=v1.1.0
PUGIXML_VERSION=v1.8
BUILD_PNG_VERSION=1.6.0
depcmds: sudo rm -rf /usr/local/include/OpenEXR
- desc: hobbled gcc9.3/C++17 py3.9 exr-3.1 no-sse
# Use the oldest supported versions of required dependencies, and
Expand All @@ -137,6 +141,7 @@ jobs:
USE_OPENCV=0
FREETYPE_VERSION=VER-2-10-0
PUGIXML_VERSION=v1.8
BUILD_PNG_VERSION=1.6.0
depcmds: sudo rm -rf /usr/local/include/OpenEXR

runs-on: ${{ matrix.runner }}
Expand Down Expand Up @@ -372,6 +377,7 @@ jobs:
setenvs: export SANITIZE=address,undefined
OIIO_CMAKE_FLAGS="-DSANITIZE=address,undefined -DOIIO_HARDENING=3 -DUSE_PYTHON=0"
CTEST_EXCLUSIONS="broken|png-damaged"
OpenImageIO_BUILD_LOCAL_DEPS=PNG

# Test ABI stability. `abi_check` is the version or commit that we
# believe is the current standard against which we don't want to
Expand Down Expand Up @@ -425,6 +431,7 @@ jobs:
python_ver: "3.12"
simd: avx2,f16c
setenvs: export LIBJPEGTURBO_VERSION=3.1.1
LIBPNG_VERSION=v1.6.50
LIBRAW_VERSION=0.21.4
LIBTIFF_VERSION=v4.7.0
OPENJPEG_VERSION=v2.5.3
Expand All @@ -447,6 +454,7 @@ jobs:
simd: avx2,f16c
benchmark: 1
setenvs: export LIBJPEGTURBO_VERSION=main
LIBPNG_VERSION=master
LIBRAW_VERSION=master
LIBTIFF_VERSION=master
OPENJPEG_VERSION=master
Expand Down Expand Up @@ -523,6 +531,7 @@ jobs:
pybind11_ver: v3.0.0
python_ver: "3.12"
setenvs: export LIBJPEGTURBO_VERSION=3.1.1
LIBPNG_VERSION=v1.6.50
LIBRAW_VERSION=0.21.4
LIBTIFF_VERSION=v4.7.0
OPENJPEG_VERSION=v2.5.3
Expand All @@ -543,6 +552,7 @@ jobs:
pybind11_ver: v3.0.0
python_ver: "3.12"
setenvs: export LIBJPEGTURBO_VERSION=3.1.0
LIBPNG_VERSION=v1.6.50
LIBRAW_VERSION=0.21.4
LIBTIFF_VERSION=v4.7.0
OPENJPEG_VERSION=v2.5.3
Expand Down
2 changes: 1 addition & 1 deletion src/build-scripts/build_libpng.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -ex

# Repo and branch/tag/commit of libpng to download if we don't have it yet
LIBPNG_REPO=${LIBPNG_REPO:=https://github.com/pnggroup/libpng.git}
LIBPNG_VERSION=${LIBPNG_VERSION:=v1.6.47}
LIBPNG_VERSION=${LIBPNG_VERSION:=v1.6.50}

# Where to put libpng repo source (default to the ext area)
LIBPNG_SRC_DIR=${LIBPNG_SRC_DIR:=${PWD}/ext/libpng}
Expand Down
4 changes: 4 additions & 0 deletions src/build-scripts/gh-installdeps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ if [[ "$FREETYPE_VERSION" != "" ]] ; then
source src/build-scripts/build_Freetype.bash
fi

if [[ "$LIBPNG_VERSION" != "" ]] ; then
source src/build-scripts/build_libpng.bash
fi

if [[ "$USE_ICC" != "" ]] ; then
# We used gcc for the prior dependency builds, but use icc for OIIO itself
echo "which icpc:" $(which icpc)
Expand Down
2 changes: 1 addition & 1 deletion src/cmake/build_PNG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# PNG by hand!
######################################################################

set_cache (PNG_BUILD_VERSION 1.6.47 "PNG version for local builds")
set_cache (PNG_BUILD_VERSION 1.6.50 "PNG version for local builds")
super_set (PNG_BUILD_GIT_REPOSITORY "https://github.com/pnggroup/libpng")
super_set (PNG_BUILD_GIT_TAG "v${PNG_BUILD_VERSION}")
super_set (PNG_BUILD_EXTRA_CMAKE_ARGS "")
Expand Down
5 changes: 5 additions & 0 deletions src/doc/builtinplugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,11 @@ files use the file extension :file:`.png`.
* - ``oiio:ColorSpace``
- string
- Color space (see Section :ref:`sec-metadata-color`).
* - ``CICP``
- int[4]
- CICP color space information (see Section :ref:`sec-metadata-color`).
Note that this attribute is only supported if OIIO was built against
libPNG 1.6.45 or newer.
* - ``ICCProfile``
- uint8[]
- The ICC color profile. A variety of other ``ICCProfile:*`` attributes
Expand Down
Loading