Skip to content

Commit

Permalink
[feat] openexr writer
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Dukhovnikov <[email protected]>
  • Loading branch information
antond-weta committed Nov 16, 2023
1 parent 984c0cd commit b5d6162
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_INSTALL_PREFIX}/share/CMake"


find_package ( Eigen3 CONFIG REQUIRED )
find_package ( Imath CONFIG REQUIRED )
# find_package ( Imath CONFIG REQUIRED )
find_package ( Ceres REQUIRED )
find_package ( Boost REQUIRED
COMPONENTS
Expand Down
4 changes: 2 additions & 2 deletions src/rawtoaces_idt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ target_link_libraries(
Boost::boost
Boost::system
Boost::filesystem
Imath::Imath
Imath::ImathConfig
# Imath::Imath
# Imath::ImathConfig
)

if ( ${Ceres_VERSION_MAJOR} GREATER 1 )
Expand Down
7 changes: 5 additions & 2 deletions src/rawtoaces_util/acesrender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2027,8 +2027,11 @@ void AcesRender::acesWrite( const char *name, float *aces, float ratio ) const

FORJ( channels * width )
{
Imath::half tmpV( aces[k++] );
halfIn[j] = tmpV.bits();
Eigen::half h( aces[k++] );
//ceres::h
//ceres::half;
//Imath::half tmpV( aces[k++] );
halfIn[j] = *(uint16_t *)(&h);
}
x.storeHalfRow( halfIn, i );
}
Expand Down
4 changes: 2 additions & 2 deletions unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ target_link_libraries(
Test_IDT
PUBLIC
${RAWTOACESLIB}
Imath::Imath
Imath::ImathConfig
# Imath::Imath
# Imath::ImathConfig
Boost::boost
Boost::filesystem
Boost::unit_test_framework
Expand Down

0 comments on commit b5d6162

Please sign in to comment.