ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/meta2tga.c
(Generate patch)

Comparing ray/src/meta/meta2tga.c (file contents):
Revision 1.7 by greg, Tue Mar 19 19:34:41 2019 UTC vs.
Revision 1.8 by greg, Mon Nov 18 22:12:32 2019 UTC

# Line 23 | Line 23 | char  *progname;
23  
24   SCANBLOCK       outblock;
25  
26 < int  dxsize = DXSIZE, dysize = DYSIZE;
26 > int  dxsiz = DXSIZE, dysiz = DYSIZE;
27  
28   int  maxalloc = MAXALLOC;
29  
# Line 83 | Line 83 | main(
83            argc--;
84            break;
85         case 'x':
86 <          dxsize = atoi(*++argv);
86 >          dxsiz = atoi(*++argv);
87            argc--;
88            break;
89         case 'y':
90 <          dysize = atoi(*++argv);
90 >          dysiz = atoi(*++argv);
91            argc--;
92            break;
93         case 'o':
# Line 176 | Line 176 | initfile(void)         /* initialize this file */
176      thead.CMapBits = 24;
177      thead.XOffset = 0;
178      thead.YOffset = 0;
179 <    thead.x = dxsize;
180 <    thead.y = dysize;
179 >    thead.x = dxsiz;
180 >    thead.y = dysiz;
181      thead.dataBits = 8;
182      thead.imType = 0;
183      putthead(&thead, NULL, fout);
# Line 197 | Line 197 | nextpage(void)         /* advance to next page */
197      if (lineno == 0)
198          return;
199      if (fout != NULL) {
200 <        while (lineno < dysize) {
200 >        while (lineno < dysiz) {
201              nextblock();
202              outputblock();
203          }
# Line 222 | Line 222 | printblock(void)               /* output scanline block to file */
222  
223      if (lineno == 0)
224          initfile();
225 <    for (i = outblock.ybot; i <= outblock.ytop && i < dysize; i++) {
225 >    for (i = outblock.ybot; i <= outblock.ytop && i < dysiz; i++) {
226          scanline = outblock.cols[i-outblock.ybot];
227          for (j = outblock.xleft; j <= outblock.xright; j += cnt) {
228              for (beg = j; beg <= outblock.xright; beg += cnt) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines