1 /*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
20
22
24
26
28
29 #define randomize_buffer(buf) \
30 do { \
31 double bmg[2], stddev = 10.0, mean = 0.0; \
32 \
33 for (int i = 0; i < LEN; i += 2) { \
34 av_bmg_get(&checkasm_lfg, bmg); \
35 buf[i] = bmg[0] * stddev + mean; \
36 buf[i + 1] = bmg[1] * stddev + mean; \
37 } \
38 } while(0);
39
41 {
48
49 declare_func(
void,
float *restrict mag,
float *restrict ang,
50 ptrdiff_t blocksize);
51
54
59
62 for (
int i = 0;
i <
LEN;
i++) {
65 fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
66 i, cdst[
i], odst[
i], cdst[
i] - odst[
i]);
67 fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
68 i, cdst1[
i], odst1[
i], cdst1[
i] - odst1[
i]);
70 break;
71 }
72 }
74 }
75
77 {
79
81
84 report(
"inverse_coupling");
85 }