avcodec/mips: Improve hevc uni-w copy mc msa functions
authorKaustubh Raste <kaustubh.raste@imgtec.com>
Thu, 21 Sep 2017 08:15:34 +0000 (13:45 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Sep 2017 00:33:48 +0000 (02:33 +0200)
commit7f8417f22619366aaaad848ee2ff71be14637b7b
treec7bff86fa2a9acc3a33e4f342e7792558ddc61c3
parentd8ef5a47bba85fa147ac53a9d9523b3eca031696
avcodec/mips: Improve hevc uni-w copy mc msa functions

Load the specific destination bytes instead of MSA load and pack.
Pack the data to half word before clipping.
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>
libavcodec/mips/hevc_mc_uniw_msa.c
libavutil/mips/generic_macros_msa.h