ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
sse2.h
Go to the documentation of this file.
1#pragma once
2
16
17#include <stdint.h>
18#include <stddef.h>
19#include <stdbool.h>
21
22#if SIMD_SUPPORT_SSE2
23#if (!defined(__SSE2__) && !defined(_M_X64) && !(defined(_M_IX86_FP) && _M_IX86_FP >= 2))
24#error "SSE2 support required"
25#endif
26
37char *render_ascii_mono_sse2(const image_t *image, const char *ascii_chars);
38
49char *render_ascii_color_sse2(const image_t *image, bool use_background, bool use_256color, const char *ascii_chars);
50
56void sse2_caches_destroy(void);
57
58#endif /* SIMD_SUPPORT_SSE2 */
59
61
62#if SIMD_SUPPORT_SSE2
63char *rgb_to_truecolor_halfblocks_sse2(const uint8_t *rgb, int width, int height, int stride);
64#endif
65
66#if SIMD_SUPPORT_SSE2
67char *rgb_to_256color_halfblocks_sse2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
68#endif
69
70#if SIMD_SUPPORT_SSE2
71char *rgb_to_16color_halfblocks_sse2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
72#endif
73
74#if SIMD_SUPPORT_SSE2
75char *rgb_to_halfblocks_sse2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
76#endif
unsigned int height
Definition fft.c:23
unsigned int width
Definition fft.c:23
unsigned char uint8_t
Definition common.h:60
SIMD-friendly storage for one RGB pixel. r, g, and b hold the color channels and padding keeps the la...