1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-07 11:13:41 +02:00

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>
This commit is contained in:
Kaustubh Raste 2017-10-31 18:30:40 +05:30 committed by Michael Niedermayer
parent 72dbc610be
commit 48d77d5cd4
2 changed files with 958 additions and 635 deletions

View File

@ -80,6 +80,15 @@
out_m; \ 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) \ #define HEVC_FILT_4TAP(in0, in1, filt0, filt1) \
( { \ ( { \
v4i32 out_m; \ v4i32 out_m; \

File diff suppressed because it is too large Load Diff