-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
48 lines (33 loc) · 947 Bytes
/
config.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef _CONF_INC_
#define _CONF_INC_
enum MaxStreamCount : unsigned {
MAX_CAMS_8 = 8,
MAX_CAMS_16 = 16,
MAX_CAMS_32 = 32,
MAX_CAMS_64 = 64,
MAX_CAMS_128 = 128,
MAX_CAMS_256 = 256,
MAX_CAMS_512 = 512,
MAX_CAMS_1024 = 1024
};
#define STREAM_ZBUFFER_SIZE 32
/// @todo generate on license check
#define MAX_CAMS_CONFIG MaxStreamCount::MAX_CAMS_64
/// @todo should get is from runtime
#define SYS_PAGE_SIZE (1<<12)
#define BS_BUFFER_LOW_WATERMARK 16
/// @define IO_CHUNK
/// @brief should be reasonable value to not to call handlers too often
#define IO_CHUNK 512
#define DEFAULT_IO_THREADS_NUMBER 2
#define DEFAULT_HTTP_PORT 80
#define JPEGMARK1 0xFF
#define JPEGMARK2 0xD8
#define JESMARK1 0xFF
#define JESMARK2 0xFE
#define JES_MARKS_NUM 4
#define JES_HEADER_SIZE 60 /* bytes */
/// @brief without leading marks (4 bytes)
#define JES_HDR_SIZE_OFFSET 48 /* bytes */
#define DEFAULT_PAGE_SIZE 4096
#endif