Graphviz 13.0.0~dev.20250210.0415
Loading...
Searching...
No Matches
gvdevice_kitty.c File Reference
#include "config.h"
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <common/types.h>
#include <gvc/gvio.h>
#include <gvc/gvplugin_device.h>
#include <util/alloc.h>
#include <util/base64.h>
#include <util/gv_math.h>
Include dependency graph for gvdevice_kitty.c:

Go to the source code of this file.

Functions

static void kitty_write (unsigned char *data, size_t data_size, unsigned width, unsigned height, bool is_compressed)
 
static void kitty_format (GVJ_t *job)
 

Variables

static gvdevice_features_t device_features_kitty
 
static gvdevice_engine_t device_engine_kitty = {.format = kitty_format}
 
gvplugin_installed_t gvdevice_types_kitty []
 

Function Documentation

◆ kitty_format()

static void kitty_format ( GVJ_t job)
static

Definition at line 55 of file gvdevice_kitty.c.

References argb2rgba(), BYTES_PER_PIXEL, GVJ_s::height, GVJ_s::imagedata, kitty_write(), and GVJ_s::width.

Here is the call graph for this function:

◆ kitty_write()

static void kitty_write ( unsigned char *  data,
size_t  data_size,
unsigned  width,
unsigned  height,
bool  is_compressed 
)
static

Definition at line 29 of file gvdevice_kitty.c.

References free(), gv_base64(), gv_base64_size(), and offset.

Referenced by kitty_format().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ device_engine_kitty

gvdevice_engine_t device_engine_kitty = {.format = kitty_format}
static

Definition at line 70 of file gvdevice_kitty.c.

◆ device_features_kitty

gvdevice_features_t device_features_kitty
static
Initial value:
= {
{0., 0.},
{0., 0.},
{96., 96.},
}
#define GVDEVICE_DOES_TRUECOLOR
Definition gvcjob.h:90

Definition at line 63 of file gvdevice_kitty.c.

◆ gvdevice_types_kitty

gvplugin_installed_t gvdevice_types_kitty[]
Initial value:
= {
{0, "kitty:cairo", 0, &device_engine_kitty, &device_features_kitty},
{0, NULL, 0, NULL, NULL}}
node NULL
Definition grammar.y:163
static gvdevice_engine_t device_engine_kitty
static gvdevice_features_t device_features_kitty

Definition at line 109 of file gvdevice_kitty.c.