ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
protocol_constants.h
Go to the documentation of this file.
1
13#pragma once
14
15/* ============================================================================
16 * Protocol Version Constants
17 * ============================================================================ */
18
20#define PROTOCOL_VERSION_MAJOR 2
21
23#define PROTOCOL_VERSION_MINOR 2
24
26#define PROTOCOL_VERSION_PATCH 1
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
70/* ============================================================================
71 * Pixel Format Constants
72 * ============================================================================ */
73
75#define PIXEL_FORMAT_RGB 1
76
78#define PIXEL_FORMAT_RGBA 2
79
81#define PIXEL_FORMAT_BGR 3
82
84#define PIXEL_FORMAT_BGRA 4
85