ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
avx2.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_AVX2
27
38char *render_ascii_mono_avx2(const image_t *image, const char *ascii_chars);
39
50char *render_ascii_color_avx2(const image_t *image, bool use_background, bool use_256color, const char *ascii_chars);
51
52#endif
53
55
56#if SIMD_SUPPORT_AVX2
57char *rgb_to_truecolor_halfblocks_avx2(const uint8_t *rgb, int width, int height, int stride);
58#endif
59
60#if SIMD_SUPPORT_AVX2
61char *rgb_to_256color_halfblocks_avx2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
62#endif
63
64#if SIMD_SUPPORT_AVX2
65char *rgb_to_16color_halfblocks_avx2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
66#endif
67
68#if SIMD_SUPPORT_AVX2
69char *rgb_to_halfblocks_avx2(const uint8_t *rgb, int width, int height, int stride, const char *palette);
70#endif
71
72#ifdef __cplusplus
73}
74#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...