ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
protocol_constants.h
Go to the documentation of this file.
1
12
13#pragma once
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/* ============================================================================
20 * Protocol Version Constants
21 * ============================================================================
22 */
23
25#define PROTOCOL_VERSION_MAJOR 2
26
28#define PROTOCOL_VERSION_MINOR 3
29
31#define PROTOCOL_VERSION_PATCH 0
32
33/* ============================================================================
34 * Feature Flags
35 * ============================================================================
36 */
37
39#define FEATURE_RLE_ENCODING 0x01
40
42#define FEATURE_DELTA_FRAMES 0x02
43
44/* ============================================================================
45 * Compression Constants
46 * ============================================================================
47 */
48
50#define COMPRESS_ALGO_NONE 0x00
51
53#define COMPRESS_ALGO_ZLIB 0x01
54
56#define COMPRESS_ALGO_LZ4 0x02
57
59#define COMPRESS_ALGO_ZSTD 0x03
60
61/* ============================================================================
62 * Frame Flags
63 * ============================================================================
64 */
65
67#define FRAME_FLAG_HAS_COLOR 0x01
68
70#define FRAME_FLAG_IS_COMPRESSED 0x02
71
73#define FRAME_FLAG_RLE_COMPRESSED 0x04
74
76#define FRAME_FLAG_IS_STRETCHED 0x08
77
79#define FRAME_FLAG_RENDER_CONTRACT 0x10
80
81/* ============================================================================
82 * Pixel Format Constants
83 * ============================================================================
84 */
85
87#define PIXEL_FORMAT_RGB 1
88
90#define PIXEL_FORMAT_RGBA 2
91
93#define PIXEL_FORMAT_BGR 3
94
96#define PIXEL_FORMAT_BGRA 4
97
99
100#ifdef __cplusplus
101}
102#endif