diff options
author | Shivraj Patil <shivraj.patil@imgtec.com> | 2015-06-10 19:48:39 +0530 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-11 17:10:41 +0200 |
commit | 1d70b6fe1d9d67a35daf2ec4c653ba3eff5d31b7 (patch) | |
tree | d55198dc935acdc437ddcb6f247848d327ee80a3 /libavutil/mips | |
parent | daf1158d77438383e1d465dfe5c905d76182d2df (diff) | |
download | ffmpeg-1d70b6fe1d9d67a35daf2ec4c653ba3eff5d31b7.tar.gz |
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')
-rw-r--r-- | libavutil/mips/generic_macros_msa.h | 11 |
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 */ |