simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
simage_gif.c File Reference
#include <config.h>
#include <simage_gif.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <gif_lib.h>

Macros

#define FALSE   false
 

Enumerations

enum  {
  ERR_NO_ERROR , ERR_OPEN , ERR_READ , ERR_WRITE ,
  ERR_MEM
}
 

Functions

static void decode_row (GifFileType *giffile, unsigned char *buffer, unsigned char *rowdata, int x, int y, int len, int transparent)
 
int simage_gif_error (char *buffer, int buflen)
 
int simage_gif_identify (const char *filename, const unsigned char *header, int headerlen)
 
unsigned char * simage_gif_load (const char *filename, int *width_ret, int *height_ret, int *numComponents_ret)
 
int simage_gif_save (const char *filename, const unsigned char *bytes, int width, int height, int numcomponents)
 

Variables

static int giferror = ERR_NO_ERROR
 

Macro Definition Documentation

◆ FALSE

#define FALSE   false

GIF loader, using giflib or libungif. Based, in part, on source code found in libungif, gif2rgb.c

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ERR_NO_ERROR 
ERR_OPEN 
ERR_READ 
ERR_WRITE 
ERR_MEM 

Function Documentation

◆ decode_row()

static void decode_row ( GifFileType * giffile,
unsigned char * buffer,
unsigned char * rowdata,
int x,
int y,
int len,
int transparent )
static

◆ simage_gif_error()

int simage_gif_error ( char * buffer,
int buflen )

◆ simage_gif_identify()

int simage_gif_identify ( const char * filename,
const unsigned char * header,
int headerlen )

◆ simage_gif_load()

unsigned char * simage_gif_load ( const char * filename,
int * width_ret,
int * height_ret,
int * numComponents_ret )

◆ simage_gif_save()

int simage_gif_save ( const char * filename,
const unsigned char * bytes,
int width,
int height,
int numcomponents )

Variable Documentation

◆ giferror

int giferror = ERR_NO_ERROR
static