1 /*
2 * Copyright (c) 2015 James Almer
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
27
29
30 #define randomize_buffers() \
31 do { \
32 int i; \
33 for (i = 0; i < BUF_SIZE*3; i++) \
34 src[i] = rnd(); \
35 } while (0)
36
37 #define randomize_buffers_float() \
38 do { \
39 int i; \
40 for (i = 0; i < BUF_SIZE*3; i++) \
41 src[i] = (float)rnd() / (UINT_MAX >> 5); \
42 } while (0)
43
45 {
52
54
66 }
67
69 {
76
78
90 }
91
93 {
95
97
102
104 }