--- ray/src/common/normcodec.h 2019/07/26 17:04:12 2.2 +++ ray/src/common/normcodec.h 2022/08/24 19:55:58 2.5 @@ -1,8 +1,8 @@ -/* RCSid $Id: normcodec.h,v 2.2 2019/07/26 17:04:12 greg Exp $ */ +/* RCSid $Id: normcodec.h,v 2.5 2022/08/24 19:55:58 greg Exp $ */ /* * Definitions and declarations for 32-bit vector normal encode/decode * - * Include after stdio.h and fvect.h + * Include after rtio.h and fvect.h * Includes resolu.h */ @@ -29,10 +29,10 @@ extern "C" { typedef struct { FILE *finp; /* input stream */ const char *inpname; /* input name */ - int format; /* decoded format */ + short format; /* decoded format */ + short swapped; /* byte-swapped input */ long dstart; /* start of data */ - long curpos; /* current input position */ - int hdrflags; /* header i/o flags */ + short hdrflags; /* header i/o flags */ char inpfmt[MAXFMTLEN]; /* format from header */ RESOLU res; /* input resolution */ } NORMCODEC;