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 File Reference

Protocol version, features, compression, and frame flag constants. More...

Go to the source code of this file.

Macros

#define PROTOCOL_VERSION_MAJOR   2
 Major protocol version number.
#define PROTOCOL_VERSION_MINOR   3
 Minor protocol version number.
#define PROTOCOL_VERSION_PATCH   0
 Patch protocol version number.
#define FEATURE_RLE_ENCODING   0x01
 Run-length encoding support flag.
#define FEATURE_DELTA_FRAMES   0x02
 Delta frame encoding support flag.
#define COMPRESS_ALGO_NONE   0x00
 No compression algorithm.
#define COMPRESS_ALGO_ZLIB   0x01
 zlib deflate compression algorithm
#define COMPRESS_ALGO_LZ4   0x02
 LZ4 fast compression algorithm.
#define COMPRESS_ALGO_ZSTD   0x03
 zstd algorithm
#define FRAME_FLAG_HAS_COLOR   0x01
 Frame includes ANSI color codes.
#define FRAME_FLAG_IS_COMPRESSED   0x02
 Frame data is compressed.
#define FRAME_FLAG_RLE_COMPRESSED   0x04
 Frame data is RLE compressed.
#define FRAME_FLAG_IS_STRETCHED   0x08
 Frame was stretched (aspect adjusted).
#define FRAME_FLAG_RENDER_CONTRACT   0x10
 Explicit versioned render contract precedes encoded ASCII text.
#define PIXEL_FORMAT_RGB   1
 Packed RGB24 pixel format used by ACIP image-frame senders.
#define PIXEL_FORMAT_RGBA   2
 Packed RGBA32 pixel format.
#define PIXEL_FORMAT_BGR   3
 BGR pixel format.
#define PIXEL_FORMAT_BGRA   4
 BGRA pixel format.

Detailed Description

Protocol version, features, compression, and frame flag constants.

Definition in file protocol_constants.h.