ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
include/ascii-chat/video/ascii/render/render.h
Go to the documentation of this file.
1#pragma once
2
6
7typedef struct image image_t;
8
17
20
30
38char *ascii_render_image(const image_t *image, const ascii_render_options_t *options);
40bool ascii_render_palette_supported(ascii_renderer_t kind, const char *palette);
41
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48char *ascii_render(const image_t *image, const char *palette, ascii_color_t color, bool background, bool dither, const simd_cells_t *ops);
49
50char *ascii_render_glyph_match(const image_t *image, ascii_color_t color, const simd_cells_t *ops, const char *palette);
51char *ascii_render_glyph_match_mode(const image_t *image, ascii_color_t color, const simd_cells_t *ops, const char *palette, bool background);
52
54char *ascii_render_halfblocks(const uint8_t *rgb, int width, int height, int stride_bytes, ascii_color_t color, const simd_cells_t *ops);
55
60
61#ifdef __cplusplus
62}
63#endif
unsigned int height
Definition fft.c:24
unsigned int width
Definition fft.c:24
unsigned char uint8_t
char * ascii_render_glyph_match_mode(const image_t *image, ascii_color_t color, const simd_cells_t *ops, const char *palette, bool background)
char * ascii_render_glyph_match(const image_t *image, ascii_color_t color, const simd_cells_t *ops, const char *palette)
bool ascii_render_palette_supported(ascii_renderer_t kind, const char *palette)
char * ascii_render_image(const image_t *image, const ascii_render_options_t *options)
#define ascii_render_set_output_target
#define ascii_render
#define ascii_render_halfblocks
SIMD-friendly storage for one RGB pixel. r, g, and b hold the color channels and padding keeps the la...
Dynamic output buffer (auto-expanding).
The useful part of simd cells is in luminance: together they describe what is pending,...
Definition cells.h:14