|
ascii-chat 0.6.0
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.
Macros | |
| #define | BGASCII_LUMA_THRESHOLD 128 |
| #define | CUBE_GRAY_THRESHOLD 10 |
Functions | |
| void | prewarm_sgr256_fg_cache (void) |
| Prewarm 256-color foreground cache for benchmarks. | |
| void | prewarm_sgr256_cache (void) |
| Prewarm 256-color foreground/background cache for benchmarks. | |
| char * | get_sgr256_fg_string (uint8_t fg, uint8_t *len_out) |
| Get 256-color foreground ANSI sequence string. | |
| char * | get_sgr256_fg_bg_string (uint8_t fg, uint8_t bg, uint8_t *len_out) |
| Get 256-color foreground/background ANSI sequence string. | |
| char * | append_sgr_reset (char *dst) |
| Append ANSI reset sequence. | |
| char * | append_sgr_truecolor_fg (char *dst, uint8_t r, uint8_t g, uint8_t b) |
| Append truecolor foreground SGR sequence. | |
| char * | append_sgr_truecolor_bg (char *dst, uint8_t r, uint8_t g, uint8_t b) |
| Append truecolor background SGR sequence. | |
| 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) |
| Append truecolor foreground and background SGR sequence. | |
| char * | image_print_color_simd (image_t *image, bool use_background_mode, bool use_256color, const char *ascii_chars) |
| Print image as ASCII with color using SIMD. | |
🎨 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 32 of file ascii_simd_color.c.
| #define CUBE_GRAY_THRESHOLD 10 |
Definition at line 36 of file ascii_simd_color.c.