aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/hevc_macros_msa.h
diff options
context:
space:
mode:
authorKaustubh Raste <kaustubh.raste@imgtec.com>2017-10-31 18:30:40 +0530
committerMichael Niedermayer <michael@niedermayer.cc>2017-11-03 00:56:30 +0100
commit48d77d5cd4ac0858e1e9abf387f739a5c773200f (patch)
tree76755641b7cd42e7b8e83d55bd73d87cab6d0b73 /libavcodec/mips/hevc_macros_msa.h
parent72dbc610be3272ba36603f78a39cc2d2d8fe0cc3 (diff)
downloadffmpeg-48d77d5cd4ac0858e1e9abf387f739a5c773200f.tar.gz
avcodec/mips: Improve hevc uni weighted hv mc msa functions
Use immediate unsigned saturation for clip to max saving one vector register. Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com> Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com> 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 7dcfea03b4..27c69ff89a 100644
--- a/libavcodec/mips/hevc_macros_msa.h
+++ b/libavcodec/mips/hevc_macros_msa.h
@@ -80,6 +80,15 @@
out_m; \
} )
+#define HEVC_FILT_4TAP_SH(in0, in1, filt0, filt1) \
+( { \
+ v8i16 out_m; \
+ \
+ out_m = __msa_dotp_s_h((v16i8) in0, (v16i8) filt0); \
+ out_m = __msa_dpadd_s_h(out_m, (v16i8) in1, (v16i8) filt1); \
+ out_m; \
+} )
+
#define HEVC_FILT_4TAP(in0, in1, filt0, filt1) \
( { \
v4i32 out_m; \