Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://coin3d.github.io
https://www.kongsberg.com/en/kogt/
Functions
simage_cgimage.h File Reference
#include <config.h>

Go to the source code of this file.

Functions

int simage_cgimage_error (char *textbuffer, int buffersize)
 
int simage_cgimage_identify (const char *filename, const unsigned char *header, int headerlen)
 
unsigned char * simage_cgimage_load (const char *filename, int *width, int *height, int *numcomponents)
 
char * simage_cgimage_get_savers (void)
 
int simage_cgimage_save (const char *filename, const unsigned char *bytes, int width, int height, int numcomponents, const char *ext)
 

Function Documentation

int simage_cgimage_error ( char *  textbuffer,
int  buffersize 
)

Definition at line 74 of file simage_cgimage.c.

References cgimageerror, ERR_NO_ERROR, and ERR_OPEN.

Referenced by add_internal_loaders(), and add_internal_savers().

char* simage_cgimage_get_savers ( void  )

Definition at line 153 of file simage_cgimage.c.

Referenced by add_internal_savers().

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

Definition at line 87 of file simage_cgimage.c.

References create_image_source().

Referenced by add_internal_loaders().

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

Definition at line 99 of file simage_cgimage.c.

References cgimageerror, simage_stream_s::context, create_image_source(), and ERR_OPEN.

Referenced by add_internal_loaders().

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

Definition at line 217 of file simage_cgimage.c.

References cgimageerror, and ERR_WRITE.

Referenced by add_internal_savers().