ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
ascii_frame_packet_t Struct Reference

ASCII frame packet structure (Packet Type 2) More...

#include <include/ascii-chat/network/packet/packet.h>

Data Fields

uint32_t width
 Terminal width in characters.
 
uint32_t height
 Terminal height in characters.
 
uint32_t original_size
 Size of original uncompressed ASCII data in bytes.
 
uint32_t compressed_size
 Size of compressed data (0 = not compressed)
 
uint32_t checksum
 CRC32 checksum of original ASCII data.
 
uint32_t flags
 Frame flags bitmask (HAS_COLOR, IS_COMPRESSED, etc.)
 

Detailed Description

ASCII frame packet structure (Packet Type 2)

Contains complete ASCII art frame with metadata for terminal rendering. Used for both client->server (camera input) and server->client (mixed output) transmission.

Note
ASCII frame data follows this header in the packet payload.
If compressed_size > 0, data is zstd compressed.
Format: char data[original_size] or compressed_data[compressed_size]

Definition at line 848 of file packet.h.

Field Documentation

◆ checksum

uint32_t ascii_frame_packet_t::checksum

CRC32 checksum of original ASCII data.

Definition at line 858 of file packet.h.

Referenced by acip_send_ascii_frame().

◆ compressed_size

uint32_t ascii_frame_packet_t::compressed_size

Size of compressed data (0 = not compressed)

Definition at line 856 of file packet.h.

Referenced by acip_send_ascii_frame().

◆ flags

uint32_t ascii_frame_packet_t::flags

Frame flags bitmask (HAS_COLOR, IS_COMPRESSED, etc.)

Definition at line 860 of file packet.h.

Referenced by acip_send_ascii_frame().

◆ height

uint32_t ascii_frame_packet_t::height

Terminal height in characters.

Definition at line 852 of file packet.h.

Referenced by acip_send_ascii_frame().

◆ original_size

uint32_t ascii_frame_packet_t::original_size

Size of original uncompressed ASCII data in bytes.

Definition at line 854 of file packet.h.

Referenced by acip_send_ascii_frame().

◆ width

uint32_t ascii_frame_packet_t::width

Terminal width in characters.

Definition at line 850 of file packet.h.

Referenced by acip_send_ascii_frame().


The documentation for this struct was generated from the following file: