try just removing all PLATFORM_WINDOWS conditionals in ipmidi code to see if it will...
[ardour.git] / libs / audiographer / private / gdither / gdither_types_internal.h
1 /*
2  *  Copyright (C) 2002 Steve Harris <steve@plugin.org.uk>
3  *
4  *  This program 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  *  This program 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
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  *
18  */
19
20 #ifndef GDITHER_TYPES_H
21 #define GDITHER_TYPES_H
22
23 #include <stdint.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #define GDITHER_SH_BUF_SIZE 8
30 #define GDITHER_SH_BUF_MASK 7
31
32 /* this must agree with whats in gdither_types.h */
33 typedef enum {
34     GDitherNone = 0,
35     GDitherRect,
36     GDitherTri,
37     GDitherShaped
38 } GDitherType;
39
40 typedef enum {
41     GDither8bit = 8,
42     GDither16bit = 16,
43     GDither32bit = 32,
44     GDitherFloat = 25,
45     GDitherDouble = 54,
46     GDitherPerformanceTest = 23
47 } GDitherSize;
48
49 typedef struct {
50     uint32_t phase;
51     float buffer[GDITHER_SH_BUF_SIZE];
52 } GDitherShapedState;
53
54 typedef struct GDither_s {
55     GDitherType type;
56     uint32_t channels;
57     uint32_t bit_depth;
58     uint32_t dither_depth;
59     float scale;
60     uint32_t post_scale;
61     float post_scale_fp;
62     float bias;
63
64     int   clamp_u;
65
66     int   clamp_l;
67     float *tri_state;
68     GDitherShapedState *shaped_state;
69 } *GDither;
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif