Skip to content

Commit 677a401

Browse files
committed
Fix undefined symbols on non-x86 platforms
Warning: Failed to load /usr/lib/vapoursynth/libneo-f3kdb.so. Error given: /usr/lib/vapoursynth/libneo-f3kdb.so: undefined symbol: process_plane_impl_sse4_16bit_interleaved
1 parent 37cd2fc commit 677a401

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

src/impl_dispatch.cpp

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,60 @@ const process_plane_impl_t* process_plane_impl_high_precision_no_dithering[] = {
88
process_plane_impl_c_high_no_dithering,
99
process_plane_impl_c_high_no_dithering,
1010
process_plane_impl_c_high_no_dithering,
11+
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
1112
process_plane_impl_sse4_high_no_dithering,
1213
process_plane_impl_avx2_high_no_dithering,
13-
process_plane_impl_avx512_high_no_dithering
14+
process_plane_impl_avx512_high_no_dithering,
15+
#else
16+
nullptr,
17+
nullptr,
18+
nullptr,
19+
#endif
1420
};
1521

1622
const process_plane_impl_t* process_plane_impl_high_precision_ordered_dithering[] = {
1723
process_plane_impl_c_high_ordered_dithering,
1824
process_plane_impl_c_high_ordered_dithering,
1925
process_plane_impl_c_high_ordered_dithering,
26+
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
2027
process_plane_impl_sse4_high_ordered_dithering,
2128
process_plane_impl_avx2_high_ordered_dithering,
22-
process_plane_impl_avx512_high_ordered_dithering
29+
process_plane_impl_avx512_high_ordered_dithering,
30+
#else
31+
nullptr,
32+
nullptr,
33+
nullptr,
34+
#endif
2335
};
2436

2537
const process_plane_impl_t* process_plane_impl_high_precision_floyd_steinberg_dithering[] = {
2638
process_plane_impl_c_high_floyd_steinberg_dithering,
2739
process_plane_impl_c_high_floyd_steinberg_dithering,
2840
process_plane_impl_c_high_floyd_steinberg_dithering,
41+
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
2942
process_plane_impl_sse4_high_floyd_steinberg_dithering,
3043
process_plane_impl_avx2_high_floyd_steinberg_dithering,
31-
process_plane_impl_avx512_high_floyd_steinberg_dithering
44+
process_plane_impl_avx512_high_floyd_steinberg_dithering,
45+
#else
46+
nullptr,
47+
nullptr,
48+
nullptr,
49+
#endif
3250
};
3351

3452
const process_plane_impl_t* process_plane_impl_16bit_interleaved[] = {
3553
process_plane_impl_c_16bit_interleaved,
3654
process_plane_impl_c_16bit_interleaved,
3755
process_plane_impl_c_16bit_interleaved,
56+
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
3857
process_plane_impl_sse4_16bit_interleaved,
3958
process_plane_impl_avx2_16bit_interleaved,
40-
process_plane_impl_avx512_16bit_interleaved
59+
process_plane_impl_avx512_16bit_interleaved,
60+
#else
61+
nullptr,
62+
nullptr,
63+
nullptr,
64+
#endif
4165
};
4266

4367

0 commit comments

Comments
 (0)