|
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
#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>Go to the source code of this file.
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 |
| #define ERR_MEM 2 |
Definition at line 40 of file simage_qimage.cpp.
Referenced by simage_qimage_error(), and simage_qimage_load().
| #define ERR_NO_ERROR 0 |
Definition at line 38 of file simage_qimage.cpp.
| #define ERR_OPEN 1 |
Definition at line 39 of file simage_qimage.cpp.
Referenced by simage_qimage_error(), and simage_qimage_load().
| #define ERR_QIMAGE_WRITE 5 |
Definition at line 41 of file simage_qimage.cpp.
Referenced by simage_qimage_error(), and simage_qimage_save().
| #define ERR_UNSUPPORTED_WRITE 6 |
Definition at line 42 of file simage_qimage.cpp.
Referenced by simage_qimage_error(), and simage_qimage_save().
| #define MAX_EXT_LEN 255 |
Definition at line 139 of file simage_qimage.cpp.
Referenced by qimage_set_save_format(), and simage_qimage_save().
| #define QT4 0 |
Definition at line 30 of file simage_qimage.cpp.
|
static |
Definition at line 142 of file simage_qimage.cpp.
References MAX_EXT_LEN.
Referenced by simage_qimage_save().
| int simage_qimage_error | ( | char * | buffer, |
| int | buflen | ||
| ) |
Definition at line 47 of file simage_qimage.cpp.
References ERR_MEM, ERR_OPEN, ERR_QIMAGE_WRITE, ERR_UNSUPPORTED_WRITE, and qimageerror.
Referenced by add_internal_loaders(), and add_internal_savers().
| char* simage_qimage_get_savers | ( | void | ) |
Definition at line 183 of file simage_qimage.cpp.
Referenced by add_internal_savers().
| int simage_qimage_identify | ( | const char * | ptr, |
| const unsigned char * | header, | ||
| int | headerlen | ||
| ) |
Definition at line 67 of file simage_qimage.cpp.
Referenced by add_internal_loaders().
| unsigned char* simage_qimage_load | ( | const char * | filename, |
| int * | width_ret, | ||
| int * | height_ret, | ||
| int * | numComponents_ret | ||
| ) |
Definition at line 79 of file simage_qimage.cpp.
References ERR_MEM, ERR_OPEN, and qimageerror.
Referenced by add_internal_loaders().
| int simage_qimage_save | ( | const char * | filename, |
| const unsigned char * | bytes, | ||
| int | width, | ||
| int | height, | ||
| int | numcomponents, | ||
| const char * | filetypeext | ||
| ) |
Definition at line 227 of file simage_qimage.cpp.
References ERR_QIMAGE_WRITE, ERR_UNSUPPORTED_WRITE, MAX_EXT_LEN, qimage_set_save_format(), and qimageerror.
Referenced by add_internal_savers().
|
static |
Definition at line 44 of file simage_qimage.cpp.
Referenced by simage_qimage_error(), simage_qimage_load(), and simage_qimage_save().