24 |
|
#define HF_ALL 0xf |
25 |
|
#define HF_ENCODE 0x10 |
26 |
|
|
27 |
< |
/* Structure for encoding/decoding depths and world points */ |
27 |
> |
/* Structure for encoding/decoding normals */ |
28 |
|
typedef struct { |
29 |
|
FILE *finp; /* input stream */ |
30 |
|
const char *inpname; /* input name */ |
42 |
|
/* Load/copy header */ |
43 |
|
extern int process_nc_header(NORMCODEC *ncp, int ac, char *av[]); |
44 |
|
|
45 |
< |
/* Check that we have what we need to decode depths */ |
45 |
> |
/* Check that we have what we need to decode normals */ |
46 |
|
extern int check_decode_normals(NORMCODEC *ncp); |
47 |
|
|
48 |
|
/* Decode next normal from input */ |
51 |
|
/* Seek to the indicated pixel position */ |
52 |
|
extern int seek_nc_pix(NORMCODEC *ncp, int x, int y); |
53 |
|
|
54 |
< |
/* Read and decode depth for the given pixel */ |
54 |
> |
/* Read and decode normal for the given pixel */ |
55 |
|
extern int decode_normal_pix(FVECT nrm, NORMCODEC *ncp, int x, int y); |
56 |
|
|
57 |
|
extern char *progname; /* global argv[0] (set by main) */ |