Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
#include <config.h>
#include <simage_pic.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Macros | |
#define | ERROR_NO_ERROR 0 |
#define | ERROR_READING_HEADER 1 |
#define | ERROR_READING_PALETTE 2 |
#define | ERROR_MEMORY 3 |
#define | ERROR_READ_ERROR 4 |
Functions | |
int | simage_pic_error (char *buffer, int bufferlen) |
static int | readint16 (FILE *fp, int *res) |
int | simage_pic_identify (const char *ptr, const unsigned char *header, int headerlen) |
unsigned char * | simage_pic_load (const char *filename, int *width_ret, int *height_ret, int *numComponents_ret) |
Variables | |
static int | picerror = 0 |
#define ERROR_NO_ERROR 0 |
#define ERROR_READING_HEADER 1 |
#define ERROR_READING_PALETTE 2 |
#define ERROR_MEMORY 3 |
#define ERROR_READ_ERROR 4 |
int simage_pic_error | ( | char * | buffer, |
int | bufferlen | ||
) |
|
static |
int simage_pic_identify | ( | const char * | ptr, |
const unsigned char * | header, | ||
int | headerlen | ||
) |
unsigned char* simage_pic_load | ( | const char * | filename, |
int * | width_ret, | ||
int * | height_ret, | ||
int * | numComponents_ret | ||
) |
|
static |