aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/hevc_macros_msa.h
diff options
context:
space:
mode:
authorHao Chen <chenhao@loongson.cn>2022-09-09 17:41:47 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2022-09-16 21:30:57 +0200
commitfb233771ce3205d25551df1c031eb520ca9d7a99 (patch)
treeca44aad261a383535762f1c0ce5acd367c116106 /libavcodec/mips/hevc_macros_msa.h
parentd5679d6899465450be9f0b3ebd725006e7da4e2b (diff)
downloadffmpeg-fb233771ce3205d25551df1c031eb520ca9d7a99.tar.gz
lavc/mips: Fix hevc decoding bugs on MIPS paltform.
The patch fixes the bugs that occurred when running fate-checkasm-hevc_pel on MIPS paltform. Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/hevc_macros_msa.h')
-rw-r--r--libavcodec/mips/hevc_macros_msa.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/mips/hevc_macros_msa.h b/libavcodec/mips/hevc_macros_msa.h
index ea53812b64..02c96b752b 100644
--- a/libavcodec/mips/hevc_macros_msa.h
+++ b/libavcodec/mips/hevc_macros_msa.h
@@ -52,6 +52,15 @@
out_m; \
} )
+#define HEVC_FILT_4TAP_SW(in0, in1, filt0, filt1) \
+( { \
+ v4i32 out_m; \
+ \
+ out_m = __msa_dotp_s_w((v8i16) in0, (v8i16) filt0); \
+ out_m = __msa_dpadd_s_w(out_m, (v8i16) in1, (v8i16) filt1); \
+ out_m; \
+} )
+
#define HEVC_FILT_4TAP(in0, in1, filt0, filt1) \
( { \
v4i32 out_m; \