1 |
< |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ SGI"; |
29 |
|
|
30 |
|
#undef NOPROTO |
31 |
|
#define NOPROTO 1 |
32 |
+ |
#include "color.h" |
33 |
|
#include "tonemap.h" |
34 |
|
#include "view.h" |
35 |
|
#include "x11raster.h" |
36 |
|
#include "random.h" |
37 |
|
#include "resolu.h" |
38 |
|
|
38 |
– |
#ifndef int4 |
39 |
– |
#define int4 int /* most int's are 32-bit */ |
40 |
– |
#endif |
41 |
– |
|
39 |
|
#define FONTNAME "8x13" /* text font we'll use */ |
40 |
|
|
41 |
|
#define CTRL(c) ((c)-'@') |
250 |
|
} |
251 |
|
|
252 |
|
|
253 |
+ |
int |
254 |
|
headline(s) /* get relevant info from header */ |
255 |
|
char *s; |
256 |
|
{ |
262 |
|
wrongformat = strcmp(fmt, COLRFMT); |
263 |
|
else if (isview(s) && sscanview(&ourview, s) > 0) |
264 |
|
gotview++; |
265 |
+ |
return(0); |
266 |
|
} |
267 |
|
|
268 |
|
|
735 |
|
case 't': /* trace */ |
736 |
|
return(traceray(ekey->x, ekey->y)); |
737 |
|
case 'a': /* auto exposure */ |
738 |
+ |
if (fname == NULL) |
739 |
+ |
return(-1); |
740 |
|
tmflags = TM_F_CAMERA; |
741 |
|
strcpy(buf, "auto exposure..."); |
742 |
|
goto remap; |
743 |
|
case 'h': /* human response */ |
744 |
+ |
if (fname == NULL) |
745 |
+ |
return(-1); |
746 |
|
tmflags = TM_F_HUMAN; |
747 |
|
strcpy(buf, "human exposure..."); |
748 |
|
goto remap; |