simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
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

static int encode_ascii85 (const unsigned char *in, unsigned char *out)
 
static void flush_ascii85 (FILE *fp, unsigned char *tuple, unsigned char *linebuf, int *tuplecnt, int *linecnt, int rowlen)
 
static void output_ascii85 (FILE *fp, const unsigned char val, unsigned char *tuple, unsigned char *linebuf, int *tuplecnt, int *linecnt, int rowlen, int flush)
 
int simage_eps_error (char *buffer, int buflen)
 
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

◆ encode_ascii85()

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

◆ flush_ascii85()

static void flush_ascii85 ( FILE * fp,
unsigned char * tuple,
unsigned char * linebuf,
int * tuplecnt,
int * linecnt,
int rowlen )
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

◆ simage_eps_error()

int simage_eps_error ( char * buffer,
int buflen )

◆ 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