diff options
author | Kaustubh Raste <kaustubh.raste@imgtec.com> | 2017-10-05 13:15:06 +0530 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-06 02:42:49 +0200 |
commit | 51ebce7d7d614b15a9f27c67e419b4e2859335d7 (patch) | |
tree | 35ad360ee46eab2d0a5d1bee095f6c6a64eb2e5d /libavcodec/mips/hevc_mc_uniw_msa.c | |
parent | 1fd80106be3dca9fa0ea13fb364c8d221bd27c15 (diff) | |
download | ffmpeg-51ebce7d7d614b15a9f27c67e419b4e2859335d7.tar.gz |
avcodec/mips: Cleanup unused functions
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>
Diffstat (limited to 'libavcodec/mips/hevc_mc_uniw_msa.c')
-rw-r--r-- | libavcodec/mips/hevc_mc_uniw_msa.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/libavcodec/mips/hevc_mc_uniw_msa.c b/libavcodec/mips/hevc_mc_uniw_msa.c index d18441957f..38a8844a6e 100644 --- a/libavcodec/mips/hevc_mc_uniw_msa.c +++ b/libavcodec/mips/hevc_mc_uniw_msa.c @@ -351,73 +351,6 @@ static void hevc_uniwgt_copy_12w_msa(uint8_t *src, } } -static void hevc_uniwgt_copy_16multx4mult_msa(uint8_t *src, - int32_t src_stride, - uint8_t *dst, - int32_t dst_stride, - int32_t height, - int32_t weight, - int32_t offset, - int32_t rnd_val, - int32_t width) -{ - uint32_t loop_cnt, cnt; - uint8_t *src_tmp; - uint8_t *dst_tmp; - v16i8 src0, src1, src2, src3; - v8i16 tmp0, tmp1, tmp2, tmp3; - v4i32 dst0_r, dst1_r, dst2_r, dst3_r, dst0_l, dst1_l, dst2_l, dst3_l; - v16i8 zero = { 0 }; - v4i32 weight_vec, offset_vec, rnd_vec; - - weight = weight & 0x0000FFFF; - weight_vec = __msa_fill_w(weight); - offset_vec = __msa_fill_w(offset); - rnd_vec = __msa_fill_w(rnd_val); - - for (cnt = width >> 4; cnt--;) { - src_tmp = src; - dst_tmp = dst; - - for (loop_cnt = height >> 2; loop_cnt--;) { - LD_SB4(src_tmp, src_stride, src0, src1, src2, src3); - src_tmp += (4 * src_stride); - ILVR_B2_SH(zero, src0, zero, src1, tmp0, tmp1); - ILVL_B2_SH(zero, src0, zero, src1, tmp2, tmp3); - - SLLI_4V(tmp0, tmp1, tmp2, tmp3, 6); - HEVC_UNIW_RND_CLIP4(tmp0, tmp1, tmp2, tmp3, - weight_vec, offset_vec, rnd_vec, - dst0_r, dst1_r, dst2_r, dst3_r, - dst0_l, dst1_l, dst2_l, dst3_l); - - HEVC_PCK_SW_SB8(dst0_l, dst0_r, dst2_l, dst2_r, - dst1_l, dst1_r, dst3_l, dst3_r, dst0_r, dst1_r); - - ST_SW2(dst0_r, dst1_r, dst_tmp, dst_stride); - dst_tmp += (2 * dst_stride); - - ILVR_B2_SH(zero, src2, zero, src3, tmp0, tmp1); - ILVL_B2_SH(zero, src2, zero, src3, tmp2, tmp3); - - SLLI_4V(tmp0, tmp1, tmp2, tmp3, 6); - HEVC_UNIW_RND_CLIP4(tmp0, tmp1, tmp2, tmp3, - weight_vec, offset_vec, rnd_vec, - dst0_r, dst1_r, dst2_r, dst3_r, - dst0_l, dst1_l, dst2_l, dst3_l); - - HEVC_PCK_SW_SB8(dst0_l, dst0_r, dst2_l, dst2_r, - dst1_l, dst1_r, dst3_l, dst3_r, dst0_r, dst1_r); - - ST_SW2(dst0_r, dst1_r, dst_tmp, dst_stride); - dst_tmp += (2 * dst_stride); - } - - src += 16; - dst += 16; - } -} - static void hevc_uniwgt_copy_16w_msa(uint8_t *src, int32_t src_stride, uint8_t *dst, |