summaryrefslogtreecommitdiff
path: root/libavutil/mips/generic_macros_msa.h
diff options
context:
space:
mode:
authorShivraj Patil <shivraj.patil@imgtec.com>2015-06-10 19:48:39 +0530
committerMichael Niedermayer <michaelni@gmx.at>2015-06-11 17:10:41 +0200
commit1d70b6fe1d9d67a35daf2ec4c653ba3eff5d31b7 (patch)
treed55198dc935acdc437ddcb6f247848d327ee80a3 /libavutil/mips/generic_macros_msa.h
parentdaf1158d77438383e1d465dfe5c905d76182d2df (diff)
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC intra prediction functions
This patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC intra prediction functions in new file h264pred_msa.c Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/mips/generic_macros_msa.h')
-rw-r--r--libavutil/mips/generic_macros_msa.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/mips/generic_macros_msa.h b/libavutil/mips/generic_macros_msa.h
index bee24e20f4..0f06c80c72 100644
--- a/libavutil/mips/generic_macros_msa.h
+++ b/libavutil/mips/generic_macros_msa.h
@@ -2307,4 +2307,15 @@
\
SW4(out0_m, out1_m, out2_m, out3_m, pdst, stride); \
}
+
+/* Description : Pack even byte elements and store byte vector in destination
+ memory
+ Arguments : Inputs - in0, in1, pdst
+*/
+#define PCKEV_ST_SB(in0, in1, pdst) \
+{ \
+ v16i8 tmp_m; \
+ tmp_m = __msa_pckev_b((v16i8) in1, (v16i8) in0); \
+ ST_SB(tmp_m, (pdst)); \
+}
#endif /* AVUTIL_MIPS_GENERIC_MACROS_MSA_H */