-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
27 lines (24 loc) · 963 Bytes
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#define INPUT_NONE 0
#define INPUT_STDIN 1
#define INPUT_FILE 2
#define INPUT_NETWORK 3
#define ENC_VLBA 0
#define ENC_AT 1
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
typedef struct
{
int device_id; // OpenCL device id
int input_type; // Input type (stdin, file or network)
char *input_file; // Input filename
int port; // Port to use for network transfer
int loops; // Number of loops to perform
int n; // Total number of samples per loop
int spc; // Samples per channel
int bps; // Bits per sample
int encoding; // Encoding scheme
int channels; // Number of channels
int bytes; // Number of bytes
int batch_size; // FFT batch size
int bins; // Number of FFT bins
int output_length; // Total output length
} ga_settings;