@ -45,12 +45,21 @@ if(HAVE_JASPER)
list ( APPEND GRFMT_LIBS ${ JASPER_LIBRARIES } )
if ( OPENCV_IO_FORCE_JASPER )
add_definitions ( -DOPENCV_IMGCODECS_FORCE_JASPER=1 )
else ( )
message ( STATUS "imgcodecs: Jasper codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/14058" )
endif ( )
endif ( )
if ( HAVE_OPENEXR )
include_directories ( SYSTEM ${ OPENEXR_INCLUDE_PATHS } )
list ( APPEND GRFMT_LIBS ${ OPENEXR_LIBRARIES } )
if ( OPENCV_IO_FORCE_OPENEXR
O R N O T B U I L D _ O P E N E X R # e x t e r n a l O p e n E X R v e r s i o n s a r e n o t d i s a b l e d
)
add_definitions ( -DOPENCV_IMGCODECS_USE_OPENEXR=1 )
else ( )
message ( STATUS "imgcodecs: OpenEXR codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/21326" )
endif ( )
endif ( )
if ( HAVE_PNG OR HAVE_TIFF OR HAVE_OPENEXR )
@ -149,6 +158,9 @@ ocv_add_accuracy_tests()
if ( TARGET opencv_test_imgcodecs AND HAVE_JASPER AND "$ENV{OPENCV_IO_ENABLE_JASPER}" )
ocv_target_compile_definitions ( opencv_test_imgcodecs PRIVATE OPENCV_IMGCODECS_ENABLE_JASPER_TESTS=1 )
endif ( )
if ( TARGET opencv_test_imgcodecs AND HAVE_OPENEXR AND "$ENV{OPENCV_IO_ENABLE_OPENEXR}" )
ocv_target_compile_definitions ( opencv_test_imgcodecs PRIVATE OPENCV_IMGCODECS_ENABLE_OPENEXR_TESTS=1 )
endif ( )
if ( TARGET opencv_test_imgcodecs AND HAVE_PNG AND NOT ( PNG_VERSION VERSION_LESS "1.6.31" ) )
# d e t a i l s : h t t p s : / / g i t h u b . c o m / g l e n n r p / l i b p n g / c o m m i t / 6 8 c b 0 a a e e 3 d e 6 3 7 1 b 8 1 a 4 6 1 3 4 7 6 d 9 b 3 3 e 4 3 e 9 5 b 1
ocv_target_compile_definitions ( opencv_test_imgcodecs PRIVATE OPENCV_IMGCODECS_PNG_WITH_EXIF=1 )