| 16 |
|
#endif |
| 17 |
|
|
| 18 |
|
/* Data types for file loading */ |
| 19 |
< |
enum {DTfromHeader=0, DTascii, DTrgbe, DTxyze, DTfloat, DTdouble, DTend}; |
| 19 |
> |
enum {DTfromHeader=0, DTrgbe, DTxyze, DTfloat, DTascii, DTdouble, DTend}; |
| 20 |
|
|
| 21 |
|
extern const char *cm_fmt_id[]; |
| 22 |
|
extern const int cm_elem_size[]; |
| 42 |
|
#define cm_free(cm) free(cm) |
| 43 |
|
|
| 44 |
|
/* Load header to obtain/check data type and matrix dimensions */ |
| 45 |
< |
extern char *cm_getheader(int *dt, int *nr, int *nc, int *swp, FILE *fp); |
| 45 |
> |
extern char *cm_getheader(int *dt, int *nr, int *nc, |
| 46 |
> |
int *swp, COLOR scale, FILE *fp); |
| 47 |
|
|
| 48 |
|
/* Allocate and load a matrix from the given input (or stdin if NULL) */ |
| 49 |
|
extern CMATRIX *cm_load(const char *inspec, int nrows, int ncols, int dtype); |