#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include "potracelib.h"
#include "curve.h"
#include "main.h"
#include "backend_eps.h"
#include "flate.h"
#include "lists.h"
#include "auxiliary.h"
Go to the source code of this file.
Defines | |
#define | black 0x000000 |
#define | blue 0x0000ff |
#define | green 0x008000 |
#define | red 0xff0000 |
#define | SAFE_MALLOC(var, n, typ) if ((var = (typ *)malloc((n)*sizeof(typ))) == NULL) goto malloc_error |
Typedefs | |
typedef int | color_t |
Functions | |
static void | eps_callbacks (FILE *fout) |
static char * | eps_colorstring (const color_t col) |
static void | eps_coords (dpoint_t p) |
static void | eps_curveto (dpoint_t p1, dpoint_t p2, dpoint_t p3) |
static int | eps_init (imginfo_t *imginfo) |
static void | eps_jaggy (potrace_path_t *plist) |
static void | eps_L (privcurve_t *curve, const color_t col) |
static void | eps_lineto (dpoint_t p) |
static void | eps_linewidth (double w) |
static void | eps_moveto (dpoint_t p) |
static void | eps_moveto_offs (dpoint_t p, double xoffs, double yoffs) |
static void | eps_pageinit_ps (imginfo_t *imginfo) |
static void | eps_pageterm_ps (void) |
static int | eps_path (privcurve_t *curve) |
static int | eps_path_long (privcurve_t *curve) |
static int | eps_path_short (privcurve_t *curve) |
static void | eps_polygon (privcurve_t *curve, const color_t col) |
static void | eps_rcoords (dpoint_t p) |
static int | eps_render (potrace_path_t *plist) |
static void | eps_setcolor (const color_t col) |
static int | eps_term (void) |
int | init_ps (FILE *fout) |
int | page_eps (FILE *fout, potrace_path_t *plist, imginfo_t *imginfo) |
int | page_ps (FILE *fout, potrace_path_t *plist, imginfo_t *imginfo) |
static int | render0 (potrace_path_t *plist) |
static int | render0_opaque (potrace_path_t *plist) |
static int | render1 (potrace_path_t *plist) |
static int | render2 (potrace_path_t *plist) |
static int | render_debug (potrace_path_t *plist) |
static int | ship (const char *fmt,...) |
static int | shipcom (char *fmt,...) |
int | term_ps (FILE *fout) |
static point_t | unit (dpoint_t p) |
Variables | |
static point_t | cur |
static char * | debugmacros = "/times2 { /Times-Roman findfont unit 2 mul scalefont setfont 0 0 0 setrgbcolor } def\n" |
static color_t | eps_color = -1 |
static int | eps_pagenumber |
static double | eps_width = -1 |
static char * | optimacros = "/w{%s z fill}D\n" |
static int(* | xship )(FILE *f, int filter, char *s, int len) |
static FILE * | xship_file |
#define black 0x000000 |
Definition at line 35 of file backend_eps.c.
#define blue 0x0000ff |
Definition at line 38 of file backend_eps.c.
#define green 0x008000 |
Definition at line 37 of file backend_eps.c.
#define red 0xff0000 |
Definition at line 36 of file backend_eps.c.
#define SAFE_MALLOC | ( | var, | |
n, | |||
typ | |||
) | if ((var = (typ *)malloc((n)*sizeof(typ))) == NULL) goto malloc_error |
Definition at line 30 of file backend_eps.c.
typedef int color_t |
Definition at line 33 of file backend_eps.c.
static void eps_callbacks | ( | FILE * | fout | ) | [static] |
Definition at line 83 of file backend_eps.c.
static char* eps_colorstring | ( | const color_t | col | ) | [static] |
Definition at line 155 of file backend_eps.c.
static void eps_coords | ( | dpoint_t | p | ) | [static] |
Definition at line 109 of file backend_eps.c.
static void eps_curveto | ( | dpoint_t | p1, |
dpoint_t | p2, | ||
dpoint_t | p3 | ||
) | [static] |
Definition at line 142 of file backend_eps.c.
Definition at line 680 of file backend_eps.c.
static void eps_jaggy | ( | potrace_path_t * | plist | ) | [static] |
Definition at line 320 of file backend_eps.c.
static void eps_L | ( | privcurve_t * | curve, |
const color_t | col | ||
) | [static] |
Definition at line 373 of file backend_eps.c.
static void eps_lineto | ( | dpoint_t | p | ) | [static] |
Definition at line 137 of file backend_eps.c.
static void eps_linewidth | ( | double | w | ) | [static] |
Definition at line 188 of file backend_eps.c.
static void eps_moveto | ( | dpoint_t | p | ) | [static] |
Definition at line 122 of file backend_eps.c.
static void eps_moveto_offs | ( | dpoint_t | p, |
double | xoffs, | ||
double | yoffs | ||
) | [static] |
Definition at line 128 of file backend_eps.c.
static void eps_pageinit_ps | ( | imginfo_t * | imginfo | ) | [static] |
Definition at line 790 of file backend_eps.c.
static void eps_pageterm_ps | ( | void | ) | [static] |
Definition at line 811 of file backend_eps.c.
static int eps_path | ( | privcurve_t * | curve | ) | [static] |
Definition at line 307 of file backend_eps.c.
static int eps_path_long | ( | privcurve_t * | curve | ) | [static] |
Definition at line 203 of file backend_eps.c.
static int eps_path_short | ( | privcurve_t * | curve | ) | [static] |
Definition at line 227 of file backend_eps.c.
static void eps_polygon | ( | privcurve_t * | curve, |
const color_t | col | ||
) | [static] |
Definition at line 359 of file backend_eps.c.
static void eps_rcoords | ( | dpoint_t | p | ) | [static] |
Definition at line 114 of file backend_eps.c.
static int eps_render | ( | potrace_path_t * | plist | ) | [static] |
Definition at line 653 of file backend_eps.c.
static void eps_setcolor | ( | const color_t | col | ) | [static] |
Definition at line 179 of file backend_eps.c.
static int eps_term | ( | void | ) | [static] |
Definition at line 719 of file backend_eps.c.
int init_ps | ( | FILE * | fout | ) |
Definition at line 748 of file backend_eps.c.
int page_eps | ( | FILE * | fout, |
potrace_path_t * | plist, | ||
imginfo_t * | imginfo | ||
) |
Definition at line 726 of file backend_eps.c.
int page_ps | ( | FILE * | fout, |
potrace_path_t * | plist, | ||
imginfo_t * | imginfo | ||
) |
Definition at line 816 of file backend_eps.c.
static int render0 | ( | potrace_path_t * | plist | ) | [static] |
Definition at line 447 of file backend_eps.c.
static int render0_opaque | ( | potrace_path_t * | plist | ) | [static] |
Definition at line 473 of file backend_eps.c.
static int render1 | ( | potrace_path_t * | plist | ) | [static] |
Definition at line 493 of file backend_eps.c.
static int render2 | ( | potrace_path_t * | plist | ) | [static] |
Definition at line 540 of file backend_eps.c.
static int render_debug | ( | potrace_path_t * | plist | ) | [static] |
Definition at line 585 of file backend_eps.c.
Definition at line 53 of file backend_eps.c.
static int shipcom | ( | char * | fmt, |
... | |||
) | [static] |
Definition at line 69 of file backend_eps.c.
int term_ps | ( | FILE * | fout | ) |
Definition at line 779 of file backend_eps.c.
Definition at line 98 of file backend_eps.c.
Definition at line 107 of file backend_eps.c.
char* debugmacros = "/times2 { /Times-Roman findfont unit 2 mul scalefont setfont 0 0 0 setrgbcolor } def\n" [static] |
Definition at line 429 of file backend_eps.c.
Definition at line 176 of file backend_eps.c.
int eps_pagenumber [static] |
Definition at line 746 of file backend_eps.c.
double eps_width = -1 [static] |
Definition at line 177 of file backend_eps.c.
char* optimacros = "/w{%s z fill}D\n" [static] |
Definition at line 401 of file backend_eps.c.
Definition at line 49 of file backend_eps.c.
FILE* xship_file [static] |
Definition at line 50 of file backend_eps.c.