simage
1.8.3
Coin3D texture image library
|
#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_MEM 3 |
#define | ERR_NO_ERROR 0 |
#define | ERR_OPEN 1 |
#define | ERR_OPEN_WRITE 5 |
#define | ERR_READ 2 |
#define | ERR_SIZEZ 4 |
Functions | |
static int | read_int (FILE *in, int *dst, int n, int swap) |
static int | read_rgb_row_component (simage_rgb_opendata *od, int y, int c) |
static int | read_short (FILE *in, short *dst, int n, int swap) |
static int | read_uint (FILE *in, unsigned int *dst, int n, int swap) |
static int | read_ushort (FILE *in, unsigned short *dst, int n, int swap) |
void | simage_rgb_close (void *opendata) |
int | simage_rgb_error (char *buffer, int buflen) |
int | simage_rgb_identify (const char *filename, const unsigned char *header, int headerlen) |
unsigned char * | simage_rgb_load (const char *filename, int *width, int *height, int *numcomponents) |
void * | simage_rgb_open (const char *filename, int *width, int *height, int *numcomponents) |
int | simage_rgb_read_line (void *opendata, int y, unsigned char *buf) |
int | simage_rgb_save (const char *filename, const unsigned char *bytes, int width, int height, int comp) |
static int | write_short (FILE *fp, unsigned short val) |
Variables | |
static int | rgberror = 0 |
#define ERR_MEM 3 |
#define ERR_NO_ERROR 0 |
#define ERR_OPEN 1 |
#define ERR_OPEN_WRITE 5 |
#define ERR_READ 2 |
#define ERR_SIZEZ 4 |
|
static |
|
static |
|
static |
|
static |
|
static |
void simage_rgb_close | ( | void * | opendata | ) |
int simage_rgb_error | ( | char * | buffer, |
int | buflen ) |
int simage_rgb_identify | ( | const char * | filename, |
const unsigned char * | header, | ||
int | headerlen ) |
unsigned char * simage_rgb_load | ( | const char * | filename, |
int * | width, | ||
int * | height, | ||
int * | numcomponents ) |
void * simage_rgb_open | ( | const char * | filename, |
int * | width, | ||
int * | height, | ||
int * | numcomponents ) |
int simage_rgb_read_line | ( | void * | opendata, |
int | y, | ||
unsigned char * | buf ) |
int simage_rgb_save | ( | const char * | filename, |
const unsigned char * | bytes, | ||
int | width, | ||
int | height, | ||
int | comp ) |
|
static |
|
static |