simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
simage_qimage.cpp File Reference
#include <simage_qimage.h>
#include <qglobal.h>
#include <qimage.h>
#include <qstring.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

Macros

#define ERR_MEM   2
 
#define ERR_NO_ERROR   0
 
#define ERR_OPEN   1
 
#define ERR_QIMAGE_WRITE   5
 
#define ERR_UNSUPPORTED_WRITE   6
 
#define MAX_EXT_LEN   255
 
#define QT4   0
 

Functions

static int qimage_set_save_format (const char *ext, char *buf)
 
int simage_qimage_error (char *buffer, int buflen)
 
char * simage_qimage_get_savers (void)
 
int simage_qimage_identify (const char *ptr, const unsigned char *header, int headerlen)
 
unsigned char * simage_qimage_load (const char *filename, int *width_ret, int *height_ret, int *numComponents_ret)
 
int simage_qimage_save (const char *filename, const unsigned char *bytes, int width, int height, int numcomponents, const char *filetypeext)
 

Variables

static int qimageerror = 0
 

Macro Definition Documentation

◆ ERR_MEM

#define ERR_MEM   2

◆ ERR_NO_ERROR

#define ERR_NO_ERROR   0

◆ ERR_OPEN

#define ERR_OPEN   1

◆ ERR_QIMAGE_WRITE

#define ERR_QIMAGE_WRITE   5

◆ ERR_UNSUPPORTED_WRITE

#define ERR_UNSUPPORTED_WRITE   6

◆ MAX_EXT_LEN

#define MAX_EXT_LEN   255

◆ QT4

#define QT4   0

Function Documentation

◆ qimage_set_save_format()

static int qimage_set_save_format ( const char * ext,
char * buf )
static

◆ simage_qimage_error()

int simage_qimage_error ( char * buffer,
int buflen )

◆ simage_qimage_get_savers()

char * simage_qimage_get_savers ( void )

◆ simage_qimage_identify()

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

◆ simage_qimage_load()

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

◆ simage_qimage_save()

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

Variable Documentation

◆ qimageerror

int qimageerror = 0
static