|
Graphviz 14.1.4~dev.20260320.0055
|
Device that renders to ASCII art. More...
#include "config.h"#include <aalib.h>#include <assert.h>#include <gvc/gvplugin.h>#include <gvc/gvplugin_device.h>#include <limits.h>#include <stdbool.h>#include <stddef.h>#include <util/gv_math.h>Go to the source code of this file.
Macros | |
| #define | GVPLUGIN_ASCII_API |
Functions | |
| static int | rgb_to_grayscale (unsigned red, unsigned green, unsigned blue) |
| convert an RGB color to grayscale | |
| static bool | is_space (const unsigned char *base, size_t size) |
| does the given range only contain space characters? | |
| static void | process (GVJ_t *job) |
Variables | |
| static gvdevice_engine_t | engine |
| static gvdevice_features_t | device_features |
| static gvplugin_installed_t | device_types [] |
| static gvplugin_api_t | apis [] = {{API_device, device_types}, {0}} |
| GVPLUGIN_ASCII_API gvplugin_library_t | gvplugin_ascii_LTX_library |
This device does not attempt to examine your terminal dimensions. It simply assumes you want output of the dimensions of the renderer graph.
Definition in file gvplugin_ascii.c.
| #define GVPLUGIN_ASCII_API |
Definition at line 132 of file gvplugin_ascii.c.
|
static |
Definition at line 34 of file gvplugin_ascii.c.
References NULL.
Referenced by process().
|
static |
Definition at line 45 of file gvplugin_ascii.c.
References agerrorf(), BYTES_PER_PIXEL, GVJ_s::height, GVJ_s::imagedata, is_space(), NULL, rgb_to_grayscale(), and GVJ_s::width.
|
static |
use “perceptual” scaling, https://en.wikipedia.org/wiki/Grayscale#Colorimetric_(perceptual_luminance-preserving)_conversion_to_grayscale
Definition at line 19 of file gvplugin_ascii.c.
Referenced by process().
|
static |
Definition at line 127 of file gvplugin_ascii.c.
Referenced by gvconfig_plugin_install_from_library(), and gvplugin_load().
|
static |
Definition at line 118 of file gvplugin_ascii.c.
|
static |
Definition at line 122 of file gvplugin_ascii.c.
|
static |
Definition at line 114 of file gvplugin_ascii.c.
Referenced by gvLayout(), layout(), and tcldot_layout().
| GVPLUGIN_ASCII_API gvplugin_library_t gvplugin_ascii_LTX_library |
Definition at line 135 of file gvplugin_ascii.c.