ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
Protocol Constants

Protocol version, feature flags, compression, and frame constants. More...

Files

file  protocol_constants.h
 Protocol version, features, compression, and frame flag constants.
 

Macros

#define PROTOCOL_VERSION_MAJOR   1
 Major protocol version number.
 
#define PROTOCOL_VERSION_MINOR   0
 Minor 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 PIXEL_FORMAT_RGB   0
 RGB pixel format.
 
#define PIXEL_FORMAT_RGBA   1
 RGBA pixel format.
 
#define PIXEL_FORMAT_BGR   2
 BGR pixel format.
 
#define PIXEL_FORMAT_BGRA   3
 BGRA pixel format.
 

Detailed Description

Protocol version, feature flags, compression, and frame constants.

Macro Definition Documentation

◆ COMPRESS_ALGO_LZ4

#define COMPRESS_ALGO_LZ4   0x02

#include <protocol_constants.h>

LZ4 fast compression algorithm.

Definition at line 46 of file protocol_constants.h.

◆ COMPRESS_ALGO_NONE

#define COMPRESS_ALGO_NONE   0x00

#include <protocol_constants.h>

No compression algorithm.

Definition at line 40 of file protocol_constants.h.

◆ COMPRESS_ALGO_ZLIB

#define COMPRESS_ALGO_ZLIB   0x01

#include <protocol_constants.h>

zlib deflate compression algorithm

Definition at line 43 of file protocol_constants.h.

◆ COMPRESS_ALGO_ZSTD

#define COMPRESS_ALGO_ZSTD   0x03

#include <protocol_constants.h>

zstd algorithm

Definition at line 49 of file protocol_constants.h.

◆ FEATURE_DELTA_FRAMES

#define FEATURE_DELTA_FRAMES   0x02

#include <protocol_constants.h>

Delta frame encoding support flag.

Definition at line 33 of file protocol_constants.h.

◆ FEATURE_RLE_ENCODING

#define FEATURE_RLE_ENCODING   0x01

#include <protocol_constants.h>

Run-length encoding support flag.

Definition at line 30 of file protocol_constants.h.

◆ FRAME_FLAG_HAS_COLOR

#define FRAME_FLAG_HAS_COLOR   0x01

#include <protocol_constants.h>

Frame includes ANSI color codes.

Definition at line 56 of file protocol_constants.h.

◆ FRAME_FLAG_IS_COMPRESSED

#define FRAME_FLAG_IS_COMPRESSED   0x02

#include <protocol_constants.h>

Frame data is compressed.

Definition at line 59 of file protocol_constants.h.

◆ FRAME_FLAG_IS_STRETCHED

#define FRAME_FLAG_IS_STRETCHED   0x08

#include <protocol_constants.h>

Frame was stretched (aspect adjusted)

Definition at line 65 of file protocol_constants.h.

◆ FRAME_FLAG_RLE_COMPRESSED

#define FRAME_FLAG_RLE_COMPRESSED   0x04

#include <protocol_constants.h>

Frame data is RLE compressed.

Definition at line 62 of file protocol_constants.h.

◆ PIXEL_FORMAT_BGR

#define PIXEL_FORMAT_BGR   2

#include <protocol_constants.h>

BGR pixel format.

Definition at line 78 of file protocol_constants.h.

◆ PIXEL_FORMAT_BGRA

#define PIXEL_FORMAT_BGRA   3

#include <protocol_constants.h>

BGRA pixel format.

Definition at line 81 of file protocol_constants.h.

◆ PIXEL_FORMAT_RGB

#define PIXEL_FORMAT_RGB   0

#include <protocol_constants.h>

RGB pixel format.

Definition at line 72 of file protocol_constants.h.

◆ PIXEL_FORMAT_RGBA

#define PIXEL_FORMAT_RGBA   1

#include <protocol_constants.h>

RGBA pixel format.

Definition at line 75 of file protocol_constants.h.

◆ PROTOCOL_VERSION_MAJOR

#define PROTOCOL_VERSION_MAJOR   1

#include <protocol_constants.h>

Major protocol version number.

Definition at line 20 of file protocol_constants.h.

◆ PROTOCOL_VERSION_MINOR

#define PROTOCOL_VERSION_MINOR   0

#include <protocol_constants.h>

Minor protocol version number.

Definition at line 23 of file protocol_constants.h.