|
|
|
@ -63,7 +63,7 @@ OCV_OPTION(ENABLE_LIBJPEG_TURBO_SIMD "Include SIMD extensions for libjpeg-turbo, |
|
|
|
|
option(WITH_ARITH_ENC "Include arithmetic encoding support when emulating the libjpeg v6b API/ABI" TRUE) |
|
|
|
|
option(WITH_ARITH_DEC "Include arithmetic decoding support when emulating the libjpeg v6b API/ABI" TRUE) |
|
|
|
|
set(WITH_SIMD 1) |
|
|
|
|
set(IS_LIBJPEG_TURBO_SIMD_AVAILABLE 0 PARENT_SCOPE) |
|
|
|
|
set(HAVE_LIBJPEG_TURBO_SIMD 0 PARENT_SCOPE) |
|
|
|
|
|
|
|
|
|
include(CheckCSourceCompiles) |
|
|
|
|
include(CheckIncludeFiles) |
|
|
|
@ -185,7 +185,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
message(STATUS ${WITH_LIBJPEG_TURBO_SIMD}) |
|
|
|
|
if(ENABLE_LIBJPEG_TURBO_SIMD) |
|
|
|
|
add_subdirectory(src/simd) |
|
|
|
|
if(NEON_INTRINSICS) |
|
|
|
@ -197,7 +196,7 @@ endif() |
|
|
|
|
|
|
|
|
|
if(WITH_SIMD) |
|
|
|
|
message(STATUS "SIMD extensions: ${CPU_TYPE} (WITH_SIMD = ${WITH_SIMD})") |
|
|
|
|
set(IS_LIBJPEG_TURBO_SIMD_AVAILABLE 1 PARENT_SCOPE) |
|
|
|
|
set(HAVE_LIBJPEG_TURBO_SIMD 1 PARENT_SCOPE) |
|
|
|
|
if(MSVC_IDE OR XCODE) |
|
|
|
|
set_source_files_properties(${SIMD_OBJS} PROPERTIES GENERATED 1) |
|
|
|
|
endif() |
|
|
|
|