|
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_rgb.h>#include <simage_private.h>#include <string.h>#include <stdlib.h>#include <stdio.h>Data Structures | |
| struct | simage_rgb_opendata |
Macros | |
| #define | ERR_NO_ERROR 0 |
| #define | ERR_OPEN 1 |
| #define | ERR_READ 2 |
| #define | ERR_MEM 3 |
| #define | ERR_SIZEZ 4 |
| #define | ERR_OPEN_WRITE 5 |
Functions | |
| unsigned char * | simage_rgb_load (const char *filename, int *width, int *height, int *numcomponents) |
| static int | write_short (FILE *fp, unsigned short val) |
| int | simage_rgb_save (const char *filename, const unsigned char *bytes, int width, int height, int comp) |
| int | simage_rgb_identify (const char *filename, const unsigned char *header, int headerlen) |
| int | simage_rgb_error (char *buffer, int buflen) |
| static int | read_short (FILE *in, short *dst, int n, int swap) |
| static int | read_ushort (FILE *in, unsigned short *dst, int n, int swap) |
| static int | read_int (FILE *in, int *dst, int n, int swap) |
| static int | read_uint (FILE *in, unsigned int *dst, int n, int swap) |
| void * | simage_rgb_open (const char *filename, int *width, int *height, int *numcomponents) |
| void | simage_rgb_close (void *opendata) |
| static int | read_rgb_row_component (simage_rgb_opendata *od, int y, int c) |
| int | simage_rgb_read_line (void *opendata, int y, unsigned char *buf) |
Variables | |
| static int | rgberror = 0 |
| #define ERR_NO_ERROR 0 |
| #define ERR_OPEN 1 |
| #define ERR_READ 2 |
| #define ERR_MEM 3 |
| #define ERR_SIZEZ 4 |
| #define ERR_OPEN_WRITE 5 |
| unsigned char* simage_rgb_load | ( | const char * | filename, |
| int * | width, | ||
| int * | height, | ||
| int * | numcomponents | ||
| ) |
|
static |
| int simage_rgb_save | ( | const char * | filename, |
| const unsigned char * | bytes, | ||
| int | width, | ||
| int | height, | ||
| int | comp | ||
| ) |
| int simage_rgb_identify | ( | const char * | filename, |
| const unsigned char * | header, | ||
| int | headerlen | ||
| ) |
| int simage_rgb_error | ( | char * | buffer, |
| int | buflen | ||
| ) |
|
static |
|
static |
|
static |
|
static |
| void* simage_rgb_open | ( | const char * | filename, |
| int * | width, | ||
| int * | height, | ||
| int * | numcomponents | ||
| ) |
| void simage_rgb_close | ( | void * | opendata | ) |
|
static |
| int simage_rgb_read_line | ( | void * | opendata, |
| int | y, | ||
| unsigned char * | buf | ||
| ) |
|
static |