ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
image_frame_packet_t Struct Reference

Image frame packet structure (Packet Type 3) More...

#include <lib/network/packet.h>

Data Fields

uint32_t width
 Image width in pixels.
 
uint32_t height
 Image height in pixels.
 
uint32_t pixel_format
 Pixel format enum (0=RGB24, 1=RGBA32, 2=BGR24, etc.)
 
uint32_t compressed_size
 Compressed data size (0 = not compressed, >0 = compressed)
 
uint32_t checksum
 CRC32 checksum of pixel data.
 
uint32_t timestamp
 Timestamp when frame was captured (milliseconds since epoch)
 

Detailed Description

Image frame packet structure (Packet Type 3)

Contains raw RGB image with dimensions from camera/webcam. Used when client sends camera frames to server for ASCII conversion.

Note
Pixel data follows this header in the packet payload.
Format: rgb_pixel_t pixels[width * height] or compressed data
Pixel formats are defined in common.h

Definition at line 768 of file packet.h.


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