ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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/* ============================================================================
16 * Protocol Version Constants
17 * ============================================================================ */
18
20#define PROTOCOL_VERSION_MAJOR 2
21
23#define PROTOCOL_VERSION_MINOR 3
24
26#define PROTOCOL_VERSION_PATCH 0
27
28/* ============================================================================
29 * Feature Flags
30 * ============================================================================ */
31
33#define FEATURE_RLE_ENCODING 0x01
34
36#define FEATURE_DELTA_FRAMES 0x02
37
38/* ============================================================================
39 * Compression Constants
40 * ============================================================================ */
41
43#define COMPRESS_ALGO_NONE 0x00
44
46#define COMPRESS_ALGO_ZLIB 0x01
47
49#define COMPRESS_ALGO_LZ4 0x02
50
52#define COMPRESS_ALGO_ZSTD 0x03
53
54/* ============================================================================
55 * Frame Flags
56 * ============================================================================ */
57
59#define FRAME_FLAG_HAS_COLOR 0x01
60
62#define FRAME_FLAG_IS_COMPRESSED 0x02
63
65#define FRAME_FLAG_RLE_COMPRESSED 0x04
66
68#define FRAME_FLAG_IS_STRETCHED 0x08
69
71#define FRAME_FLAG_RENDER_CONTRACT 0x10
72
73/* ============================================================================
74 * Pixel Format Constants
75 * ============================================================================ */
76
78#define PIXEL_FORMAT_RGB 1
79
81#define PIXEL_FORMAT_RGBA 2
82
84#define PIXEL_FORMAT_BGR 3
85
87#define PIXEL_FORMAT_BGRA 4
88