Ardour  8.7-15-gadf511264b
gdither_types_internal.h
Go to the documentation of this file.
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 {
39 
40 typedef enum {
48 
49 typedef struct {
50  uint32_t phase;
51  float buffer[GDITHER_SH_BUF_SIZE];
53 
54 typedef struct GDither_s {
56  uint32_t channels;
57  uint32_t bit_depth;
58  uint32_t dither_depth;
59  float scale;
60  uint32_t post_scale;
62  float bias;
63 
64  int clamp_u;
65 
66  int clamp_l;
67  float *tri_state;
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif
GDitherType
Definition: gdither_types.h:27
@ GDitherShaped
@ GDitherFloat
@ GDitherPerformanceTest
@ GDither16bit
@ GDitherDouble
@ GDither32bit
#define GDITHER_SH_BUF_SIZE
struct GDither_s * GDither
GDitherType type
GDitherShapedState * shaped_state