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

Macros

#define ERROR_MEMORY   3
 
#define ERROR_NO_ERROR   0
 
#define ERROR_READ_ERROR   4
 
#define ERROR_READING_HEADER   1
 
#define ERROR_READING_PALETTE   2
 

Functions

static int readint16 (FILE *fp, int *res)
 
int simage_pic_error (char *buffer, int bufferlen)
 
int simage_pic_identify (const char *ptr, const unsigned char *header, int headerlen)
 
unsigned char * simage_pic_load (const char *filename, int *width_ret, int *height_ret, int *numComponents_ret)
 

Variables

static int picerror = 0
 

Macro Definition Documentation

◆ ERROR_MEMORY

#define ERROR_MEMORY   3

◆ ERROR_NO_ERROR

#define ERROR_NO_ERROR   0

◆ ERROR_READ_ERROR

#define ERROR_READ_ERROR   4

◆ ERROR_READING_HEADER

#define ERROR_READING_HEADER   1

◆ ERROR_READING_PALETTE

#define ERROR_READING_PALETTE   2

Function Documentation

◆ readint16()

static int readint16 ( FILE * fp,
int * res )
static

◆ simage_pic_error()

int simage_pic_error ( char * buffer,
int bufferlen )

◆ simage_pic_identify()

int simage_pic_identify ( const char * ptr,
const unsigned char * header,
int headerlen )

◆ simage_pic_load()

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

Variable Documentation

◆ picerror

int picerror = 0
static