Go to the documentation of this file.
57 #if !HAVE_MIPS32R6 && !HAVE_MIPS64R6
58 void ff_hb_fir_filter_mips(
float *
out,
const float fir_coef[
HB_FIR_SIZE + 1],
69 float * p_data = (
data+
i);
76 "mtc1 $zero, %[output] \n\t"
77 "lwc1 $f0, 0(%[p_data]) \n\t"
78 "lwc1 $f1, 0(%[fir_coef]) \n\t"
79 "lwc1 $f2, 4(%[p_data]) \n\t"
80 "madd.s %[output], %[output], $f0, $f1 \n\t"
81 "lwc1 $f3, 4(%[fir_coef]) \n\t"
82 "lwc1 $f4, 8(%[p_data]) \n\t"
83 "madd.s %[output], %[output], $f2, $f3 \n\t"
84 "lwc1 $f5, 8(%[fir_coef]) \n\t"
86 "lwc1 $f0, 12(%[p_data]) \n\t"
87 "lwc1 $f1, 12(%[fir_coef]) \n\t"
88 "madd.s %[output], %[output], $f4, $f5 \n\t"
89 "lwc1 $f2, 16(%[p_data]) \n\t"
90 "madd.s %[output], %[output], $f0, $f1 \n\t"
91 "lwc1 $f3, 16(%[fir_coef]) \n\t"
92 "lwc1 $f4, 20(%[p_data]) \n\t"
93 "lwc1 $f5, 20(%[fir_coef]) \n\t"
94 "madd.s %[output], %[output], $f2, $f3 \n\t"
96 "lwc1 $f0, 24(%[p_data]) \n\t"
97 "lwc1 $f1, 24(%[fir_coef]) \n\t"
98 "lwc1 $f2, 28(%[p_data]) \n\t"
99 "madd.s %[output], %[output], $f4, $f5 \n\t"
100 "lwc1 $f3, 28(%[fir_coef]) \n\t"
101 "madd.s %[output], %[output], $f0, $f1 \n\t"
102 "lwc1 $f4, 32(%[p_data]) \n\t"
103 "madd.s %[output], %[output], $f2, $f3 \n\t"
104 "lwc1 $f5, 32(%[fir_coef]) \n\t"
105 "madd.s %[output], %[output], $f4, $f5 \n\t"
107 "lwc1 $f0, 36(%[p_data]) \n\t"
108 "lwc1 $f1, 36(%[fir_coef]) \n\t"
109 "lwc1 $f2, 40(%[p_data]) \n\t"
110 "lwc1 $f3, 40(%[fir_coef]) \n\t"
111 "madd.s %[output], %[output], $f0, $f1 \n\t"
112 "lwc1 $f4, 44(%[p_data]) \n\t"
113 "lwc1 $f5, 44(%[fir_coef]) \n\t"
114 "madd.s %[output], %[output], $f2, $f3 \n\t"
116 "lwc1 $f0, 48(%[p_data]) \n\t"
117 "lwc1 $f1, 48(%[fir_coef]) \n\t"
118 "lwc1 $f2, 52(%[p_data]) \n\t"
119 "madd.s %[output], %[output], $f4, $f5 \n\t"
120 "lwc1 $f3, 52(%[fir_coef]) \n\t"
121 "lwc1 $f4, 56(%[p_data]) \n\t"
122 "madd.s %[output], %[output], $f0, $f1 \n\t"
123 "lwc1 $f5, 56(%[fir_coef]) \n\t"
124 "madd.s %[output], %[output], $f2, $f3 \n\t"
126 "lwc1 $f0, 60(%[p_data]) \n\t"
127 "lwc1 $f1, 60(%[fir_coef]) \n\t"
128 "lwc1 $f2, 64(%[p_data]) \n\t"
129 "madd.s %[output], %[output], $f4, $f5 \n\t"
130 "lwc1 $f3, 64(%[fir_coef]) \n\t"
131 "madd.s %[output], %[output], $f0, $f1 \n\t"
132 "lwc1 $f4, 68(%[p_data]) \n\t"
133 "madd.s %[output], %[output], $f2, $f3 \n\t"
134 "lwc1 $f5, 68(%[fir_coef]) \n\t"
135 "madd.s %[output], %[output], $f4, $f5 \n\t"
137 "lwc1 $f0, 72(%[p_data]) \n\t"
138 "lwc1 $f1, 72(%[fir_coef]) \n\t"
139 "lwc1 $f2, 76(%[p_data]) \n\t"
140 "lwc1 $f3, 76(%[fir_coef]) \n\t"
141 "madd.s %[output], %[output], $f0, $f1 \n\t"
142 "lwc1 $f4, 80(%[p_data]) \n\t"
143 "lwc1 $f5, 80(%[fir_coef]) \n\t"
144 "madd.s %[output], %[output], $f2, $f3 \n\t"
146 "lwc1 $f0, 84(%[p_data]) \n\t"
147 "lwc1 $f1, 84(%[fir_coef]) \n\t"
148 "lwc1 $f2, 88(%[p_data]) \n\t"
149 "madd.s %[output], %[output], $f4, $f5 \n\t"
150 "lwc1 $f3, 88(%[fir_coef]) \n\t"
151 "lwc1 $f4, 92(%[p_data]) \n\t"
152 "madd.s %[output], %[output], $f0, $f1 \n\t"
153 "lwc1 $f5, 92(%[fir_coef]) \n\t"
154 "madd.s %[output], %[output], $f2, $f3 \n\t"
156 "lwc1 $f0, 96(%[p_data]) \n\t"
157 "lwc1 $f1, 96(%[fir_coef]) \n\t"
158 "lwc1 $f2, 100(%[p_data]) \n\t"
159 "madd.s %[output], %[output], $f4, $f5 \n\t"
160 "lwc1 $f3, 100(%[fir_coef]) \n\t"
161 "lwc1 $f4, 104(%[p_data]) \n\t"
162 "madd.s %[output], %[output], $f0, $f1 \n\t"
163 "lwc1 $f5, 104(%[fir_coef]) \n\t"
164 "madd.s %[output], %[output], $f2, $f3 \n\t"
166 "lwc1 $f0, 108(%[p_data]) \n\t"
167 "lwc1 $f1, 108(%[fir_coef]) \n\t"
168 "madd.s %[output], %[output], $f4, $f5 \n\t"
169 "lwc1 $f2, 112(%[p_data]) \n\t"
170 "lwc1 $f3, 112(%[fir_coef]) \n\t"
171 "madd.s %[output], %[output], $f0, $f1 \n\t"
172 "lwc1 $f4, 116(%[p_data]) \n\t"
173 "lwc1 $f5, 116(%[fir_coef]) \n\t"
174 "lwc1 $f0, 120(%[p_data]) \n\t"
175 "madd.s %[output], %[output], $f2, $f3 \n\t"
176 "lwc1 $f1, 120(%[fir_coef]) \n\t"
177 "madd.s %[output], %[output], $f4, $f5 \n\t"
178 "madd.s %[output], %[output], $f0, $f1 \n\t"
181 : [fir_coef]
"r"(fir_coef), [p_data]
"r"(p_data)
182 :
"$f0",
"$f1",
"$f2",
"$f3",
"$f4",
"$f5",
"memory"
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce output
#define AMRWB_SFR_SIZE_16k
samples per subframe at 16 kHz
#define i(width, name, range_min, range_max)
__asm__(".macro parse_r var r\n\t" "\\var = -1\n\t" _IFC_REG(0) _IFC_REG(1) _IFC_REG(2) _IFC_REG(3) _IFC_REG(4) _IFC_REG(5) _IFC_REG(6) _IFC_REG(7) _IFC_REG(8) _IFC_REG(9) _IFC_REG(10) _IFC_REG(11) _IFC_REG(12) _IFC_REG(13) _IFC_REG(14) _IFC_REG(15) _IFC_REG(16) _IFC_REG(17) _IFC_REG(18) _IFC_REG(19) _IFC_REG(20) _IFC_REG(21) _IFC_REG(22) _IFC_REG(23) _IFC_REG(24) _IFC_REG(25) _IFC_REG(26) _IFC_REG(27) _IFC_REG(28) _IFC_REG(29) _IFC_REG(30) _IFC_REG(31) ".iflt \\var\n\t" ".error \"Unable to parse register name \\r\"\n\t" ".endif\n\t" ".endm")
#define HB_FIR_SIZE
amount of past data needed by HB filters