aboutsummaryrefslogtreecommitdiff
path: root/source/convert.cc
diff options
context:
space:
mode:
Diffstat (limited to 'source/convert.cc')
-rw-r--r--source/convert.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/convert.cc b/source/convert.cc
index 15c70a65..5ba6e580 100644
--- a/source/convert.cc
+++ b/source/convert.cc
@@ -924,6 +924,14 @@ int I422ToNV21(const uint8_t* src_y,
}
}
#endif
+#if defined(HAS_MERGEUVROW_AVX512BW)
+ if (TestCpuFlag(kCpuHasAVX512BW)) {
+ MergeUVRow = MergeUVRow_Any_AVX512BW;
+ if (IS_ALIGNED(halfwidth, 32)) {
+ MergeUVRow = MergeUVRow_AVX512BW;
+ }
+ }
+#endif
#if defined(HAS_MERGEUVROW_NEON)
if (TestCpuFlag(kCpuHasNEON)) {
MergeUVRow = MergeUVRow_Any_NEON;