Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://coin3d.github.io
https://www.kongsberg.com/en/kogt/
simage_eps.c File Reference
#include <config.h>
#include <simage_eps.h>
#include <string.h>
#include <stdio.h>
#include <math.h>

Macros

#define ERR_NO_ERROR   0
 
#define ERR_OPEN_WRITE   1
 
#define ROWLEN   72
 

Functions

int simage_eps_error (char *buffer, int buflen)
 
static int encode_ascii85 (const unsigned char *in, unsigned char *out)
 
static void output_ascii85 (FILE *fp, const unsigned char val, unsigned char *tuple, unsigned char *linebuf, int *tuplecnt, int *linecnt, int rowlen, int flush)
 
static void flush_ascii85 (FILE *fp, unsigned char *tuple, unsigned char *linebuf, int *tuplecnt, int *linecnt, int rowlen)
 
int simage_eps_save (const char *filename, const unsigned char *src, int width, int height, int nc)
 

Variables

static int epserror = 0
 

Macro Definition Documentation

◆ ERR_NO_ERROR

#define ERR_NO_ERROR   0

◆ ERR_OPEN_WRITE

#define ERR_OPEN_WRITE   1

◆ ROWLEN

#define ROWLEN   72

Function Documentation

◆ simage_eps_error()

int simage_eps_error ( char *  buffer,
int  buflen 
)

◆ encode_ascii85()

static int encode_ascii85 ( const unsigned char *  in,
unsigned char *  out 
)
static

◆ output_ascii85()

static void output_ascii85 ( FILE *  fp,
const unsigned char  val,
unsigned char *  tuple,
unsigned char *  linebuf,
int *  tuplecnt,
int *  linecnt,
int  rowlen,
int  flush 
)
static

◆ flush_ascii85()

static void flush_ascii85 ( FILE *  fp,
unsigned char *  tuple,
unsigned char *  linebuf,
int *  tuplecnt,
int *  linecnt,
int  rowlen 
)
static

◆ simage_eps_save()

int simage_eps_save ( const char *  filename,
const unsigned char *  src,
int  width,
int  height,
int  nc 
)

Variable Documentation

◆ epserror

int epserror = 0
static