|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
🎨 SIMD-accelerated color matching and palette lookup for ASCII rendering More...
Go to the source code of this file.
Data Structures | |
| struct | sgr256_seq_t |
| Pre-computed 256-color ANSI SGR sequence. More... | |
Macros | |
| #define | BGASCII_LUMA_THRESHOLD 128 |
| #define | CUBE_GRAY_THRESHOLD 10 |
Functions | |
| void | prewarm_sgr256_fg_cache (void) |
| void | prewarm_sgr256_cache (void) |
| char * | get_sgr256_fg_string (uint8_t fg, uint8_t *len_out) |
| char * | get_sgr256_bg_string (uint8_t bg, uint8_t *len_out) |
| char * | get_sgr256_fg_bg_string (uint8_t fg, uint8_t bg, uint8_t *len_out) |
| char * | append_sgr_reset (char *dst) |
| char * | append_sgr_truecolor_fg (char *dst, uint8_t r, uint8_t g, uint8_t b) |
| char * | append_sgr_truecolor_bg (char *dst, uint8_t r, uint8_t g, uint8_t b) |
| char * | append_sgr_truecolor_fg_bg (char *dst, uint8_t fr, uint8_t fg, uint8_t fb, uint8_t br, uint8_t bg, uint8_t bb) |
| char * | image_print_color_simd (image_t *image, bool use_background_mode, bool use_256color, const char *ascii_chars) |
🎨 SIMD-accelerated color matching and palette lookup for ASCII rendering
Definition in file ascii_simd_color.c.
| #define BGASCII_LUMA_THRESHOLD 128 |
Definition at line 34 of file ascii_simd_color.c.
| #define CUBE_GRAY_THRESHOLD 10 |
Definition at line 38 of file ascii_simd_color.c.
|
inline |
Definition at line 155 of file ascii_simd_color.c.
|
inline |
Definition at line 224 of file ascii_simd_color.c.
References g_dec3_cache.
|
inline |
Definition at line 163 of file ascii_simd_color.c.
References g_dec3_cache.
|
inline |
Definition at line 285 of file ascii_simd_color.c.
References g_dec3_cache.
| char * get_sgr256_bg_string | ( | uint8_t | bg, |
| uint8_t * | len_out | ||
| ) |
Definition at line 141 of file ascii_simd_color.c.
References sgr256_seq_t::len, and sgr256_seq_t::seq.
Referenced by emit_set_256_color_bg().
| char * get_sgr256_fg_bg_string | ( | uint8_t | fg, |
| uint8_t | bg, | ||
| uint8_t * | len_out | ||
| ) |
Definition at line 149 of file ascii_simd_color.c.
| char * get_sgr256_fg_string | ( | uint8_t | fg, |
| uint8_t * | len_out | ||
| ) |
Definition at line 133 of file ascii_simd_color.c.
References sgr256_seq_t::len, and sgr256_seq_t::seq.
Referenced by emit_set_256_color_fg().
| char * image_print_color_simd | ( | image_t * | image, |
| bool | use_background_mode, | ||
| bool | use_256color, | ||
| const char * | ascii_chars | ||
| ) |
Definition at line 412 of file ascii_simd_color.c.
References image_print_color().
Referenced by ascii_convert(), image_print_256color(), and image_print_with_capabilities().
| void prewarm_sgr256_cache | ( | void | ) |
Definition at line 128 of file ascii_simd_color.c.
Referenced by benchmark_simd_color_conversion_with_source().
| void prewarm_sgr256_fg_cache | ( | void | ) |
Definition at line 124 of file ascii_simd_color.c.
Referenced by benchmark_simd_color_conversion_with_source().