2 |
|
/* |
3 |
|
* Definitions for resolution line in image file. |
4 |
|
* |
5 |
< |
* Include after <stdio.h>, <string.h>, and <time.h> |
5 |
> |
* Include after <stdio.h> |
6 |
|
* |
7 |
|
* True image orientation is defined by an xy coordinate system |
8 |
|
* whose origin is at the lower left corner of the image, with |
16 |
|
#ifndef _RAD_RESOLU_H_ |
17 |
|
#define _RAD_RESOLU_H_ |
18 |
|
|
19 |
– |
#include <time.h> |
20 |
– |
|
21 |
– |
|
19 |
|
#ifdef __cplusplus |
20 |
|
extern "C" { |
21 |
|
#endif |
52 |
|
#define fprtresolu(sl,ns,fp) fprintf(fp,PIXSTDFMT,ns,sl) |
53 |
|
#define fscnresolu(sl,ns,fp) (fscanf(fp,PIXSTDFMT,ns,sl)==2) |
54 |
|
|
55 |
< |
/* defined in resolu.c */ |
55 |
> |
/* defined in resolu.c */ |
56 |
|
extern void fputresolu(int ord, int sl, int ns, FILE *fp); |
57 |
|
extern int fgetresolu(int *sl, int *ns, FILE *fp); |
58 |
|
extern char * resolu2str(char *buf, RESOLU *rp); |
59 |
|
extern int str2resolu(RESOLU *rp, char *buf); |
63 |
– |
/* defined in header.c */ |
64 |
– |
extern void newheader(char *t, FILE *fp); |
65 |
– |
extern int isheadid(char *s); |
66 |
– |
extern int headidval(char *r, char *s); |
67 |
– |
extern int dateval(time_t *t, char *s); |
68 |
– |
extern int isdate(char *s); |
69 |
– |
extern void fputdate(time_t t, FILE *fp); |
70 |
– |
extern void fputnow(FILE *fp); |
71 |
– |
extern void printargs(int ac, char **av, FILE *fp); |
72 |
– |
extern int isformat(char *s); |
73 |
– |
extern int formatval(char *r, char *s); |
74 |
– |
extern void fputformat(char *s, FILE *fp); |
75 |
– |
typedef int gethfunc(char *s, void *p); /* callback to process header lines */ |
76 |
– |
extern int getheader(FILE *fp, gethfunc *f, void *p); |
77 |
– |
extern int globmatch(char *pat, char *str); |
78 |
– |
extern int checkheader(FILE *fin, char *fmt, FILE *fout); |
60 |
|
|
61 |
|
#ifdef __cplusplus |
62 |
|
} |