![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://coin3d.github.io https://www.kongsberg.com/en/kogt/ |
#include <simage_cgimage.h>
#include <CoreFoundation/CoreFoundation.h>
#include <ApplicationServices/ApplicationServices.h>
Go to the source code of this file.
Enumerations | |
enum | { ERR_NO_ERROR, ERR_OPEN, ERR_READ, ERR_MEM, ERR_OPEN_WRITE, ERR_WRITE, ERR_NOT_IMPLEMENTED, ERR_INIT } |
Functions | |
static CGImageSourceRef | create_image_source (const char *file) |
int | simage_cgimage_error (char *cstr, int buflen) |
int | simage_cgimage_identify (const char *file, const unsigned char *header, int headerlen) |
unsigned char * | simage_cgimage_load (const char *file, 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) |
Variables | |
static int | cgimageerror = ERR_NO_ERROR |
anonymous enum |
Enumerator | |
---|---|
ERR_NO_ERROR | |
ERR_OPEN | |
ERR_READ | |
ERR_MEM | |
ERR_OPEN_WRITE | |
ERR_WRITE | |
ERR_NOT_IMPLEMENTED | |
ERR_INIT |
Definition at line 22 of file simage_cgimage.c.
|
static |
Definition at line 36 of file simage_cgimage.c.
Referenced by simage_cgimage_identify(), and simage_cgimage_load().
int simage_cgimage_error | ( | char * | cstr, |
int | buflen | ||
) |
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 * | file, |
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 * | file, |
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().
|
static |
Definition at line 33 of file simage_cgimage.c.
Referenced by simage_cgimage_error(), simage_cgimage_load(), and simage_cgimage_save().