Commit 51ebce7d authored by Kaustubh Raste's avatar Kaustubh Raste Committed by Michael Niedermayer

avcodec/mips: Cleanup unused functions

Signed-off-by: 's avatarKaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: 's avatarManojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 1fd80106
This diff is collapsed.
...@@ -351,73 +351,6 @@ static void hevc_uniwgt_copy_12w_msa(uint8_t *src, ...@@ -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, static void hevc_uniwgt_copy_16w_msa(uint8_t *src,
int32_t src_stride, int32_t src_stride,
uint8_t *dst, uint8_t *dst,
......
...@@ -192,56 +192,6 @@ static void hevc_copy_12w_msa(uint8_t *src, int32_t src_stride, ...@@ -192,56 +192,6 @@ static void hevc_copy_12w_msa(uint8_t *src, int32_t src_stride,
} }
} }
static void hevc_copy_16multx8mult_msa(uint8_t *src,
int32_t src_stride,
int16_t *dst,
int32_t dst_stride,
int32_t height,
int32_t width)
{
uint8_t *src_tmp;
int16_t *dst_tmp;
uint32_t loop_cnt, cnt;
v16i8 zero = { 0 };
v16i8 src0, src1, src2, src3, src4, src5, src6, src7;
v8i16 in0_r, in1_r, in2_r, in3_r;
v8i16 in0_l, in1_l, in2_l, in3_l;
for (cnt = (width >> 4); cnt--;) {
src_tmp = src;
dst_tmp = dst;
for (loop_cnt = (height >> 3); loop_cnt--;) {
LD_SB8(src_tmp, src_stride,
src0, src1, src2, src3, src4, src5, src6, src7);
src_tmp += (8 * src_stride);
ILVR_B4_SH(zero, src0, zero, src1, zero, src2, zero, src3,
in0_r, in1_r, in2_r, in3_r);
ILVL_B4_SH(zero, src0, zero, src1, zero, src2, zero, src3,
in0_l, in1_l, in2_l, in3_l);
SLLI_4V(in0_r, in1_r, in2_r, in3_r, 6);
SLLI_4V(in0_l, in1_l, in2_l, in3_l, 6);
ST_SH4(in0_r, in1_r, in2_r, in3_r, dst_tmp, dst_stride);
ST_SH4(in0_l, in1_l, in2_l, in3_l, (dst_tmp + 8), dst_stride);
dst_tmp += (4 * dst_stride);
ILVR_B4_SH(zero, src4, zero, src5, zero, src6, zero, src7,
in0_r, in1_r, in2_r, in3_r);
ILVL_B4_SH(zero, src4, zero, src5, zero, src6, zero, src7,
in0_l, in1_l, in2_l, in3_l);
SLLI_4V(in0_r, in1_r, in2_r, in3_r, 6);
SLLI_4V(in0_l, in1_l, in2_l, in3_l, 6);
ST_SH4(in0_r, in1_r, in2_r, in3_r, dst_tmp, dst_stride);
ST_SH4(in0_l, in1_l, in2_l, in3_l, (dst_tmp + 8), dst_stride);
dst_tmp += (4 * dst_stride);
}
src += 16;
dst += 16;
}
}
static void hevc_copy_16w_msa(uint8_t *src, int32_t src_stride, static void hevc_copy_16w_msa(uint8_t *src, int32_t src_stride,
int16_t *dst, int32_t dst_stride, int16_t *dst, int32_t dst_stride,
int32_t height) int32_t height)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment