ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
session_display_ctx Struct Reference

Runtime terminal state and reusable workspaces for ASCII rendering. More...

Data Fields

tty_info_t tty_info
 TTY information (file descriptor, path, ownership).
bool has_tty
 True if we have a valid TTY for interactive output.
terminal_capabilities_t caps
 Detected terminal capabilities.
char palette_chars [ASCII_PALETTE_BUFFER_SIZE]
 Palette character string for rendering.
size_t palette_len
 Number of characters in palette.
char luminance_palette [ASCII_LUMINANCE_LEVELS]
 Luminance-to-character mapping table (256 entries).
palette_type_t palette_type
 Configured palette type.
bool snapshot_mode
 Snapshot mode enabled.
atomic_t first_frame
 First frame flag for logging control.
atomic_t output_failed
 Stop submitting frames after the output consumer disappears.
bool initialized
 Context is fully initialized.
bool audio_playback_enabled
 Audio playback is enabled.
void * audio_ctx
 Audio context for playback (borrowed, not owned).
digital_rain_t * digital_rain
 Digital rain effect context (NULL if disabled).
ascii_stabilizer_t stabilizer
ascii_stabilizer_t recording_stabilizer
color_filter_t previous_stabilizer_filter
bool stabilizer_filter_initialized
outbuf_t ascii_workspace
image_t * resize_workspace
image_t * flip_workspace
image_t * filter_workspace
char * tty_frame_buffer
size_t tty_frame_capacity
uint64_t last_frame_time_ns
 Last frame timestamp for digital rain delta time calculation.
uint32_t render_fps
 Video FPS for render-file encoding.
render_file_ctx_t * render_file
 Render-to-file context (NULL if disabled).
terminal_fd_reader_t * stdin_reader
 Stdin frame reader for ASCII-to-video rendering (borrowed ref, not owned).

Detailed Description

Runtime terminal state and reusable workspaces for ASCII rendering.

Runtime terminal state and reusable workspaces for ASCII rendering.

It owns TTY capability data, palette lookup tables, stabilizers, output and resize buffers, render-file timing, and the flags that stop output after the consumer disappears. Audio context pointers remain borrowed from the caller.

Definition at line 78 of file src/common/session/display.c.

Field Documentation

◆ ascii_workspace

outbuf_t session_display_ctx::ascii_workspace

◆ audio_ctx

void* session_display_ctx::audio_ctx

Audio context for playback (borrowed, not owned).

Definition at line 116 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_write_audio().

◆ audio_playback_enabled

bool session_display_ctx::audio_playback_enabled

Audio playback is enabled.

Definition at line 113 of file src/common/session/display.c.

Referenced by session_display_create(), session_display_has_audio_playback(), and session_display_write_audio().

◆ caps

terminal_capabilities_t session_display_ctx::caps

Detected terminal capabilities.

Definition at line 86 of file src/common/session/display.c.

Referenced by session_display_create(), session_display_get_caps(), and session_display_write_ascii_frame().

◆ digital_rain

digital_rain_t* session_display_ctx::digital_rain

Digital rain effect context (NULL if disabled).

Definition at line 119 of file src/common/session/display.c.

Referenced by session_display_create(), session_display_destroy(), and session_display_write_ascii_frame().

◆ filter_workspace

image_t* session_display_ctx::filter_workspace

Definition at line 127 of file src/common/session/display.c.

Referenced by session_display_destroy().

◆ first_frame

atomic_t session_display_ctx::first_frame

◆ flip_workspace

image_t* session_display_ctx::flip_workspace

Definition at line 126 of file src/common/session/display.c.

Referenced by session_display_destroy().

◆ has_tty

bool session_display_ctx::has_tty

True if we have a valid TTY for interactive output.

Definition at line 83 of file src/common/session/display.c.

Referenced by session_display_create(), session_display_destroy(), session_display_has_tty(), session_display_write_ascii_frame(), and session_display_write_raw().

◆ initialized

◆ last_frame_time_ns

uint64_t session_display_ctx::last_frame_time_ns

Last frame timestamp for digital rain delta time calculation.

Definition at line 132 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_write_ascii_frame().

◆ luminance_palette

char session_display_ctx::luminance_palette[ASCII_LUMINANCE_LEVELS]

Luminance-to-character mapping table (256 entries).

Definition at line 95 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_get_luminance_palette().

◆ output_failed

atomic_t session_display_ctx::output_failed

Stop submitting frames after the output consumer disappears.

Definition at line 107 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_write_ascii_frame().

◆ palette_chars

char session_display_ctx::palette_chars[ASCII_PALETTE_BUFFER_SIZE]

Palette character string for rendering.

Definition at line 89 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_get_palette_chars().

◆ palette_len

size_t session_display_ctx::palette_len

Number of characters in palette.

Definition at line 92 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_get_palette_len().

◆ palette_type

palette_type_t session_display_ctx::palette_type

Configured palette type.

Definition at line 98 of file src/common/session/display.c.

Referenced by session_display_create().

◆ previous_stabilizer_filter

color_filter_t session_display_ctx::previous_stabilizer_filter

Definition at line 122 of file src/common/session/display.c.

◆ recording_stabilizer

ascii_stabilizer_t session_display_ctx::recording_stabilizer

◆ render_file

◆ render_fps

uint32_t session_display_ctx::render_fps

◆ resize_workspace

image_t* session_display_ctx::resize_workspace

Definition at line 125 of file src/common/session/display.c.

Referenced by session_display_destroy().

◆ snapshot_mode

◆ stabilizer

ascii_stabilizer_t session_display_ctx::stabilizer

◆ stabilizer_filter_initialized

bool session_display_ctx::stabilizer_filter_initialized

Definition at line 123 of file src/common/session/display.c.

◆ stdin_reader

terminal_fd_reader_t* session_display_ctx::stdin_reader

Stdin frame reader for ASCII-to-video rendering (borrowed ref, not owned).

Definition at line 141 of file src/common/session/display.c.

Referenced by session_display_get_stdin_reader(), and session_display_set_stdin_reader().

◆ tty_frame_buffer

char* session_display_ctx::tty_frame_buffer

◆ tty_frame_capacity

size_t session_display_ctx::tty_frame_capacity

Definition at line 129 of file src/common/session/display.c.

Referenced by session_display_write_ascii_frame().

◆ tty_info

tty_info_t session_display_ctx::tty_info

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