|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
📝 Output buffer helpers for efficient string building in ASCII rendering pipeline More...
Go to the source code of this file.
Functions | |
| void | ob_reserve (outbuf_t *ob, size_t need) |
| void | ob_putc (outbuf_t *ob, char c) |
| void | ob_write (outbuf_t *ob, const char *s, size_t n) |
| void | ob_term (outbuf_t *ob) |
| void | ob_u8 (outbuf_t *ob, uint8_t v) |
| void | ob_u32 (outbuf_t *ob, uint32_t v) |
| void | emit_set_truecolor_fg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
| void | emit_set_truecolor_bg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
| void | emit_reset (outbuf_t *ob) |
| bool | rep_is_profitable (uint32_t runlen) |
| void | emit_rep (outbuf_t *ob, uint32_t extra) |
| void | emit_set_256_color_fg (outbuf_t *ob, uint8_t color_idx) |
| void | emit_set_256_color_bg (outbuf_t *ob, uint8_t color_idx) |
| void | emit_set_fg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
| void | emit_set_bg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
📝 Output buffer helpers for efficient string building in ASCII rendering pipeline
Definition in file output_buffer.c.
| void emit_rep | ( | outbuf_t * | ob, |
| uint32_t | extra | ||
| ) |
Definition at line 150 of file output_buffer.c.
References ob_putc(), and ob_u32().
Referenced by ansi_compress_rle(), convert_pixels_scalar_with_newlines(), and image_print().
| void emit_reset | ( | outbuf_t * | ob | ) |
| void emit_set_256_color_bg | ( | outbuf_t * | ob, |
| uint8_t | color_idx | ||
| ) |
Definition at line 171 of file output_buffer.c.
References get_sgr256_bg_string(), and ob_write().
| void emit_set_256_color_fg | ( | outbuf_t * | ob, |
| uint8_t | color_idx | ||
| ) |
Definition at line 161 of file output_buffer.c.
References get_sgr256_fg_string(), and ob_write().
| void emit_set_bg | ( | outbuf_t * | ob, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 195 of file output_buffer.c.
References ob_putc(), ob_u8(), and ob_write().
| void emit_set_fg | ( | outbuf_t * | ob, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 180 of file output_buffer.c.
References ob_putc(), ob_u8(), and ob_write().
| void emit_set_truecolor_bg | ( | outbuf_t * | ob, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 117 of file output_buffer.c.
References ob_putc(), ob_u8(), and ob_write().
| void emit_set_truecolor_fg | ( | outbuf_t * | ob, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 101 of file output_buffer.c.
References ob_putc(), ob_u8(), and ob_write().
| void ob_putc | ( | outbuf_t * | ob, |
| char | c | ||
| ) |
Definition at line 43 of file output_buffer.c.
References ob_reserve().
Referenced by ansi_compress_rle(), ansi_strip_escapes(), convert_pixels_scalar_with_newlines(), emit_rep(), emit_reset(), emit_set_bg(), emit_set_fg(), emit_set_truecolor_bg(), emit_set_truecolor_fg(), image_print(), ob_term(), and ob_u8().
| void ob_reserve | ( | outbuf_t * | ob, |
| size_t | need | ||
| ) |
Definition at line 22 of file output_buffer.c.
Referenced by ansi_compress_rle(), ansi_expand_rle(), ansi_strip_escapes(), ob_putc(), ob_u32(), and ob_write().
| void ob_term | ( | outbuf_t * | ob | ) |
Definition at line 58 of file output_buffer.c.
References ob_putc().
Referenced by ansi_compress_rle(), ansi_expand_rle(), ansi_strip_escapes(), convert_pixels_scalar_with_newlines(), and image_print().
| void ob_u32 | ( | outbuf_t * | ob, |
| uint32_t | v | ||
| ) |
Definition at line 86 of file output_buffer.c.
References ob_reserve().
Referenced by emit_rep().
| void ob_u8 | ( | outbuf_t * | ob, |
| uint8_t | v | ||
| ) |
Definition at line 65 of file output_buffer.c.
References ob_putc().
Referenced by emit_set_bg(), emit_set_fg(), emit_set_truecolor_bg(), and emit_set_truecolor_fg().
| void ob_write | ( | outbuf_t * | ob, |
| const char * | s, | ||
| size_t | n | ||
| ) |
Definition at line 50 of file output_buffer.c.
References ob_reserve().
Referenced by ansi_compress_rle(), ansi_expand_rle(), emit_set_256_color_bg(), emit_set_256_color_fg(), emit_set_bg(), emit_set_fg(), emit_set_truecolor_bg(), emit_set_truecolor_fg(), and image_print().
| bool rep_is_profitable | ( | uint32_t | runlen | ) |
Definition at line 142 of file output_buffer.c.
Referenced by ansi_compress_rle(), convert_pixels_scalar_with_newlines(), and image_print().