Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://coin3d.github.io
https://www.kongsberg.com/en/kogt/
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 QT4   0
 
#define ERR_NO_ERROR   0
 
#define ERR_OPEN   1
 
#define ERR_MEM   2
 
#define ERR_QIMAGE_WRITE   5
 
#define ERR_UNSUPPORTED_WRITE   6
 
#define MAX_EXT_LEN   255
 

Functions

int simage_qimage_error (char *buffer, int buflen)
 
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)
 
static int qimage_set_save_format (const char *ext, char *buf)
 
char * simage_qimage_get_savers (void)
 
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

◆ QT4

#define QT4   0

◆ ERR_NO_ERROR

#define ERR_NO_ERROR   0

◆ ERR_OPEN

#define ERR_OPEN   1

◆ ERR_MEM

#define ERR_MEM   2

◆ ERR_QIMAGE_WRITE

#define ERR_QIMAGE_WRITE   5

◆ ERR_UNSUPPORTED_WRITE

#define ERR_UNSUPPORTED_WRITE   6

◆ MAX_EXT_LEN

#define MAX_EXT_LEN   255

Function Documentation

◆ simage_qimage_error()

int simage_qimage_error ( char *  buffer,
int  buflen 
)

◆ 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 
)

◆ qimage_set_save_format()

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

◆ simage_qimage_get_savers()

char* simage_qimage_get_savers ( void  )

◆ 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