summaryrefslogtreecommitdiff
path: root/libavcodec/x86/hevc_mc.asm
diff options
context:
space:
mode:
authorWu Jianhua <jianhua.wu@intel.com>2022-03-11 15:52:11 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-04-24 14:47:01 +0800
commit6fbb8cc8ad8c406cec0d0eb0bb3078c2929109c8 (patch)
tree96935f195a37f06201369c007d4f445f7c301670 /libavcodec/x86/hevc_mc.asm
parentc1790b60d643100266192c2bbaefb2c76eba6e5a (diff)
downloadffmpeg-6fbb8cc8ad8c406cec0d0eb0bb3078c2929109c8.tar.gz
avcodec/x86/hevc_mc: add qpel_h4_8_avx512icl
ff_hevc_put_hevc_qpel_h4_8_sse4 993694 ff_hevc_put_hevc_qpel_h4_8_avx512icl 686647 Reviewed-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
Diffstat (limited to 'libavcodec/x86/hevc_mc.asm')
-rw-r--r--libavcodec/x86/hevc_mc.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/x86/hevc_mc.asm b/libavcodec/x86/hevc_mc.asm
index 4e39cdd7fe..ff59ae3509 100644
--- a/libavcodec/x86/hevc_mc.asm
+++ b/libavcodec/x86/hevc_mc.asm
@@ -87,6 +87,7 @@ QPEL_TABLE 12, 4, w, sse4
QPEL_TABLE 8,16, b, avx2
QPEL_TABLE 10, 8, w, avx2
+QPEL_TABLE 4, 1, b, avx512icl_h
QPEL_TABLE 8, 1, b, avx512icl_h
QPEL_TABLE 8, 1, d, avx512icl_v
QPEL_TABLE 16, 1, b, avx512icl_h
@@ -1754,7 +1755,12 @@ cglobal hevc_put_hevc_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp
QPEL_LOAD_SHUF 2, 3
.loop:
QPEL_H_LOAD_COMPUTE 6, src
+%if %1 == 4
+ vpmovdw xm6, m6
+ movq [dstq], xm6
+%else
vpmovdw [dstq], m6
+%endif
LOOP_END dst, src, srcstride
RET
%endmacro
@@ -1822,6 +1828,9 @@ cglobal hevc_put_hevc_qpel_hv%1_%2, 6, 7, 27, dst, src, srcstride, height, mx, m
%if ARCH_X86_64
%if HAVE_AVX512ICL_EXTERNAL
+INIT_XMM avx512icl
+HEVC_PUT_HEVC_QPEL_AVX512ICL 4, 8
+
INIT_YMM avx512icl
HEVC_PUT_HEVC_QPEL_AVX512ICL 8, 8
HEVC_PUT_HEVC_QPEL_HV_AVX512ICL 8, 8