pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/openexr



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Oct 19 11:53:58 UTC 2024

Modified Files:
        pkgsrc/graphics/openexr: Makefile PLIST distinfo
Added Files:
        pkgsrc/graphics/openexr/patches:
            patch-src_bin_exrmetrics_exrmetrics.cpp

Log Message:
openexr: update to 3.3.0.

## Version 3.3.0 (September 30, 2024)

Minor release two significant changes:

- The C++ API now uses the OpenEXRCore library underneath.

  - This is a transparent change to the existing API, although the ABI
    (i.e. structure / class layout) has changed

  - Existing reading of pixel data should be more efficient due to
    fewer memory allocations / frees during the process of
    reading. Additionally, some more specialisation of unpacking
    routines may result in faster unpack times

  - All compression routines are implemented by the C Core layer
    underneath and no longer duplicated

  - Initial support for "stateless" reading of scanlines has been
    proposed, allowing multiple threads to read scanlines into
    different frame buffer objects at the same time. While well tested
    at the Core level, the C++ api should be considered experimental
    for this release

  - Thread dispatch for reading different file types has been made
    more homogeneous, so is simpler and more consistent

- New API for accessing compression types

  In anticipation of future support for new compression types, there
  is now a convenience API for mapping between compression type names
  and the associated enum:

  - ``getCompressionDescriptionFromId(Compression, std::string&)``
  - ``getCompressionIdFromName(const std::string&, Compression&)``
  - ``getCompressionNameFromId(Compression, std::string&)``
  - ``getCompressionNamesString(const std::string&, std::string&)``
  - ``getCompressionNumScanlines(Compression)``
  - ``isValidCompression(int)``

- New bin tools:

  - ``exrmetrics`` - Read an OpenEXR image from infile, write an
    identical copy to outfile reporting time taken to read/write and
    file sizes. Useful for benchmarking performance in space and time.

  - ``exrmanifest`` - Read exr files and print the contents of the
    embedded manifest. The manifest provides a mapping between integer
    object identifiers and human-readible strings. See [OpenEXR Deep
    IDs
    Specification](https://openexr.com/en/latest/DeepIDsSpecification.html)
    for more details.

- New python bindings.

  This version introduces a new python API, the ``File`` object, which
  provides full support for reading and writing all types of ``.exr``
  image files, including scanline, tiled, deep, mult-part, multi-view,
  and multi-resolution images with pixel types of unsigned 32-bit
  integers and 16- and 32-bit floats. It provides access to pixel data
  through ``numpy`` arrays, as either one array per channel or with R, G,
  B, and A interleaved into a single array RGBA array.

  Previous releases of the openexr python module supported only
  scanline files. The previous API remains in place for now for
  backwards compatibility.

  See [src/wrappers/python/README.md](src/wrappers/python/README.md)
  for a synopsis.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 pkgsrc/graphics/openexr/Makefile
cvs rdiff -u -r1.27 -r1.28 pkgsrc/graphics/openexr/PLIST
cvs rdiff -u -r1.55 -r1.56 pkgsrc/graphics/openexr/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/openexr/patches/patch-src_bin_exrmetrics_exrmetrics.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/openexr/Makefile
diff -u pkgsrc/graphics/openexr/Makefile:1.62 pkgsrc/graphics/openexr/Makefile:1.63
--- pkgsrc/graphics/openexr/Makefile:1.62       Sun Aug 25 06:18:52 2024
+++ pkgsrc/graphics/openexr/Makefile    Sat Oct 19 11:53:57 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.62 2024/08/25 06:18:52 wiz Exp $
+# $NetBSD: Makefile,v 1.63 2024/10/19 11:53:57 wiz Exp $
 
-DISTNAME=      openexr-3.2.4
+DISTNAME=      openexr-3.3.0
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=openexr/}
 GITHUB_PROJECT=        openexr

Index: pkgsrc/graphics/openexr/PLIST
diff -u pkgsrc/graphics/openexr/PLIST:1.27 pkgsrc/graphics/openexr/PLIST:1.28
--- pkgsrc/graphics/openexr/PLIST:1.27  Mon Mar 11 13:16:04 2024
+++ pkgsrc/graphics/openexr/PLIST       Sat Oct 19 11:53:57 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.27 2024/03/11 13:16:04 wiz Exp $
+@comment $NetBSD: PLIST,v 1.28 2024/10/19 11:53:57 wiz Exp $
 bin/exr2aces
 bin/exrenvmap
 bin/exrheader
@@ -6,6 +6,7 @@ bin/exrinfo
 bin/exrmakepreview
 bin/exrmaketiled
 bin/exrmanifest
+bin/exrmetrics
 bin/exrmultipart
 bin/exrmultiview
 bin/exrstdattr
@@ -28,6 +29,7 @@ include/OpenEXR/IlmThreadForward.h
 include/OpenEXR/IlmThreadMutex.h
 include/OpenEXR/IlmThreadNamespace.h
 include/OpenEXR/IlmThreadPool.h
+include/OpenEXR/IlmThreadProcessGroup.h
 include/OpenEXR/IlmThreadSemaphore.h
 include/OpenEXR/ImfAcesFile.h
 include/OpenEXR/ImfArray.h
@@ -43,6 +45,8 @@ include/OpenEXR/ImfCompositeDeepScanLine
 include/OpenEXR/ImfCompression.h
 include/OpenEXR/ImfCompressionAttribute.h
 include/OpenEXR/ImfCompressor.h
