68 |
|
#define YDECR 2 |
69 |
|
#define YMAJOR 4 |
70 |
|
|
71 |
+ |
/* picture format identifier */ |
72 |
+ |
#define COLRFMT "32-bit_rle_rgbe" |
73 |
+ |
|
74 |
|
/* macros for exposures */ |
75 |
|
#define EXPOSSTR "EXPOSURE=" |
76 |
< |
#define EXPOSSTRL 9 |
77 |
< |
#define isexpos(hl) (!strncmp(hl,EXPOSSTR,EXPOSSTRL)) |
78 |
< |
#define exposval(hl) atof((hl)+EXPOSSTRL) |
76 |
> |
#define LEXPOSSTR 9 |
77 |
> |
#define isexpos(hl) (!strncmp(hl,EXPOSSTR,LEXPOSSTR)) |
78 |
> |
#define exposval(hl) atof((hl)+LEXPOSSTR) |
79 |
|
#define fputexpos(ex,fp) fprintf(fp,"%s%e\n",EXPOSSTR,ex) |
80 |
|
|
81 |
|
/* macros for pixel aspect ratios */ |
82 |
|
#define ASPECTSTR "PIXASPECT=" |
83 |
< |
#define ASPECTSTRL 10 |
84 |
< |
#define isaspect(hl) (!strncmp(hl,ASPECTSTR,ASPECTSTRL)) |
85 |
< |
#define aspectval(hl) atof((hl)+ASPECTSTRL) |
83 |
> |
#define LASPECTSTR 10 |
84 |
> |
#define isaspect(hl) (!strncmp(hl,ASPECTSTR,LASPECTSTR)) |
85 |
> |
#define aspectval(hl) atof((hl)+LASPECTSTR) |
86 |
|
#define fputaspect(pa,fp) fprintf(fp,"%s%f\n",ASPECTSTR,pa) |
87 |
|
|
88 |
|
/* macros for color correction */ |
89 |
|
#define COLCORSTR "COLORCORR=" |
90 |
< |
#define COLCORSTRL 10 |
91 |
< |
#define iscolcor(hl) (!strncmp(hl,COLCORSTR,COLCORSTRL)) |
92 |
< |
#define colcorval(cc,hl) sscanf(hl+COLCORSTRL,"%f %f %f", \ |
90 |
> |
#define LCOLCORSTR 10 |
91 |
> |
#define iscolcor(hl) (!strncmp(hl,COLCORSTR,LCOLCORSTR)) |
92 |
> |
#define colcorval(cc,hl) sscanf(hl+LCOLCORSTR,"%f %f %f", \ |
93 |
|
&(cc)[RED],&(cc)[GRN],&(cc)[BLU]) |
94 |
|
#define fputcolcor(cc,fp) fprintf(fp,"%s %f %f %f\n",COLCORSTR, \ |
95 |
|
(cc)[RED],(cc)[GRN],(cc)[BLU]) |