summaryrefslogtreecommitdiff
path: root/libavfilter/x86
diff options
context:
space:
mode:
authorMark Reid <mindmark@gmail.com>2021-10-10 23:10:26 -0700
committerPaul B Mahol <onemda@gmail.com>2021-10-13 18:01:21 +0200
commit3ee7250116a362b64a403ef081e47cd68c59791a (patch)
tree1a826870e9461b1bb30c10f6d02bd0d2415ce6bf /libavfilter/x86
parent871fee82e18442b419841234b6722e5b6c3aebcc (diff)
downloadffmpeg-3ee7250116a362b64a403ef081e47cd68c59791a.tar.gz
avfilter/vf_lut3d: fix building with --disable-optimizations
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_lut3d_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/x86/vf_lut3d_init.c b/libavfilter/x86/vf_lut3d_init.c
index 3b3dd18680..db1a152f51 100644
--- a/libavfilter/x86/vf_lut3d_init.c
+++ b/libavfilter/x86/vf_lut3d_init.c
@@ -48,9 +48,11 @@ static int interp_##name##_##format##_##opt(AVFilterContext *ctx, void *arg, int
DEFINE_INTERP_FUNC(tetrahedral, pf32, avx)
DEFINE_INTERP_FUNC(tetrahedral, p16, avx)
#endif
+#if HAVE_SSE2_EXTERNAL
DEFINE_INTERP_FUNC(tetrahedral, pf32, sse2)
DEFINE_INTERP_FUNC(tetrahedral, p16, sse2)
#endif
+#endif
av_cold void ff_lut3d_init_x86(LUT3DContext *s, const AVPixFmtDescriptor *desc)
@@ -78,11 +80,13 @@ av_cold void ff_lut3d_init_x86(LUT3DContext *s, const AVPixFmtDescriptor *desc)
}
#endif
} else if (EXTERNAL_SSE2(cpu_flags) && s->interpolation == INTERPOLATE_TETRAHEDRAL && planar) {
+#if HAVE_SSE2_EXTERNAL
if (isfloat) {
s->interp = interp_tetrahedral_pf32_sse2;
} else if (depth == 16) {
s->interp = interp_tetrahedral_p16_sse2;
}
+#endif
}
#endif
}