Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gvloadimage_quartz.c File Reference
#include "config.h"
#include <stdbool.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <gvc/gvplugin_loadimage.h>
#include "gvplugin_quartz.h"
Include dependency graph for gvloadimage_quartz.c:

Go to the source code of this file.

Functions

static size_t file_data_provider_get_bytes (void *info, void *buffer, size_t count)
 
static void file_data_provider_rewind (void *info)
 
static void file_data_provider_skip_bytes (void *info, size_t count)
 
static void quartz_freeimage (usershape_t *us)
 
static CGImageRef quartz_loadimage (GVJ_t *job, usershape_t *us)
 
static void quartz_loadimage_quartz (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 

Variables

static CGDataProviderCallbacks file_data_provider_callbacks
 
static gvloadimage_engine_t engine
 
gvplugin_installed_t gvloadimage_quartz_types []
 

Function Documentation

◆ file_data_provider_get_bytes()

static size_t file_data_provider_get_bytes ( void *  info,
void *  buffer,
size_t  count 
)
static

Definition at line 22 of file gvloadimage_quartz.c.

◆ file_data_provider_rewind()

static void file_data_provider_rewind ( void *  info)
static

Definition at line 27 of file gvloadimage_quartz.c.

◆ file_data_provider_skip_bytes()

static void file_data_provider_skip_bytes ( void *  info,
size_t  count 
)
static

Definition at line 51 of file gvloadimage_quartz.c.

◆ quartz_freeimage()

static void quartz_freeimage ( usershape_t us)
static

Definition at line 68 of file gvloadimage_quartz.c.

References usershape_s::data.

Referenced by quartz_loadimage().

Here is the caller graph for this function:

◆ quartz_loadimage()

static CGImageRef quartz_loadimage ( GVJ_t job,
usershape_t us 
)
static

Definition at line 73 of file gvloadimage_quartz.c.

References usershape_s::data, usershape_s::datafree, usershape_s::f, file_data_provider_callbacks, FORMAT_BMP, FORMAT_GIF, FORMAT_JPEG, FORMAT_NONE, FORMAT_PDF, FORMAT_PNG, FT_BMP, FT_GIF, FT_JPEG, FT_PDF, FT_PNG, gvusershape_file_access(), gvusershape_file_release(), usershape_s::name, NULL, quartz_freeimage(), and usershape_s::type.

Referenced by quartz_loadimage_quartz().

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

◆ quartz_loadimage_quartz()

static void quartz_loadimage_quartz ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 158 of file gvloadimage_quartz.c.

References GVJ_s::context, image, boxf::LL, quartz_loadimage(), boxf::UR, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

Variable Documentation

◆ engine

gvloadimage_engine_t engine
static
Initial value:
= {
}
static void quartz_loadimage_quartz(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 168 of file gvloadimage_quartz.c.

◆ file_data_provider_callbacks

CGDataProviderCallbacks file_data_provider_callbacks
static
Initial value:
= {
}
node NULL
Definition grammar.y:149
static void file_data_provider_rewind(void *info)
static void file_data_provider_skip_bytes(void *info, size_t count)
static size_t file_data_provider_get_bytes(void *info, void *buffer, size_t count)

Definition at line 57 of file gvloadimage_quartz.c.

Referenced by quartz_loadimage().

◆ gvloadimage_quartz_types

gvplugin_installed_t gvloadimage_quartz_types[]
Initial value:
= {
{FORMAT_JPEG, "jpe:quartz", 8, &engine, NULL},
{FORMAT_JPEG, "jpeg:quartz", 8, &engine, NULL},
{FORMAT_JPEG, "jpg:quartz", 8, &engine, NULL},
{FORMAT_PNG, "png:quartz", 8, &engine, NULL},
{0, NULL, 0, NULL, NULL}
}
static gvloadimage_engine_t engine
@ FORMAT_JPEG
Definition gvrender_gd.c:32
@ FORMAT_PNG
Definition gvrender_gd.c:33

Definition at line 172 of file gvloadimage_quartz.c.