-
Notifications
You must be signed in to change notification settings - Fork 10
/
globals.h
42 lines (34 loc) · 1.16 KB
/
globals.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
/*
* 2018 Tarpeeksi Hyvae Soft /
* VCS
*
*/
#ifndef VCS_COMMON_GLOBALS_H
#define VCS_COMMON_GLOBALS_H
#include <stdint.h>
const char PROGRAM_NAME[] = "VCS";
const struct semantic_version_s
{
unsigned major = 3;
unsigned minor = 1;
unsigned patch = 1;
} VCS_VERSION;
// The minimum and maximum resolution we can output frames in.
const unsigned MIN_OUTPUT_WIDTH = 160;
const unsigned MIN_OUTPUT_HEIGHT = 100;
const unsigned MAX_OUTPUT_WIDTH = 4096;
const unsigned MAX_OUTPUT_HEIGHT = 4096;
const unsigned MAX_OUTPUT_BPP = 32;
const uint64_t MAX_NUM_BYTES_IN_OUTPUT_FRAME = (MAX_OUTPUT_WIDTH * MAX_OUTPUT_HEIGHT * uint64_t(MAX_OUTPUT_BPP / 8));
// The minimum and maximum resolution we can accept frames from the capture
// device in.
const unsigned MIN_CAPTURE_WIDTH = 1;
const unsigned MIN_CAPTURE_HEIGHT = 1;
const unsigned MAX_CAPTURE_WIDTH = 4096;
const unsigned MAX_CAPTURE_HEIGHT = 4096;
const unsigned MAX_CAPTURE_BPP = 32;
const uint64_t MAX_NUM_BYTES_IN_CAPTURED_FRAME = (MAX_CAPTURE_WIDTH * MAX_CAPTURE_HEIGHT * uint64_t(MAX_CAPTURE_BPP / 8));
extern unsigned FRAME_SKIP;
extern unsigned INPUT_CHANNEL_IDX;
extern bool PROGRAM_EXIT_REQUESTED;
#endif