Aufgrund einer Wartung wird GitLab am 18.01. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 18.01. between 8:00 and 9:00 am.

ITATypes.h 1.67 KB
Newer Older
Jonas Stienen's avatar
Jonas Stienen committed
1
/*
2
3
4
5
 * ----------------------------------------------------------------
 *
 *		ITA core libs
 *		(c) Copyright Institute of Technical Acoustics (ITA)
6
 *		RWTH Aachen University, Germany, 2015-2018
7
8
9
10
11
12
13
14
15
16
17
 *
 * ----------------------------------------------------------------
 *				    ____  __________  _______
 *				   //  / //__   ___/ //  _   |
 *				  //  /    //  /    //  /_|  |
 *				 //  /    //  /    //  ___   |
 *				//__/    //__/    //__/   |__|
 *
 * ----------------------------------------------------------------
 *
 */
Jonas Stienen's avatar
Jonas Stienen committed
18
19
20
21

#ifndef INCLUDE_WATCHER_ITA_TYPES
#define INCLUDE_WATCHER_ITA_TYPES

22
23
24
25
26
27
#include <ITABaseDefinitions.h>
#include <ITATypes.h>

#include <string>

//! Quantization type
28
enum struct ITAQuantization
29
30
31
32
33
34
35
36
37
38
39
40
{
	ITA_UNKNOWN_QUANTIZATION,
	ITA_INT16,
	ITA_INT20,
	ITA_INT24,
	ITA_INT32,
	ITA_FLOAT,
	ITA_DOUBLE
};

//! Return quantization as human readible string
ITA_BASE_API std::string toString( ITAQuantization eQuantization );
Jonas Stienen's avatar
Jonas Stienen committed
41

42
//! Domain type
43
enum struct ITADomain
44
45
46
47
48
49
50
51
52
53
54
{
	ITA_UNKNOWN_DOMAIN,
	ITA_TIME_DOMAIN,
	ITA_FREQUENCY_DOMAIN,
	ITA_SPHERICAL_HARMONICS_DOMAIN,
};

//! Return domain as human readible string
ITA_BASE_API std::string toString( ITADomain eDomain );

#ifdef WIN32
Jonas Stienen's avatar
Jonas Stienen committed
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Define necessary typedef from stdint.h for Microsoft compilers before Visual C++ 2010
#if _MSC_VER < 1600

typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;

typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;

#else
#include <stdint.h>
#endif

#else // UNIX

#include <stdint.h>

#endif // WIN32 & UNIX

#ifndef NULL
#define NULL 0
#endif

#endif // INCLUDE_WATCHER_ITA_TYPES