Debian Codegraph @

dwtools/CC_def.h

raw
1 /* CC_def.h
2 *
3 * Copyright (C) 1993-2018 David Weenink
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20 #define ooSTRUCT CC_Frame
21 oo_DEFINE_STRUCT (CC_Frame)
22
23 oo_INTEGER (numberOfCoefficients)
24 #if oo_READING_BINARY
25 oo_VERSION_UNTIL (1)
26 oo_FLOAT (c0)
27 oo_obsoleteVEC32 (c, numberOfCoefficients)
28 oo_VERSION_ELSE
29 oo_DOUBLE (c0)
30 oo_VEC (c, numberOfCoefficients)
31 oo_VERSION_END
32 #else
33 oo_DOUBLE (c0)
34 oo_VEC (c, numberOfCoefficients)
35 #endif
36
37 oo_END_STRUCT (CC_Frame)
38 #undef ooSTRUCT
39
40
41 #define ooSTRUCT CC
42 oo_DEFINE_CLASS (CC, Sampled)
43
44 oo_DOUBLE (fmin)
45 oo_DOUBLE (fmax)
46 // c [0]..c [maximumNumberOfCoefficients] ; needed for inverse transform
47 oo_INTEGER (maximumNumberOfCoefficients)
48 oo_STRUCTVEC (CC_Frame, frame, nx)
49
50 #if oo_DECLARING
51 void v1_info ()
52 override;
53 #endif
54
55 oo_END_CLASS (CC)
56 #undef ooSTRUCT
57
58
59 /* End of file CC_def.h */