|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
🔧 Shared SIMD utilities: initialization, cleanup, and architecture-specific resource management More...
Go to the source code of this file.
Functions | |
| void | build_ramp64 (uint8_t ramp64[RAMP64_SIZE], const char *ascii_chars) |
| double | calculate_cache_eviction_score (uint64_t last_access_time, uint32_t access_count, uint64_t creation_time, uint64_t current_time) |
| utf8_palette_cache_t * | get_utf8_palette_cache (const char *ascii_chars) |
| void | build_utf8_luminance_cache (const char *ascii_chars, utf8_char_t cache[256]) |
| void | build_utf8_ramp64_cache (const char *ascii_chars, utf8_char_t cache64[64], uint8_t char_index_ramp[64]) |
| void | simd_caches_destroy_all (void) |
🔧 Shared SIMD utilities: initialization, cleanup, and architecture-specific resource management
Definition in file video/simd/common.c.
| void build_ramp64 | ( | uint8_t | ramp64[RAMP64_SIZE], |
| const char * | ascii_chars | ||
| ) |
Definition at line 33 of file video/simd/common.c.
References utf8_palette_create(), utf8_palette_destroy(), utf8_palette_get_char(), and utf8_palette_get_char_count().
| void build_utf8_luminance_cache | ( | const char * | ascii_chars, |
| utf8_char_t | cache[256] | ||
| ) |
Definition at line 394 of file video/simd/common.c.
Referenced by get_utf8_palette_cache().
| void build_utf8_ramp64_cache | ( | const char * | ascii_chars, |
| utf8_char_t | cache64[64], | ||
| uint8_t | char_index_ramp[64] | ||
| ) |
Definition at line 447 of file video/simd/common.c.
Referenced by get_utf8_palette_cache().
| double calculate_cache_eviction_score | ( | uint64_t | last_access_time, |
| uint32_t | access_count, | ||
| uint64_t | creation_time, | ||
| uint64_t | current_time | ||
| ) |
Definition at line 83 of file video/simd/common.c.
Referenced by get_utf8_palette_cache().
| utf8_palette_cache_t * get_utf8_palette_cache | ( | const char * | ascii_chars | ) |
Definition at line 285 of file video/simd/common.c.
References build_utf8_luminance_cache(), build_utf8_ramp64_cache(), calculate_cache_eviction_score(), and time_get_ns().
Referenced by image_print(), image_print_16color(), image_print_16color_dithered(), image_print_16color_dithered_with_background(), image_print_color(), and session_display_create().
| void simd_caches_destroy_all | ( | void | ) |
Definition at line 511 of file video/simd/common.c.
Referenced by asciichat_shared_destroy(), and server_main().