#include "config.h"
#include <stdbool.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <gvc/gvplugin_loadimage.h>
#include <common/utils.h>
#include <gvc/gvio.h>
#include "core_loadimage_xdot.h"
#include "gvrender_core_svg.h"
#include <util/agxbuf.h>
#include <util/base64.h>
Go to the source code of this file.
|
enum | {
FORMAT_PNG_XDOT
, FORMAT_GIF_XDOT
, FORMAT_JPEG_XDOT
, FORMAT_SVG_XDOT
,
FORMAT_PS_XDOT
, FORMAT_PNG_DOT
, FORMAT_GIF_DOT
, FORMAT_JPEG_DOT
,
FORMAT_SVG_DOT
, FORMAT_PS_DOT
, FORMAT_PNG_MAP
, FORMAT_GIF_MAP
,
FORMAT_JPEG_MAP
, FORMAT_SVG_MAP
, FORMAT_PS_MAP
, FORMAT_PNG_SVG
,
FORMAT_GIF_SVG
, FORMAT_JPEG_SVG
, FORMAT_SVG_SVG
, FORMAT_PNG_FIG
,
FORMAT_GIF_FIG
, FORMAT_JPEG_FIG
, FORMAT_PNG_VRML
, FORMAT_GIF_VRML
,
FORMAT_JPEG_VRML
, FORMAT_PS_PS
, FORMAT_PSLIB_PS
, FORMAT_GIF_TK
} |
|
|
shape_desc * | find_user_shape (char *name) |
|
static const char * | mime_type (imagetype_t file_type) |
|
static void | core_loadimage_svg (GVJ_t *job, usershape_t *us, boxf b, bool filled) |
|
static void | core_loadimage_fig (GVJ_t *job, usershape_t *us, boxf bf, bool filled) |
|
static void | core_loadimage_vrml (GVJ_t *job, usershape_t *us, boxf b, bool filled) |
|
static void | ps_freeimage (usershape_t *us) |
|
static void | core_loadimage_ps (GVJ_t *job, usershape_t *us, boxf b, bool filled) |
|
static void | core_loadimage_pslib (GVJ_t *job, usershape_t *us, boxf b, bool filled) |
|
static void | core_loadimage_tk (GVJ_t *job, usershape_t *us, boxf b, bool filled) |
|
static void | core_loadimage_null (GVJ_t *gvc, usershape_t *us, boxf b, bool filled) |
|
◆ anonymous enum
Enumerator |
---|
FORMAT_PNG_XDOT | |
FORMAT_GIF_XDOT | |
FORMAT_JPEG_XDOT | |
FORMAT_SVG_XDOT | |
FORMAT_PS_XDOT | |
FORMAT_PNG_DOT | |
FORMAT_GIF_DOT | |
FORMAT_JPEG_DOT | |
FORMAT_SVG_DOT | |
FORMAT_PS_DOT | |
FORMAT_PNG_MAP | |
FORMAT_GIF_MAP | |
FORMAT_JPEG_MAP | |
FORMAT_SVG_MAP | |
FORMAT_PS_MAP | |
FORMAT_PNG_SVG | |
FORMAT_GIF_SVG | |
FORMAT_JPEG_SVG | |
FORMAT_SVG_SVG | |
FORMAT_PNG_FIG | |
FORMAT_GIF_FIG | |
FORMAT_JPEG_FIG | |
FORMAT_PNG_VRML | |
FORMAT_GIF_VRML | |
FORMAT_JPEG_VRML | |
FORMAT_PS_PS | |
FORMAT_PSLIB_PS | |
FORMAT_GIF_TK | |
Definition at line 31 of file gvloadimage_core.c.
◆ core_loadimage_fig()
◆ core_loadimage_null()
◆ core_loadimage_ps()
Definition at line 248 of file gvloadimage_core.c.
References usershape_s::data, usershape_s::datafree, usershape_s::datasize, epsf_emit_body(), usershape_s::f, FT_EPS, FT_PS, gvprintf(), gvusershape_file_access(), gvusershape_file_release(), boxf::LL, usershape_s::macro_id, malloc(), usershape_s::must_inline, usershape_s::name, NULL, ps_freeimage(), read(), usershape_s::type, pointf_s::x, usershape_s::x, pointf_s::y, and usershape_s::y.
◆ core_loadimage_pslib()
◆ core_loadimage_svg()
Definition at line 90 of file gvloadimage_core.c.
References usershape_s::data, usershape_s::datasize, usershape_s::f, FORMAT_SVG_INLINE, free(), gv_base64(), gv_base64_size(), gvprintf(), gvputs(), gvusershape_file_access(), gvusershape_file_release(), gvplugin_active_render_s::id, boxf::LL, malloc(), mime_type(), usershape_s::name, NULL, GVJ_s::render, GVJ_s::rotation, usershape_s::type, boxf::UR, pointf_s::x, and pointf_s::y.
◆ core_loadimage_tk()
◆ core_loadimage_vrml()
◆ find_user_shape()
◆ mime_type()
image type → MIME type https://www.iana.org/assignments/media-types/media-types.xhtml
Definition at line 44 of file gvloadimage_core.c.
References FT_BMP, FT_EPS, FT_GIF, FT_JPEG, FT_PDF, FT_PNG, FT_PS, FT_SVG, FT_TIFF, FT_WEBP, FT_XML, and NULL.
Referenced by core_loadimage_svg().
◆ ps_freeimage()
◆ engine_fig
Initial value:= {
}
static void core_loadimage_fig(GVJ_t *job, usershape_t *us, boxf bf, bool filled)
Definition at line 363 of file gvloadimage_core.c.
◆ engine_null
Initial value:= {
}
static void core_loadimage_null(GVJ_t *gvc, usershape_t *us, boxf b, bool filled)
Definition at line 379 of file gvloadimage_core.c.
◆ engine_ps
Initial value:= {
}
static void core_loadimage_ps(GVJ_t *job, usershape_t *us, boxf b, bool filled)
Definition at line 371 of file gvloadimage_core.c.
◆ engine_pslib
Initial value:= {
}
static void core_loadimage_pslib(GVJ_t *job, usershape_t *us, boxf b, bool filled)
Definition at line 375 of file gvloadimage_core.c.
◆ engine_svg
Initial value:= {
}
static void core_loadimage_svg(GVJ_t *job, usershape_t *us, boxf b, bool filled)
Definition at line 359 of file gvloadimage_core.c.
◆ engine_tk
Initial value:= {
}
static void core_loadimage_tk(GVJ_t *job, usershape_t *us, boxf b, bool filled)
Definition at line 387 of file gvloadimage_core.c.
◆ engine_vrml
Initial value:= {
}
static void core_loadimage_vrml(GVJ_t *job, usershape_t *us, boxf b, bool filled)
Definition at line 367 of file gvloadimage_core.c.
◆ engine_xdot
Initial value:= {
}
void core_loadimage_xdot(GVJ_t *, usershape_t *, boxf, bool)
Definition at line 383 of file gvloadimage_core.c.
◆ gvloadimage_core_types