ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
render_contract.h
Go to the documentation of this file.
1#pragma once
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#define FRAME_RENDER_MAX_BYTES (16u * 1024u * 1024u)
10#define FRAME_RENDER_CONTRACT_SCHEMA 1u
11#define FRAME_RENDER_CONTRACT_HEADER 20u
12#define FRAME_RENDER_CONTRACT_MAX (FRAME_RENDER_CONTRACT_HEADER + 255u)
13#define FRAME_RENDER_CONTRACT_RAIN 1u
14#define FRAME_RENDER_CONTRACT_GRID 2u
15
16/* Explicit, big-endian wire prefix: schema, revision, render mode, effects,
17 * palette byte length, followed by that many UTF-8 bytes (no NUL). Text sizes,
18 * compression and CRC in the legacy frame header continue to describe TEXT. */
21 uint32_t effects, uint8_t *wire, size_t *length);
23 size_t available,
24 acip_render_settings_t *settings,
25 uint32_t *effects,
26 size_t *length);
27
28#ifdef __cplusplus
29}
30#endif
unsigned int uint32_t
unsigned char uint8_t
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
Protocol version, features, compression, and frame flag constants.
asciichat_error_t frame_render_contract_decode(const void *wire, size_t available, acip_render_settings_t *settings, uint32_t *effects, size_t *length)
asciichat_error_t frame_render_contract_encode(const acip_render_settings_t *settings, uint32_t effects, uint8_t *wire, size_t *length)
acip render settings keeps the values that move through the subsystem: caps, width,...