+include/OpenEXR/ImfContext.h
+include/OpenEXR/ImfContextInit.h
 include/OpenEXR/ImfConvert.h
 include/OpenEXR/ImfDeepCompositing.h
 include/OpenEXR/ImfDeepFrameBuffer.h
@@ -156,25 +160,25 @@ lib/cmake/OpenEXR/OpenEXRConfig.cmake
 lib/cmake/OpenEXR/OpenEXRConfigVersion.cmake
 lib/cmake/OpenEXR/OpenEXRTargets-release.cmake
 lib/cmake/OpenEXR/OpenEXRTargets.cmake
-lib/libIex-3_2.so
-lib/libIex-3_2.so.31
-lib/libIex-3_2.so.31.${PKGVERSION}
+lib/libIex-3_3.so
+lib/libIex-3_3.so.32
+lib/libIex-3_3.so.32.${PKGVERSION}
 lib/libIex.so
-lib/libIlmThread-3_2.so
-lib/libIlmThread-3_2.so.31
-lib/libIlmThread-3_2.so.31.${PKGVERSION}
+lib/libIlmThread-3_3.so
+lib/libIlmThread-3_3.so.32
+lib/libIlmThread-3_3.so.32.${PKGVERSION}
 lib/libIlmThread.so
-lib/libOpenEXR-3_2.so
-lib/libOpenEXR-3_2.so.31
-lib/libOpenEXR-3_2.so.31.${PKGVERSION}
+lib/libOpenEXR-3_3.so
+lib/libOpenEXR-3_3.so.32
+lib/libOpenEXR-3_3.so.32.${PKGVERSION}
 lib/libOpenEXR.so
-lib/libOpenEXRCore-3_2.so
-lib/libOpenEXRCore-3_2.so.31
-lib/libOpenEXRCore-3_2.so.31.${PKGVERSION}
+lib/libOpenEXRCore-3_3.so
+lib/libOpenEXRCore-3_3.so.32
+lib/libOpenEXRCore-3_3.so.32.${PKGVERSION}
 lib/libOpenEXRCore.so
-lib/libOpenEXRUtil-3_2.so
-lib/libOpenEXRUtil-3_2.so.31
-lib/libOpenEXRUtil-3_2.so.31.${PKGVERSION}
+lib/libOpenEXRUtil-3_3.so
+lib/libOpenEXRUtil-3_3.so.32
+lib/libOpenEXRUtil-3_3.so.32.${PKGVERSION}
 lib/libOpenEXRUtil.so
 lib/pkgconfig/OpenEXR.pc
 share/doc/OpenEXR/examples/deepExamples.cpp

Index: pkgsrc/graphics/openexr/distinfo
diff -u pkgsrc/graphics/openexr/distinfo:1.55 pkgsrc/graphics/openexr/distinfo:1.56
--- pkgsrc/graphics/openexr/distinfo:1.55       Fri Apr  5 10:45:55 2024
+++ pkgsrc/graphics/openexr/distinfo    Sat Oct 19 11:53:57 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.55 2024/04/05 10:45:55 wiz Exp $
+$NetBSD: distinfo,v 1.56 2024/10/19 11:53:57 wiz Exp $
 
-BLAKE2s (openexr-3.2.4.tar.gz) = fe5b1f8a5cf0a4e0e159aa8c15163453854845877c46336b13118a473dcf1bdd
-SHA512 (openexr-3.2.4.tar.gz) = ecc3d8b206bda5e5897ac9cd797a8432b76981de10d49cbb107af2b4108c22186de0dda25a9a43b07e18d641ef71508445d95f659a4ca932e029d48ee029a492
-Size (openexr-3.2.4.tar.gz) = 18856440 bytes
+BLAKE2s (openexr-3.3.0.tar.gz) = 7920c89449ebde9d14daf9301fbab14a59d684897aba187c0337241b69b2c237
+SHA512 (openexr-3.3.0.tar.gz) = 15feaf01defd57322b78036931f632b598c1b1a0144570748bc10100b6ab4c6b5b1acdaa156f837063e1bddc9384613719e27fb419fd3a4183bd0eeb979e6ece
+Size (openexr-3.3.0.tar.gz) = 21314544 bytes
+SHA1 (patch-src_bin_exrmetrics_exrmetrics.cpp) = c0575a767df788536812c4bd06cb908095193dac

Added files:

Index: pkgsrc/graphics/openexr/patches/patch-src_bin_exrmetrics_exrmetrics.cpp
diff -u /dev/null pkgsrc/graphics/openexr/patches/patch-src_bin_exrmetrics_exrmetrics.cpp:1.1
--- /dev/null   Sat Oct 19 11:53:58 2024
+++ pkgsrc/graphics/openexr/patches/patch-src_bin_exrmetrics_exrmetrics.cpp     Sat Oct 19 11:53:58 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_bin_exrmetrics_exrmetrics.cpp,v 1.1 2024/10/19 11:53:58 wiz Exp $
+
+Fix build on NetBSD.
+
+--- src/bin/exrmetrics/exrmetrics.cpp.orig     2024-09-26 23:34:32.000000000 +0000
++++ src/bin/exrmetrics/exrmetrics.cpp
+@@ -482,7 +482,7 @@ exrmetrics (
+     }
+     else { compression = outHeader.compression (); }
+ 
+-    if (!isinf (level) && level >= -1)
++    if (!std::isinf (level) && level >= -1)
+     {
+         switch (outHeader.compression ())
+         {



Home | Main Index | Thread Index | Old Index