FFmpeg
ac3dsp_mips.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012
3  * MIPS Technologies, Inc., California.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the MIPS Technologies, Inc., nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27  * SUCH DAMAGE.
28  *
29  * Authors: Branimir Vasic (bvasic@mips.com)
30  * Nedeljko Babic (nbabic@mips.com)
31  *
32  * Various AC-3 DSP Utils optimized for MIPS
33  *
34  * This file is part of FFmpeg.
35  *
36  * FFmpeg is free software; you can redistribute it and/or
37  * modify it under the terms of the GNU Lesser General Public
38  * License as published by the Free Software Foundation; either
39  * version 2.1 of the License, or (at your option) any later version.
40  *
41  * FFmpeg is distributed in the hope that it will be useful,
42  * but WITHOUT ANY WARRANTY; without even the implied warranty of
43  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
44  * Lesser General Public License for more details.
45  *
46  * You should have received a copy of the GNU Lesser General Public
47  * License along with FFmpeg; if not, write to the Free Software
48  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
49  */
50 
51 /**
52  * @file
53  * Reference: libavcodec/ac3dsp.c
54  */
55 
56 #include <stddef.h>
57 
58 #include "config.h"
59 #include "libavcodec/ac3dsp.h"
60 #include "libavcodec/ac3.h"
61 #include "libavcodec/ac3tab.h"
62 #include "libavutil/mips/asmdefs.h"
63 
64 #if HAVE_INLINE_ASM
65 #if HAVE_MIPSDSP
66 static void ac3_bit_alloc_calc_bap_mips(int16_t *mask, int16_t *psd,
67  int start, int end,
68  int snr_offset, int floor,
69  const uint8_t *bap_tab, uint8_t *bap)
70 {
71  int band, band_end, cond;
72  int m, address1, address2;
73  int16_t *psd1, *psd_end;
74  uint8_t *bap1;
75 
76  if (snr_offset == -960) {
77  memset(bap, 0, AC3_MAX_COEFS);
78  return;
79  }
80 
81  psd1 = &psd[start];
82  bap1 = &bap[start];
83  band = ff_ac3_bin_to_band_tab[start];
84 
85  do {
86  m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor;
87  band_end = ff_ac3_band_start_tab[++band];
88  band_end = FFMIN(band_end, end);
89  psd_end = psd + band_end - 1;
90 
91  __asm__ volatile (
92  "slt %[cond], %[psd1], %[psd_end] \n\t"
93  "beqz %[cond], 1f \n\t"
94  "2: \n\t"
95  "lh %[address1], 0(%[psd1]) \n\t"
96  "lh %[address2], 2(%[psd1]) \n\t"
97  PTR_ADDIU " %[psd1], %[psd1], 4 \n\t"
98  "subu %[address1], %[address1], %[m] \n\t"
99  "sra %[address1], %[address1], 5 \n\t"
100  "addiu %[address1], %[address1], -32 \n\t"
101  "shll_s.w %[address1], %[address1], 26 \n\t"
102  "subu %[address2], %[address2], %[m] \n\t"
103  "sra %[address2], %[address2], 5 \n\t"
104  "sra %[address1], %[address1], 26 \n\t"
105  "addiu %[address1], %[address1], 32 \n\t"
106  "lbux %[address1], %[address1](%[bap_tab]) \n\t"
107  "addiu %[address2], %[address2], -32 \n\t"
108  "shll_s.w %[address2], %[address2], 26 \n\t"
109  "sb %[address1], 0(%[bap1]) \n\t"
110  "slt %[cond], %[psd1], %[psd_end] \n\t"
111  "sra %[address2], %[address2], 26 \n\t"
112  "addiu %[address2], %[address2], 32 \n\t"
113  "lbux %[address2], %[address2](%[bap_tab]) \n\t"
114  "sb %[address2], 1(%[bap1]) \n\t"
115  PTR_ADDIU " %[bap1], %[bap1], 2 \n\t"
116  "bnez %[cond], 2b \n\t"
117  PTR_ADDIU " %[psd_end], %[psd_end], 2 \n\t"
118  "slt %[cond], %[psd1], %[psd_end] \n\t"
119  "beqz %[cond], 3f \n\t"
120  "1: \n\t"
121  "lh %[address1], 0(%[psd1]) \n\t"
122  PTR_ADDIU " %[psd1], %[psd1], 2 \n\t"
123  "subu %[address1], %[address1], %[m] \n\t"
124  "sra %[address1], %[address1], 5 \n\t"
125  "addiu %[address1], %[address1], -32 \n\t"
126  "shll_s.w %[address1], %[address1], 26 \n\t"
127  "sra %[address1], %[address1], 26 \n\t"
128  "addiu %[address1], %[address1], 32 \n\t"
129  "lbux %[address1], %[address1](%[bap_tab]) \n\t"
130  "sb %[address1], 0(%[bap1]) \n\t"
131  PTR_ADDIU " %[bap1], %[bap1], 1 \n\t"
132  "3: \n\t"
133 
134  : [address1]"=&r"(address1), [address2]"=&r"(address2),
135  [cond]"=&r"(cond), [bap1]"+r"(bap1),
136  [psd1]"+r"(psd1), [psd_end]"+r"(psd_end)
137  : [m]"r"(m), [bap_tab]"r"(bap_tab)
138  : "memory"
139  );
140  } while (end > band_end);
141 }
142 
143 static void ac3_update_bap_counts_mips(uint16_t mant_cnt[16], uint8_t *bap,
144  int len)
145 {
146  void *temp0, *temp2, *temp4, *temp5, *temp6, *temp7;
147  int temp1, temp3;
148 
149  __asm__ volatile (
150  "andi %[temp3], %[len], 3 \n\t"
151  PTR_ADDU "%[temp2], %[bap], %[len] \n\t"
152  PTR_ADDU "%[temp4], %[bap], %[temp3] \n\t"
153  "beq %[temp2], %[temp4], 4f \n\t"
154  "1: \n\t"
155  "lbu %[temp0], -1(%[temp2]) \n\t"
156  "lbu %[temp5], -2(%[temp2]) \n\t"
157  "lbu %[temp6], -3(%[temp2]) \n\t"
158  "sll %[temp0], %[temp0], 1 \n\t"
159  PTR_ADDU "%[temp0], %[mant_cnt], %[temp0] \n\t"
160  "sll %[temp5], %[temp5], 1 \n\t"
161  PTR_ADDU "%[temp5], %[mant_cnt], %[temp5] \n\t"
162  "lhu %[temp1], 0(%[temp0]) \n\t"
163  "sll %[temp6], %[temp6], 1 \n\t"
164  PTR_ADDU "%[temp6], %[mant_cnt], %[temp6] \n\t"
165  "addiu %[temp1], %[temp1], 1 \n\t"
166  "sh %[temp1], 0(%[temp0]) \n\t"
167  "lhu %[temp1], 0(%[temp5]) \n\t"
168  "lbu %[temp7], -4(%[temp2]) \n\t"
169  PTR_ADDIU "%[temp2],%[temp2], -4 \n\t"
170  "addiu %[temp1], %[temp1], 1 \n\t"
171  "sh %[temp1], 0(%[temp5]) \n\t"
172  "lhu %[temp1], 0(%[temp6]) \n\t"
173  "sll %[temp7], %[temp7], 1 \n\t"
174  PTR_ADDU "%[temp7], %[mant_cnt], %[temp7] \n\t"
175  "addiu %[temp1], %[temp1],1 \n\t"
176  "sh %[temp1], 0(%[temp6]) \n\t"
177  "lhu %[temp1], 0(%[temp7]) \n\t"
178  "addiu %[temp1], %[temp1], 1 \n\t"
179  "sh %[temp1], 0(%[temp7]) \n\t"
180  "bne %[temp2], %[temp4], 1b \n\t"
181  "4: \n\t"
182  "beqz %[temp3], 2f \n\t"
183  "3: \n\t"
184  "addiu %[temp3], %[temp3], -1 \n\t"
185  "lbu %[temp0], -1(%[temp2]) \n\t"
186  PTR_ADDIU "%[temp2],%[temp2], -1 \n\t"
187  "sll %[temp0], %[temp0], 1 \n\t"
188  PTR_ADDU "%[temp0], %[mant_cnt], %[temp0] \n\t"
189  "lhu %[temp1], 0(%[temp0]) \n\t"
190  "addiu %[temp1], %[temp1], 1 \n\t"
191  "sh %[temp1], 0(%[temp0]) \n\t"
192  "bgtz %[temp3], 3b \n\t"
193  "2: \n\t"
194 
195  : [temp0] "=&r" (temp0), [temp1] "=&r" (temp1),
196  [temp2] "=&r" (temp2), [temp3] "=&r" (temp3),
197  [temp4] "=&r" (temp4), [temp5] "=&r" (temp5),
198  [temp6] "=&r" (temp6), [temp7] "=&r" (temp7)
199  : [len] "r" (len), [bap] "r" (bap),
200  [mant_cnt] "r" (mant_cnt)
201  : "memory"
202  );
203 }
204 #endif
205 
206 #if HAVE_MIPSFPU
207 #if !HAVE_MIPS32R6 && !HAVE_MIPS64R6
208 static void float_to_fixed24_mips(int32_t *dst, const float *src, size_t len)
209 {
210  const float scale = 1 << 24;
211  float src0, src1, src2, src3, src4, src5, src6, src7;
212  int temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
213 
214  do {
215  __asm__ volatile (
216  "lwc1 %[src0], 0(%[src]) \n\t"
217  "lwc1 %[src1], 4(%[src]) \n\t"
218  "lwc1 %[src2], 8(%[src]) \n\t"
219  "lwc1 %[src3], 12(%[src]) \n\t"
220  "lwc1 %[src4], 16(%[src]) \n\t"
221  "lwc1 %[src5], 20(%[src]) \n\t"
222  "lwc1 %[src6], 24(%[src]) \n\t"
223  "lwc1 %[src7], 28(%[src]) \n\t"
224  "mul.s %[src0], %[src0], %[scale] \n\t"
225  "mul.s %[src1], %[src1], %[scale] \n\t"
226  "mul.s %[src2], %[src2], %[scale] \n\t"
227  "mul.s %[src3], %[src3], %[scale] \n\t"
228  "mul.s %[src4], %[src4], %[scale] \n\t"
229  "mul.s %[src5], %[src5], %[scale] \n\t"
230  "mul.s %[src6], %[src6], %[scale] \n\t"
231  "mul.s %[src7], %[src7], %[scale] \n\t"
232  "cvt.w.s %[src0], %[src0] \n\t"
233  "cvt.w.s %[src1], %[src1] \n\t"
234  "cvt.w.s %[src2], %[src2] \n\t"
235  "cvt.w.s %[src3], %[src3] \n\t"
236  "cvt.w.s %[src4], %[src4] \n\t"
237  "cvt.w.s %[src5], %[src5] \n\t"
238  "cvt.w.s %[src6], %[src6] \n\t"
239  "cvt.w.s %[src7], %[src7] \n\t"
240  "mfc1 %[temp0], %[src0] \n\t"
241  "mfc1 %[temp1], %[src1] \n\t"
242  "mfc1 %[temp2], %[src2] \n\t"
243  "mfc1 %[temp3], %[src3] \n\t"
244  "mfc1 %[temp4], %[src4] \n\t"
245  "mfc1 %[temp5], %[src5] \n\t"
246  "mfc1 %[temp6], %[src6] \n\t"
247  "mfc1 %[temp7], %[src7] \n\t"
248  "sw %[temp0], 0(%[dst]) \n\t"
249  "sw %[temp1], 4(%[dst]) \n\t"
250  "sw %[temp2], 8(%[dst]) \n\t"
251  "sw %[temp3], 12(%[dst]) \n\t"
252  "sw %[temp4], 16(%[dst]) \n\t"
253  "sw %[temp5], 20(%[dst]) \n\t"
254  "sw %[temp6], 24(%[dst]) \n\t"
255  "sw %[temp7], 28(%[dst]) \n\t"
256 
257  : [dst] "+r" (dst), [src] "+r" (src),
258  [src0] "=&f" (src0), [src1] "=&f" (src1),
259  [src2] "=&f" (src2), [src3] "=&f" (src3),
260  [src4] "=&f" (src4), [src5] "=&f" (src5),
261  [src6] "=&f" (src6), [src7] "=&f" (src7),
262  [temp0] "=r" (temp0), [temp1] "=r" (temp1),
263  [temp2] "=r" (temp2), [temp3] "=r" (temp3),
264  [temp4] "=r" (temp4), [temp5] "=r" (temp5),
265  [temp6] "=r" (temp6), [temp7] "=r" (temp7)
266  : [scale] "f" (scale)
267  : "memory"
268  );
269  src = src + 8;
270  dst = dst + 8;
271  len -= 8;
272  } while (len > 0);
273 }
274 
275 static void ac3_downmix_mips(float **samples, float (*matrix)[2],
276  int out_ch, int in_ch, int len)
277 {
278  int i, j, i1, i2, i3;
279  float v0, v1, v2, v3;
280  float v4, v5, v6, v7;
281  float samples0, samples1, samples2, samples3, matrix_j, matrix_j2;
282  float *samples_p, *samples_sw, *matrix_p, **samples_x, **samples_end;
283 
284  __asm__ volatile(
285  ".set push \n\t"
286  ".set noreorder \n\t"
287 
288  "li %[i1], 2 \n\t"
289  "sll %[len], 2 \n\t"
290  "move %[i], $zero \n\t"
291  "sll %[j], %[in_ch], " PTRLOG " \n\t"
292 
293  "bne %[out_ch], %[i1], 3f \n\t" // if (out_ch == 2)
294  " li %[i2], 1 \n\t"
295 
296  "2: \n\t" // start of the for loop (for (i = 0; i < len; i+=4))
297  "move %[matrix_p], %[matrix] \n\t"
298  "move %[samples_x], %[samples] \n\t"
299  "mtc1 $zero, %[v0] \n\t"
300  "mtc1 $zero, %[v1] \n\t"
301  "mtc1 $zero, %[v2] \n\t"
302  "mtc1 $zero, %[v3] \n\t"
303  "mtc1 $zero, %[v4] \n\t"
304  "mtc1 $zero, %[v5] \n\t"
305  "mtc1 $zero, %[v6] \n\t"
306  "mtc1 $zero, %[v7] \n\t"
307  "addiu %[i1], %[i], 4 \n\t"
308  "addiu %[i2], %[i], 8 \n\t"
309  PTR_L " %[samples_p], 0(%[samples_x]) \n\t"
310  "addiu %[i3], %[i], 12 \n\t"
311  PTR_ADDU "%[samples_end],%[samples_x], %[j] \n\t"
312  "move %[samples_sw], %[samples_p] \n\t"
313 
314  "1: \n\t" // start of the inner for loop (for (j = 0; j < in_ch; j++))
315  "lwc1 %[matrix_j], 0(%[matrix_p]) \n\t"
316  "lwc1 %[matrix_j2], 4(%[matrix_p]) \n\t"
317  "lwxc1 %[samples0], %[i](%[samples_p]) \n\t"
318  "lwxc1 %[samples1], %[i1](%[samples_p]) \n\t"
319  "lwxc1 %[samples2], %[i2](%[samples_p]) \n\t"
320  "lwxc1 %[samples3], %[i3](%[samples_p]) \n\t"
321  PTR_ADDIU "%[matrix_p], 8 \n\t"
322  PTR_ADDIU "%[samples_x]," PTRSIZE " \n\t"
323  "madd.s %[v0], %[v0], %[samples0], %[matrix_j] \n\t"
324  "madd.s %[v1], %[v1], %[samples1], %[matrix_j] \n\t"
325  "madd.s %[v2], %[v2], %[samples2], %[matrix_j] \n\t"
326  "madd.s %[v3], %[v3], %[samples3], %[matrix_j] \n\t"
327  "madd.s %[v4], %[v4], %[samples0], %[matrix_j2]\n\t"
328  "madd.s %[v5], %[v5], %[samples1], %[matrix_j2]\n\t"
329  "madd.s %[v6], %[v6], %[samples2], %[matrix_j2]\n\t"
330  "madd.s %[v7], %[v7], %[samples3], %[matrix_j2]\n\t"
331  "bne %[samples_x], %[samples_end], 1b \n\t"
332  PTR_L " %[samples_p], 0(%[samples_x]) \n\t"
333 
334  PTR_L " %[samples_p], " PTRSIZE "(%[samples]) \n\t"
335  "swxc1 %[v0], %[i](%[samples_sw]) \n\t"
336  "swxc1 %[v1], %[i1](%[samples_sw]) \n\t"
337  "swxc1 %[v2], %[i2](%[samples_sw]) \n\t"
338  "swxc1 %[v3], %[i3](%[samples_sw]) \n\t"
339  "swxc1 %[v4], %[i](%[samples_p]) \n\t"
340  "addiu %[i], 16 \n\t"
341  "swxc1 %[v5], %[i1](%[samples_p]) \n\t"
342  "swxc1 %[v6], %[i2](%[samples_p]) \n\t"
343  "bne %[i], %[len], 2b \n\t"
344  " swxc1 %[v7], %[i3](%[samples_p]) \n\t"
345 
346  "3: \n\t"
347  "bne %[out_ch], %[i2], 6f \n\t" // if (out_ch == 1)
348  " nop \n\t"
349 
350  "5: \n\t" // start of the outer for loop (for (i = 0; i < len; i+=4))
351  "move %[matrix_p], %[matrix] \n\t"
352  "move %[samples_x], %[samples] \n\t"
353  "mtc1 $zero, %[v0] \n\t"
354  "mtc1 $zero, %[v1] \n\t"
355  "mtc1 $zero, %[v2] \n\t"
356  "mtc1 $zero, %[v3] \n\t"
357  "addiu %[i1], %[i], 4 \n\t"
358  "addiu %[i2], %[i], 8 \n\t"
359  PTR_L " %[samples_p], 0(%[samples_x]) \n\t"
360  "addiu %[i3], %[i], 12 \n\t"
361  PTR_ADDU "%[samples_end],%[samples_x], %[j] \n\t"
362  "move %[samples_sw], %[samples_p] \n\t"
363 
364  "4: \n\t" // start of the inner for loop (for (j = 0; j < in_ch; j++))
365  "lwc1 %[matrix_j], 0(%[matrix_p]) \n\t"
366  "lwxc1 %[samples0], %[i](%[samples_p]) \n\t"
367  "lwxc1 %[samples1], %[i1](%[samples_p]) \n\t"
368  "lwxc1 %[samples2], %[i2](%[samples_p]) \n\t"
369  "lwxc1 %[samples3], %[i3](%[samples_p]) \n\t"
370  PTR_ADDIU "%[matrix_p], 8 \n\t"
371  PTR_ADDIU "%[samples_x]," PTRSIZE " \n\t"
372  "madd.s %[v0], %[v0], %[samples0], %[matrix_j] \n\t"
373  "madd.s %[v1], %[v1], %[samples1], %[matrix_j] \n\t"
374  "madd.s %[v2], %[v2], %[samples2], %[matrix_j] \n\t"
375  "madd.s %[v3], %[v3], %[samples3], %[matrix_j] \n\t"
376  "bne %[samples_x], %[samples_end], 4b \n\t"
377  PTR_L " %[samples_p], 0(%[samples_x]) \n\t"
378 
379  "swxc1 %[v0], %[i](%[samples_sw]) \n\t"
380  "addiu %[i], 16 \n\t"
381  "swxc1 %[v1], %[i1](%[samples_sw]) \n\t"
382  "swxc1 %[v2], %[i2](%[samples_sw]) \n\t"
383  "bne %[i], %[len], 5b \n\t"
384  " swxc1 %[v3], %[i3](%[samples_sw]) \n\t"
385  "6: \n\t"
386 
387  ".set pop"
388  :[samples_p]"=&r"(samples_p), [matrix_j]"=&f"(matrix_j), [matrix_j2]"=&f"(matrix_j2),
389  [samples0]"=&f"(samples0), [samples1]"=&f"(samples1),
390  [samples2]"=&f"(samples2), [samples3]"=&f"(samples3),
391  [v0]"=&f"(v0), [v1]"=&f"(v1), [v2]"=&f"(v2), [v3]"=&f"(v3),
392  [v4]"=&f"(v4), [v5]"=&f"(v5), [v6]"=&f"(v6), [v7]"=&f"(v7),
393  [samples_x]"=&r"(samples_x), [matrix_p]"=&r"(matrix_p),
394  [samples_end]"=&r"(samples_end), [samples_sw]"=&r"(samples_sw),
395  [i1]"=&r"(i1), [i2]"=&r"(i2), [i3]"=&r"(i3), [i]"=&r"(i),
396  [j]"=&r"(j), [len]"+r"(len)
397  :[samples]"r"(samples), [matrix]"r"(matrix),
398  [in_ch]"r"(in_ch), [out_ch]"r"(out_ch)
399  :"memory"
400  );
401 }
402 #endif /* !HAVE_MIPS32R6 && !HAVE_MIPS64R6 */
403 #endif /* HAVE_MIPSFPU */
404 #endif /* HAVE_INLINE_ASM */
405 
407 {
408 #if HAVE_INLINE_ASM
409 #if HAVE_MIPSDSP
410  c->bit_alloc_calc_bap = ac3_bit_alloc_calc_bap_mips;
411  c->update_bap_counts = ac3_update_bap_counts_mips;
412 #endif
413 #if HAVE_MIPSFPU
414 #if !HAVE_MIPS32R6 && !HAVE_MIPS64R6
415  c->float_to_fixed24 = float_to_fixed24_mips;
416  //c->downmix = ac3_downmix_mips;
417 #endif
418 #endif
419 
420 #endif
421 }
ff_ac3_bin_to_band_tab
const uint8_t ff_ac3_bin_to_band_tab[253]
Map each frequency coefficient bin to the critical band that contains it.
Definition: ac3.c:47
matrix
Definition: vc1dsp.c:42
src1
const pixel * src1
Definition: h264pred_template.c:421
AC3DSPContext
Definition: ac3dsp.h:34
asmdefs.h
FFMAX
#define FFMAX(a, b)
Definition: macros.h:47
PTRSIZE
#define PTRSIZE
Definition: asmdefs.h:47
v0
#define v0
Definition: regdef.h:26
PTRLOG
#define PTRLOG
Definition: asmdefs.h:48
mask
static const uint16_t mask[17]
Definition: lzw.c:38
floor
static __device__ float floor(float a)
Definition: cuda_runtime.h:173
AC3_MAX_COEFS
#define AC3_MAX_COEFS
Definition: ac3defs.h:29
ff_ac3_band_start_tab
const uint8_t ff_ac3_band_start_tab[AC3_CRITICAL_BANDS+1]
Starting frequency coefficient bin for each critical band.
Definition: ac3.c:36
bap_tab
static const uint8_t bap_tab[64]
Definition: dolby_e.c:599
ac3dsp.h
c
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Definition: undefined.txt:32
scale
static void scale(int *out, const int *in, const int w, const int h, const int shift)
Definition: vvc_intra.c:291
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:255
src2
const pixel * src2
Definition: h264pred_template.c:422
FFMIN
#define FFMIN(a, b)
Definition: macros.h:49
len
int len
Definition: vorbis_enc_data.h:426
__asm__
__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")
PTR_ADDU
#define PTR_ADDU
Definition: asmdefs.h:49
PTR_ADDIU
#define PTR_ADDIU
Definition: asmdefs.h:50
samples
Filter the word “frame” indicates either a video frame or a group of audio samples
Definition: filter_design.txt:8
src0
const pixel *const src0
Definition: h264pred_template.c:420
ff_ac3dsp_init_mips
void ff_ac3dsp_init_mips(AC3DSPContext *c)
Definition: ac3dsp_mips.c:406
PTR_L
#define PTR_L
Definition: asmdefs.h:53
ac3.h
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
int32_t
int32_t
Definition: audioconvert.c:56
ac3tab.h
cond
int(* cond)(enum AVPixelFormat pix_fmt)
Definition: pixdesc_query.c:28