Classes | Defines | Typedefs | Functions | Variables
backend_pdf.c File Reference
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include "main.h"
#include "backend_pdf.h"
#include "flate.h"
#include "lists.h"
#include "potracelib.h"
#include "auxiliary.h"
Include dependency graph for backend_pdf.c:

Go to the source code of this file.

Classes

struct  intarray_s

Defines

#define black   0x000000
#define blue   0x0000ff
#define green   0x008000
#define red   0xff0000

Typedefs

typedef int color_t
typedef struct intarray_s intarray_t

Functions

int init_pdf (FILE *fout)
static void intarray_init (intarray_t *ar)
static int intarray_set (intarray_t *ar, int n, int val)
static void intarray_term (intarray_t *ar)
int page_pdf (FILE *fout, potrace_path_t *plist, imginfo_t *imginfo)
static void pdf_callbacks (FILE *fout)
static char * pdf_colorstring (const color_t col)
static void pdf_coords (dpoint_t p)
static void pdf_curveto (dpoint_t p1, dpoint_t p2, dpoint_t p3)
static void pdf_lineto (dpoint_t p)
static void pdf_moveto (dpoint_t p)
static void pdf_pageinit (imginfo_t *imginfo)
static void pdf_pageterm (void)
static int pdf_path (potrace_curve_t *curve)
static int pdf_render (potrace_path_t *plist)
static void pdf_setcolor (const color_t col)
static int render0 (potrace_path_t *plist)
static int render0_opaque (potrace_path_t *plist)
static int ship (const char *fmt,...)
static int shipclear (char *fmt,...)
int term_pdf (FILE *fout)
static point_t unit (dpoint_t p)

Variables

static int npages
static int nxref = 0
static size_t outcount
static intarray_t pages
static color_t pdf_color = -1
static double pdf_width = -1
static int streamofs
static intarray_t xref
static int(* xship )(FILE *f, int filter, char *s, int len)
static FILE * xship_file

Define Documentation

#define black   0x000000

Definition at line 29 of file backend_pdf.c.

#define blue   0x0000ff

Definition at line 32 of file backend_pdf.c.

#define green   0x008000

Definition at line 31 of file backend_pdf.c.

#define red   0xff0000

Definition at line 30 of file backend_pdf.c.


Typedef Documentation

typedef int color_t

Definition at line 27 of file backend_pdf.c.

typedef struct intarray_s intarray_t

Definition at line 41 of file backend_pdf.c.


Function Documentation

int init_pdf ( FILE *  fout)

Definition at line 274 of file backend_pdf.c.

static void intarray_init ( intarray_t ar) [inline, static]

Definition at line 43 of file backend_pdf.c.

static int intarray_set ( intarray_t ar,
int  n,
int  val 
) [inline, static]

Definition at line 56 of file backend_pdf.c.

static void intarray_term ( intarray_t ar) [inline, static]

Definition at line 48 of file backend_pdf.c.

int page_pdf ( FILE *  fout,
potrace_path_t plist,
imginfo_t imginfo 
)

Definition at line 385 of file backend_pdf.c.

static void pdf_callbacks ( FILE *  fout) [static]

Definition at line 126 of file backend_pdf.c.

static char* pdf_colorstring ( const color_t  col) [static]

Definition at line 174 of file backend_pdf.c.

static void pdf_coords ( dpoint_t  p) [static]

Definition at line 148 of file backend_pdf.c.

static void pdf_curveto ( dpoint_t  p1,
dpoint_t  p2,
dpoint_t  p3 
) [static]

Definition at line 163 of file backend_pdf.c.

static void pdf_lineto ( dpoint_t  p) [static]

Definition at line 158 of file backend_pdf.c.

static void pdf_moveto ( dpoint_t  p) [static]

Definition at line 153 of file backend_pdf.c.

static void pdf_pageinit ( imginfo_t imginfo) [static]

Definition at line 333 of file backend_pdf.c.

static void pdf_pageterm ( void  ) [static]

Definition at line 372 of file backend_pdf.c.

static int pdf_path ( potrace_curve_t curve) [static]

Definition at line 208 of file backend_pdf.c.

static int pdf_render ( potrace_path_t plist) [static]

Definition at line 263 of file backend_pdf.c.

static void pdf_setcolor ( const color_t  col) [static]

Definition at line 198 of file backend_pdf.c.

static int render0 ( potrace_path_t plist) [static]

Definition at line 235 of file backend_pdf.c.

static int render0_opaque ( potrace_path_t plist) [static]

Definition at line 250 of file backend_pdf.c.

static int ship ( const char *  fmt,
  ... 
) [static]

Definition at line 96 of file backend_pdf.c.

static int shipclear ( char *  fmt,
  ... 
) [static]

Definition at line 112 of file backend_pdf.c.

int term_pdf ( FILE *  fout)

Definition at line 303 of file backend_pdf.c.

static point_t unit ( dpoint_t  p) [inline, static]

Definition at line 140 of file backend_pdf.c.


Variable Documentation

int npages [static]

Definition at line 79 of file backend_pdf.c.

int nxref = 0 [static]

Definition at line 77 of file backend_pdf.c.

size_t outcount [static]

Definition at line 81 of file backend_pdf.c.

intarray_t pages [static]

Definition at line 78 of file backend_pdf.c.

color_t pdf_color = -1 [static]

Definition at line 195 of file backend_pdf.c.

double pdf_width = -1 [static]

Definition at line 196 of file backend_pdf.c.

int streamofs [static]

Definition at line 80 of file backend_pdf.c.

intarray_t xref [static]

Definition at line 76 of file backend_pdf.c.

int(* xship)(FILE *f, int filter, char *s, int len) [static]

Definition at line 92 of file backend_pdf.c.

FILE* xship_file [static]

Definition at line 93 of file backend_pdf.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


portrait_painter
Author(s): Niklas Meinzer, Ina Baumgarten
autogenerated on Wed Dec 26 2012 16:00:43