File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ message(STATUS "Enable Intel HW decoding: ${ENABLE_MFX}.")
23
23
option (ENABLE_XML2S "Enable DNXHD support" ON )
24
24
message (STATUS "Enable DNXHD support: ${ENABLE_XML2S} ." )
25
25
26
+ cmake_host_system_information (RESULT sse2 QUERY HAS_SSE2)
27
+ option (ENABLE_SSE2 "Enable SSE2 support" ${sse2} )
28
+ message (STATUS "Enable SSE2 support: ${ENABLE_SSE2} ." )
29
+
26
30
set (sources
27
31
${CMAKE_CURRENT_SOURCE_DIR} /common/decode.c
28
32
${CMAKE_CURRENT_SOURCE_DIR} /common/libavsmash.c
@@ -40,15 +44,11 @@ set(sources
40
44
${CMAKE_CURRENT_SOURCE_DIR} /common/xxhash.c
41
45
)
42
46
43
- cmake_host_system_information (RESULT sse2 QUERY HAS_SSE2)
44
- if (${sse2} )
47
+ if (ENABLE_SSE2)
45
48
set (sources
46
49
${sources}
47
50
${CMAKE_CURRENT_SOURCE_DIR} /common/planar_yuv_sse2.c
48
51
)
49
- message (STATUS "SSE2 enabled." )
50
- else ()
51
- message (STATUS "SSE2 disabled." )
52
52
endif ()
53
53
54
54
if (BUILD_AVS_PLUGIN)
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ If you have issues about the file names save the AviSynth script (`.avs`) as UTF
19
19
| ENABLE_DAV1D | Enable dav1d AV1 decoding | ON |
20
20
| ENABLE_MFX | Enable Intel HW decoding | ON |
21
21
| ENABLE_XML2S | Enable DNXHD support | ON |
22
+ | ENABLE_SSE2 | Force SSE2 | ON |
You can’t perform that action at this time.
0 commit comments