29 #define VP8_IDCT_1D_W(in0, in1, in2, in3, out0, out1, out2, out3) \
31 v4i32 a1_m, b1_m, c1_m, d1_m; \
32 v4i32 c_tmp1_m, c_tmp2_m, d_tmp1_m, d_tmp2_m; \
33 v4i32 const_cospi8sqrt2minus1_m, sinpi8_sqrt2_m; \
35 const_cospi8sqrt2minus1_m = __msa_fill_w(cospi8sqrt2minus1); \
36 sinpi8_sqrt2_m = __msa_fill_w(sinpi8sqrt2); \
39 c_tmp1_m = ((in1) * sinpi8_sqrt2_m) >> 16; \
40 c_tmp2_m = in3 + (((in3) * const_cospi8sqrt2minus1_m) >> 16); \
41 c1_m = c_tmp1_m - c_tmp2_m; \
42 d_tmp1_m = (in1) + (((in1) * const_cospi8sqrt2minus1_m) >> 16); \
43 d_tmp2_m = ((in3) * sinpi8_sqrt2_m) >> 16; \
44 d1_m = d_tmp1_m + d_tmp2_m; \
45 BUTTERFLY_4(a1_m, b1_m, c1_m, d1_m, out0, out1, out2, out3); \
51 v4i32 in0, in1, in2, in3, hz0, hz1, hz2, hz3, vt0, vt1, vt2, vt3;
52 v4i32 res0, res1, res2, res3;
54 v16i8 pred0, pred1, pred2, pred3, dest0, dest1;
55 v16i8
mask = { 0, 4, 8, 12, 16, 20, 24, 28, 0, 0, 0, 0, 0, 0, 0, 0 };
70 res0, res1, res2, res3);
72 res0, res1, res2, res3);
73 ADD4(res0, vt0, res1, vt1, res2, vt2, res3, vt3, res0, res1, res2, res3);
88 v8i16 res0, res1, res2, res3;
90 v16i8 pred0, pred1, pred2, pred3, dest0, dest1;
91 v16i8
mask = { 0, 2, 4, 6, 16, 18, 20, 22, 0, 0, 0, 0, 0, 0, 0, 0 };
93 vec = __msa_fill_h(in_dc[0]);
94 vec = __msa_srari_h(vec, 3);
97 res0, res1, res2, res3);
98 ADD4(res0, vec, res1, vec, res2, vec, res3, vec, res0, res1, res2, res3);
109 int16_t *mb_dq_coeff = &
block[0][0][0];
110 v8i16 input0, input1;
111 v4i32 in0, in1, in2, in3,
a1, b1,
c1, d1;
112 v4i32 hz0, hz1, hz2, hz3, vt0, vt1, vt2, vt3;
124 ADD4(vt0, 3, vt1, 3, vt2, 3, vt3, 3, vt0, vt1, vt2, vt3);
125 SRA_4V(vt0, vt1, vt2, vt3, 3);
126 mb_dq_coeff[0] = __msa_copy_s_h((v8i16) vt0, 0);
127 mb_dq_coeff[16] = __msa_copy_s_h((v8i16) vt1, 0);
128 mb_dq_coeff[32] = __msa_copy_s_h((v8i16) vt2, 0);
129 mb_dq_coeff[48] = __msa_copy_s_h((v8i16) vt3, 0);
130 mb_dq_coeff[64] = __msa_copy_s_h((v8i16) vt0, 2);
131 mb_dq_coeff[80] = __msa_copy_s_h((v8i16) vt1, 2);
132 mb_dq_coeff[96] = __msa_copy_s_h((v8i16) vt2, 2);
133 mb_dq_coeff[112] = __msa_copy_s_h((v8i16) vt3, 2);
134 mb_dq_coeff[128] = __msa_copy_s_h((v8i16) vt0, 4);
135 mb_dq_coeff[144] = __msa_copy_s_h((v8i16) vt1, 4);
136 mb_dq_coeff[160] = __msa_copy_s_h((v8i16) vt2, 4);
137 mb_dq_coeff[176] = __msa_copy_s_h((v8i16) vt3, 4);
138 mb_dq_coeff[192] = __msa_copy_s_h((v8i16) vt0, 6);
139 mb_dq_coeff[208] = __msa_copy_s_h((v8i16) vt1, 6);
140 mb_dq_coeff[224] = __msa_copy_s_h((v8i16) vt2, 6);
141 mb_dq_coeff[240] = __msa_copy_s_h((v8i16) vt3, 6);
143 memset(
input, 0, 4 * 4 *
sizeof(int16_t));