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
25 #define randomize_int32(buf, len) \
26 do { \
27 for (int i = 0; i < len; i++) { \
28 int32_t f = ((int)(UINT32_MAX >> 17)) - ((int)(rnd() >> 16)); \
29 buf[i] = f; \
30 } \
31 } while (0)
32
34
36 {
40
42
44
47
48 for (
int i = 0;
i <
len;
i++) {
50 fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
51 i, dst0[
i], dst1[
i], dst0[
i] - dst1[
i]);
53 break;
54 }
55 }
56
58 }
59
61 {
65
66 if (
check_func(
ctx.lpc_apply_welch_window,
"apply_welch_window_even")) {
68 }
69 report(
"apply_welch_window_even");
70
71 if (
check_func(
ctx.lpc_apply_welch_window,
"apply_welch_window_odd")) {
73 }
74 report(
"apply_welch_window_odd");
75
77 }