Skip to content

Commit

Permalink
add exrmetrics tool (#1769)
Browse files Browse the repository at this point in the history
* add exrmetrics tool (no tile support yet)

Signed-off-by: Peter Hillman <[email protected]>

* fix windows build

Signed-off-by: Peter Hillman <[email protected]>

* fix test for parameters

Signed-off-by: Peter Hillman <[email protected]>

* omit filenames from exrmetrics output to simplify JSON compatibility

Signed-off-by: Peter Hillman <[email protected]>

* better diagnostics in exrmetrics test

Signed-off-by: Peter Hillman <[email protected]>

* print return code of mysteriously failing test

Signed-off-by: Peter Hillman <[email protected]>

* initialize compression method

Signed-off-by: Peter Hillman <[email protected]>

* support tiled images, drop verbose option

Signed-off-by: Peter Hillman <[email protected]>

* use chrono::steady_clock for timing

Signed-off-by: Peter Hillman <[email protected]>

---------

Signed-off-by: Peter Hillman <[email protected]>
  • Loading branch information
peterhillman authored Aug 1, 2024
1 parent d6be66e commit c8a74d9
Show file tree
Hide file tree
Showing 7 changed files with 895 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ add_subdirectory( exr2aces )
add_subdirectory( exrheader )
add_subdirectory( exrinfo )
add_subdirectory( exrmaketiled )
add_subdirectory( exrmetrics )
add_subdirectory( exrstdattr )
add_subdirectory( exrmakepreview )
add_subdirectory( exrenvmap )
Expand Down
14 changes: 14 additions & 0 deletions src/bin/exrmetrics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) Contributors to the OpenEXR Project.

add_executable(exrmetrics main.cpp exrmetrics.cpp)
target_link_libraries(exrmetrics OpenEXR::OpenEXR)
set_target_properties(exrmetrics PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
if(OPENEXR_INSTALL_TOOLS)
install(TARGETS exrmetrics DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
if(WIN32 AND BUILD_SHARED_LIBS)
target_compile_definitions(exrmetrics PRIVATE OPENEXR_DLL)
endif()
Loading

0 comments on commit c8a74d9

Please sign in to comment.