ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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#ifdef __cplusplus
23extern "C" {
24#endif
25
26#if SIMD_SUPPORT_SSE2
27#if (!defined(__SSE2__) && !defined(_M_X64) && !(defined(_M_IX86_FP) && _M_IX86_FP >= 2))
28#error "SSE2 support required"
29#endif
30
41char *render_ascii_mono_sse2(const image_t *image, const char *ascii_chars);
42
53char *render_ascii_color_sse2(const image_t *image, bool use_background, bool use_256color, const char *ascii_chars);
54
60void sse2_caches_destroy(void);
61
62#endif /* SIMD_SUPPORT_SSE2 */
63
65
66#if SIMD_SUPPORT_SSE2
67char *rgb_to_truecolor_halfblocks_sse2(const uint8_t *rgb, int width, int height, int stride);
68#endif
69
70#if SIMD_SUPPORT_SSE2
71char *rgb_to_256color_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_16color_halfblocks_sse2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
76#endif
77
78#if SIMD_SUPPORT_SSE2
79char *rgb_to_halfblocks_sse2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
80#endif
81
82#ifdef __cplusplus
83}
84#endif
unsigned int height
Definition fft.c:24
unsigned int width
Definition fft.c:24
unsigned char uint8_t
SIMD-friendly storage for one RGB pixel. r, g, and b hold the color channels and padding keeps the la...