|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Run-length encoded color output context. More...
#include <lib/video/ansi_fast.h>
Data Fields | |
| char * | buffer |
| size_t | capacity |
| size_t | length |
| uint8_t | last_r |
| uint8_t | last_g |
| uint8_t | last_b |
| ansi_color_mode_t | mode |
| bool | first_pixel |
Run-length encoded color output context.
Emits SGR (Select Graphic Rendition) sequences only when colors change, reducing terminal output size.
Definition at line 115 of file ansi_fast.h.
| char* ansi_rle_context_t::buffer |
Output buffer
Definition at line 116 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), ansi_rle_finish(), ansi_rle_init(), and image_print_color().
| size_t ansi_rle_context_t::capacity |
Buffer capacity
Definition at line 117 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), ansi_rle_finish(), ansi_rle_init(), and image_print_color().
| bool ansi_rle_context_t::first_pixel |
First pixel flag
Definition at line 121 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), and ansi_rle_init().
| uint8_t ansi_rle_context_t::last_b |
Previous pixel color
Definition at line 119 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), and ansi_rle_init().
| uint8_t ansi_rle_context_t::last_g |
Definition at line 119 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), and ansi_rle_init().
| uint8_t ansi_rle_context_t::last_r |
Definition at line 119 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), and ansi_rle_init().
| size_t ansi_rle_context_t::length |
Current buffer length
Definition at line 118 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), ansi_rle_finish(), ansi_rle_init(), and image_print_color().
| ansi_color_mode_t ansi_rle_context_t::mode |
Color mode
Definition at line 120 of file ansi_fast.h.
Referenced by ansi_rle_add_pixel(), and ansi_rle_init().