|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
⚡ Fast ANSI color code generation with SIMD-accelerated terminal output More...
Go to the source code of this file.
Functions | |
| char * | append_truecolor_fg (char *dst, uint8_t r, uint8_t g, uint8_t b) |
| char * | append_truecolor_bg (char *dst, uint8_t r, uint8_t g, uint8_t b) |
| char * | append_truecolor_fg_bg (char *dst, uint8_t fg_r, uint8_t fg_g, uint8_t fg_b, uint8_t bg_r, uint8_t bg_g, uint8_t bg_b) |
| void | ansi_rle_init (ansi_rle_context_t *ctx, char *buffer, size_t capacity, ansi_color_mode_t mode) |
| void | ansi_rle_add_pixel (ansi_rle_context_t *ctx, uint8_t r, uint8_t g, uint8_t b, char ascii_char) |
| void | ansi_rle_finish (ansi_rle_context_t *ctx) |
| void | ansi_fast_init (void) |
| void | ansi_fast_init_256color (void) |
| char * | append_256color_fg (char *dst, uint8_t color_index) |
| uint8_t | rgb_to_256color (uint8_t r, uint8_t g, uint8_t b) |
| void | ansi_fast_init_16color (void) |
| char * | append_16color_fg (char *dst, uint8_t color_index) |
| char * | append_16color_bg (char *dst, uint8_t color_index) |
| uint8_t | rgb_to_16color (uint8_t r, uint8_t g, uint8_t b) |
| void | get_16color_rgb (uint8_t color_index, uint8_t *r, uint8_t *g, uint8_t *b) |
| uint8_t | rgb_to_16color_dithered (int r, int g, int b, int x, int y, int width, int height, rgb_error_t *error_buffer) |
| char * | append_color_fg_for_mode (char *dst, uint8_t r, uint8_t g, uint8_t b, terminal_color_mode_t mode) |
⚡ Fast ANSI color code generation with SIMD-accelerated terminal output
Definition in file ansi_fast.c.
| void ansi_fast_init | ( | void | ) |
Definition at line 198 of file ansi_fast.c.
References ascii_simd_init().
Referenced by client_init_with_args(), mirror_init_with_args(), and session_display_create().
| void ansi_fast_init_16color | ( | void | ) |
Definition at line 257 of file ansi_fast.c.
Referenced by append_16color_bg(), append_16color_fg(), image_print_16color(), image_print_16color_dithered(), image_print_16color_dithered_with_background(), and session_display_create().
| void ansi_fast_init_256color | ( | void | ) |
Definition at line 205 of file ansi_fast.c.
Referenced by session_display_create().
| void ansi_rle_add_pixel | ( | ansi_rle_context_t * | ctx, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b, | ||
| char | ascii_char | ||
| ) |
Definition at line 142 of file ansi_fast.c.
References append_truecolor_bg(), append_truecolor_fg(), and append_truecolor_fg_bg().
Referenced by image_print_color().
| void ansi_rle_finish | ( | ansi_rle_context_t * | ctx | ) |
Definition at line 184 of file ansi_fast.c.
Referenced by image_print_color().
| void ansi_rle_init | ( | ansi_rle_context_t * | ctx, |
| char * | buffer, | ||
| size_t | capacity, | ||
| ansi_color_mode_t | mode | ||
| ) |
Definition at line 129 of file ansi_fast.c.
Referenced by image_print_color().
| char * append_16color_bg | ( | char * | dst, |
| uint8_t | color_index | ||
| ) |
Definition at line 297 of file ansi_fast.c.
References ansi_fast_init_16color().
Referenced by image_print_16color_dithered_with_background().
| char * append_16color_fg | ( | char * | dst, |
| uint8_t | color_index | ||
| ) |
Definition at line 280 of file ansi_fast.c.
References ansi_fast_init_16color().
Referenced by append_color_fg_for_mode(), image_print_16color(), image_print_16color_dithered(), and image_print_16color_dithered_with_background().
| char * append_256color_fg | ( | char * | dst, |
| uint8_t | color_index | ||
| ) |
Definition at line 222 of file ansi_fast.c.
Referenced by append_color_fg_for_mode().
| char * append_color_fg_for_mode | ( | char * | dst, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b, | ||
| terminal_color_mode_t | mode | ||
| ) |
Definition at line 463 of file ansi_fast.c.
References append_16color_fg(), append_256color_fg(), append_truecolor_fg(), rgb_to_16color(), and rgb_to_256color().
| char * append_truecolor_bg | ( | char * | dst, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 56 of file ansi_fast.c.
References g_dec3_cache, and init_dec3().
Referenced by ansi_rle_add_pixel(), grep_highlight(), and grep_highlight_colored().
| char * append_truecolor_fg | ( | char * | dst, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 26 of file ansi_fast.c.
References g_dec3_cache, and init_dec3().
Referenced by ansi_rle_add_pixel(), and append_color_fg_for_mode().
| char * append_truecolor_fg_bg | ( | char * | dst, |
| uint8_t | fg_r, | ||
| uint8_t | fg_g, | ||
| uint8_t | fg_b, | ||
| uint8_t | bg_r, | ||
| uint8_t | bg_g, | ||
| uint8_t | bg_b | ||
| ) |
Definition at line 82 of file ansi_fast.c.
References g_dec3_cache, and init_dec3().
Referenced by ansi_rle_add_pixel().
| void get_16color_rgb | ( | uint8_t | color_index, |
| uint8_t * | r, | ||
| uint8_t * | g, | ||
| uint8_t * | b | ||
| ) |
Definition at line 357 of file ansi_fast.c.
Referenced by image_print_16color_dithered_with_background(), and rgb_to_16color_dithered().
| uint8_t rgb_to_16color | ( | uint8_t | r, |
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 314 of file ansi_fast.c.
Referenced by append_color_fg_for_mode(), colorscheme_compile_scheme(), image_print_16color(), and rgb_to_16color_dithered().
| uint8_t rgb_to_16color_dithered | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| rgb_error_t * | error_buffer | ||
| ) |
Definition at line 388 of file ansi_fast.c.
References get_16color_rgb(), and rgb_to_16color().
Referenced by image_print_16color_dithered(), and image_print_16color_dithered_with_background().
| uint8_t rgb_to_256color | ( | uint8_t | r, |
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Definition at line 230 of file ansi_fast.c.
Referenced by append_color_fg_for_mode(), and colorscheme_compile_scheme().