avcodec/mips: Improve hevc uni-w horiz mc msa functions
authorKaustubh Raste <kaustubh.raste@imgtec.com>
Mon, 9 Oct 2017 12:17:34 +0000 (17:47 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Oct 2017 21:58:41 +0000 (23:58 +0200)
commiteadb911643243c9c756d5a6c3d84182ad7578261
tree84227eafefab0066b9b22301c2e0fa7be9f7d1d0
parent662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a
avcodec/mips: Improve hevc uni-w horiz 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_macros_msa.h
libavcodec/mips/hevc_mc_uniw_msa.c