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

Comparing ray/src/px/pvalue.c (file contents):
Revision 2.29 by greg, Sat Dec 23 17:27:46 2006 UTC vs.
Revision 2.37 by greg, Wed Aug 14 18:20:02 2019 UTC

# Line 36 | Line 36 | int  original = 0;             /* convert to original values? */
36   int  wrongformat = 0;           /* wrong input format? */
37   double  gamcor = 1.0;           /* gamma correction */
38  
39 + RGBPRIMP  outprims = stdprims;  /* output primaries for reverse conversion */
40 + RGBPRIMS  myprims;
41 +
42   int  ord[3] = {RED, GRN, BLU};  /* RGB ordering */
43   int  rord[4];                   /* reverse ordering */
44  
# Line 90 | Line 93 | main(
93          char  **argv
94   )
95   {
96 <        double  d, expval = 1.0;
97 <        int  i;
96 >        const char      *inpmode = "r";
97 >        double          d, expval = 1.0;
98 >        int             i;
99  
100          progname = argv[0];
101          mybright = &rgb_bright; /* default */
# Line 146 | Line 150 | main(
150                          case 'b':               /* brightness values */
151                                  putprim = argv[i][0] == '-' ? BRIGHT : ALL;
152                                  break;
153 <                        case 'p':               /* put primary */
153 >                        case 'p':               /* primary controls */
154                                  switch (argv[i][2]) {
155 +                                /* these two options affect -r conversion */
156 +                                case '\0':
157 +                                        myprims[RED][CIEX] = atof(argv[++i]);
158 +                                        myprims[RED][CIEY] = atof(argv[++i]);
159 +                                        myprims[GRN][CIEX] = atof(argv[++i]);
160 +                                        myprims[GRN][CIEY] = atof(argv[++i]);
161 +                                        myprims[BLU][CIEX] = atof(argv[++i]);
162 +                                        myprims[BLU][CIEY] = atof(argv[++i]);
163 +                                        myprims[WHT][CIEX] = atof(argv[++i]);
164 +                                        myprims[WHT][CIEY] = atof(argv[++i]);
165 +                                        outprims = myprims;
166 +                                        break;
167 +                                case 'x': case 'X': outprims = NULL; break;
168 +                                /* the following options affect +r only */
169                                  case 'r': case 'R': putprim = RED; break;
170                                  case 'g': case 'G': putprim = GRN; break;
171                                  case 'b': case 'B': putprim = BLU; break;
# Line 234 | Line 252 | unkopt:
252                  else
253                          fmtid = "16-bit_grey";
254          }
255 +        if (!reverse || (format != 'a') & (format != 'i'))
256 +                inpmode = "rb";
257                                          /* assign reverse ordering */
258          rord[ord[0]] = 0;
259          rord[ord[1]] = 1;
260          rord[ord[2]] = 2;
261                                          /* get input */
262          if (i == argc) {
263 +                long    n = skipbytes;
264 +                if (inpmode[1] == 'b')
265 +                        SET_FILE_BINARY(stdin);
266 +                while (n-- > 0)
267 +                        if (getchar() == EOF) {
268 +                                fprintf(stderr,
269 +                                "%s: cannot skip %ld bytes on standard input\n",
270 +                                                progname, skipbytes);
271 +                                quit(1);
272 +                        }
273                  fin = stdin;
274          } else if (i < argc) {
275 <                if ((fin = fopen(argv[i], "r")) == NULL) {
275 >                if ((fin = fopen(argv[i], inpmode)) == NULL) {
276                          fprintf(stderr, "%s: can't open file \"%s\"\n",
277                                                  progname, argv[i]);
278                          quit(1);
279                  }
280                  if (reverse && putprim != BRIGHT && i == argc-3) {
281 <                        if ((fin2 = fopen(argv[i+1], "r")) == NULL) {
281 >                        if ((fin2 = fopen(argv[i+1], inpmode)) == NULL) {
282                                  fprintf(stderr, "%s: can't open file \"%s\"\n",
283                                                  progname, argv[i+1]);
284                                  quit(1);
285                          }
286 <                        if ((fin3 = fopen(argv[i+2], "r")) == NULL) {
286 >                        if ((fin3 = fopen(argv[i+2], inpmode)) == NULL) {
287                                  fprintf(stderr, "%s: can't open file \"%s\"\n",
288                                                  progname, argv[i+2]);
289                                  quit(1);
# Line 262 | Line 292 | unkopt:
292                  } else if (i != argc-1)
293                          fin = NULL;
294                  if (reverse && putprim != BRIGHT && !interleave) {
295 <                        fin2 = fopen(argv[i], "r");
296 <                        fin3 = fopen(argv[i], "r");
295 >                        fin2 = fopen(argv[i], inpmode);
296 >                        fin3 = fopen(argv[i], inpmode);
297                  }
298 <                if (skipbytes && (fseek(fin, skipbytes, 0) || (fin2 != NULL &&
299 <                                (fseek(fin2, skipbytes, 0) ||
300 <                                fseek(fin3, skipbytes, 0))))) {
298 >                if (skipbytes && (fseek(fin, skipbytes, SEEK_SET) || (fin2 != NULL &&
299 >                                fseek(fin2, skipbytes, SEEK_SET) |
300 >                                fseek(fin3, skipbytes, SEEK_SET)))) {
301                          fprintf(stderr, "%s: cannot skip %ld bytes on input\n",
302                                          progname, skipbytes);
303                          quit(1);
# Line 279 | Line 309 | unkopt:
309          }
310  
311          if (reverse) {
282 #ifdef _WIN32
312                  SET_FILE_BINARY(stdout);
284                if (format != 'a' && format != 'i')
285                        SET_FILE_BINARY(fin);
286 #endif
313                                          /* get header */
314                  if (header) {
315                          if (checkheader(fin, fmtid, stdout) < 0) {
# Line 322 | Line 348 | unkopt:
348                  printargs(i, argv, stdout);
349                  if (expval < .99 || expval > 1.01)
350                          fputexpos(expval, stdout);
351 <                fputformat(COLRFMT, stdout);
351 >                if (outprims != NULL) {
352 >                        if (outprims != stdprims)
353 >                                fputprims(outprims, stdout);
354 >                        fputformat(COLRFMT, stdout);
355 >                } else                          /* XYZ data */
356 >                        fputformat(CIEFMT, stdout);
357                  putchar('\n');
358                  fputsresolu(&picres, stdout);   /* always put resolution */
359                  valtopix();
360          } else {
361 < #ifdef _WIN32
331 <                SET_FILE_BINARY(fin);
332 <                if (format != 'a' && format != 'i')
361 >                if ((format != 'a') & (format != 'i'))
362                          SET_FILE_BINARY(stdout);
334 #endif
363                                                  /* get header */
364                  getheader(fin, checkhead, NULL);
365                  if (wrongformat) {
# Line 348 | Line 376 | unkopt:
376                          printargs(i, argv, stdout);
377                          if (expval < .99 || expval > 1.01)
378                                  fputexpos(expval, stdout);
379 +                        if (swapbytes) {
380 +                                if (nativebigendian())
381 +                                        puts("BigEndian=0");
382 +                                else
383 +                                        puts("BigEndian=1");
384 +                        } else if ((format != 'a') & (format != 'i'))
385 +                                fputendian(stdout);
386                          fputformat(fmtid, stdout);
387                          putchar('\n');
388                  }
# Line 367 | Line 402 | checkhead(                             /* deal with line from header */
402          void    *p
403   )
404   {
405 <        char    fmt[32];
405 >        char    fmt[MAXFMTLEN];
406          double  d;
407          COLOR   ctmp;
408 +        int     rv;
409  
410          if (formatval(fmt, line)) {
411                  if (!strcmp(fmt, CIEFMT))
# Line 388 | Line 424 | checkhead(                             /* deal with line from header */
424                                  colval(exposure,GRN)/colval(ctmp,GRN),
425                                  colval(exposure,BLU)/colval(ctmp,BLU));
426                  doexposure++;
427 +        } else if (reverse && (rv = isbigendian(line)) >= 0) {
428 +                swapbytes = (nativebigendian() != rv);
429          } else if (header)
430                  fputs(line, stdout);
431          return(0);
# Line 397 | Line 435 | checkhead(                             /* deal with line from header */
435   static void
436   pixtoval(void)                          /* convert picture to values */
437   {
438 <        register COLOR  *scanln;
438 >        COLOR   *scanln;
439          int  dogamma;
440          COLOR  lastc;
441          RREAL  hv[2];
442          int  startprim, endprim;
443          long  startpos;
444 <        int  y;
407 <        register int  x;
444 >        int  x, y;
445  
446          scanln = (COLOR *)malloc(scanlen(&picres)*sizeof(COLOR));
447          if (scanln == NULL) {
# Line 412 | Line 449 | pixtoval(void)                         /* convert picture to values */
449                  quit(1);
450          }
451          dogamma = gamcor < .95 || gamcor > 1.05;
452 <        if (putprim == ALL && !interleave) {
452 >        if ((putprim == ALL) & !interleave) {
453                  startprim = RED; endprim = BLU;
454                  startpos = ftell(fin);
455          } else {
456                  startprim = putprim; endprim = putprim;
457          }
458          for (putprim = startprim; putprim <= endprim; putprim++) {
459 <                if (putprim != startprim && fseek(fin, startpos, 0)) {
459 >                if (putprim != startprim && fseek(fin, startpos, SEEK_SET)) {
460                          fprintf(stderr, "%s: seek error on input file\n",
461                                          progname);
462                          quit(1);
# Line 471 | Line 508 | pixtoval(void)                         /* convert picture to values */
508   static void
509   valtopix(void)                  /* convert values to a pixel file */
510   {
511 <        int  dogamma;
512 <        register COLOR  *scanln;
513 <        int  y;
514 <        register int  x;
511 >        int     dogamma;
512 >        COLOR   *scanln;
513 >        COLR    rgbe;
514 >        int     x, y;
515  
516          scanln = (COLOR *)malloc(scanlen(&picres)*sizeof(COLOR));
517          if (scanln == NULL) {
# Line 503 | Line 540 | valtopix(void)                 /* convert values to a pixel file */
540                                          pow(colval(scanln[x],BLU), gamcor));
541                          if (doexposure)
542                                  multcolor(scanln[x], exposure);
543 +                        if (uniq) {             /* uncompressed? */
544 +                                setcolr(rgbe,   scanln[x][RED],
545 +                                                scanln[x][GRN],
546 +                                                scanln[x][BLU]);
547 +                                if (putbinary(rgbe, sizeof(COLR), 1, stdout) != 1)
548 +                                        goto writerr;
549 +                        }
550                  }
551 <                if (fwritescan(scanln, scanlen(&picres), stdout) < 0) {
552 <                        fprintf(stderr, "%s: write error\n", progname);
553 <                        quit(1);
510 <                }
551 >                                                /* write scan if compressed */
552 >                if (!uniq && fwritescan(scanln, scanlen(&picres), stdout) < 0)
553 >                        goto writerr;
554          }
555          free((void *)scanln);
556 +        return;
557 + writerr:
558 +        fprintf(stderr, "%s: write error\n", progname);
559 +        quit(1);
560   }
561  
562  
# Line 550 | Line 597 | getcdouble(            /* get a double color value from stream(s
597          double  vd[3];
598  
599          if (fin2 == NULL) {
600 <                if (fread((char *)vd, sizeof(double), 3, fin) != 3)
600 >                if (getbinary(vd, sizeof(double), 3, fin) != 3)
601                          return(-1);
602          } else {
603 <                if (fread((char *)vd, sizeof(double), 1, fin) != 1 ||
604 <                        fread((char *)(vd+1), sizeof(double), 1, fin2) != 1 ||
605 <                        fread((char *)(vd+2), sizeof(double), 1, fin3) != 1)
603 >                if (getbinary(vd, sizeof(double), 1, fin) != 1 ||
604 >                        getbinary(vd+1, sizeof(double), 1, fin2) != 1 ||
605 >                        getbinary(vd+2, sizeof(double), 1, fin3) != 1)
606                          return(-1);
607          }
608          if (swapbytes)
# Line 573 | Line 620 | getcfloat(             /* get a float color value from stream(s)
620          float  vf[3];
621  
622          if (fin2 == NULL) {
623 <                if (fread((char *)vf, sizeof(float), 3, fin) != 3)
623 >                if (getbinary(vf, sizeof(float), 3, fin) != 3)
624                          return(-1);
625          } else {
626 <                if (fread((char *)vf, sizeof(float), 1, fin) != 1 ||
627 <                        fread((char *)(vf+1), sizeof(float), 1, fin2) != 1 ||
628 <                        fread((char *)(vf+2), sizeof(float), 1, fin3) != 1)
626 >                if (getbinary(vf, sizeof(float), 1, fin) != 1 ||
627 >                        getbinary(vf+1, sizeof(float), 1, fin2) != 1 ||
628 >                        getbinary(vf+2, sizeof(float), 1, fin3) != 1)
629                          return(-1);
630          }
631          if (swapbytes)
# Line 615 | Line 662 | getcbyte(              /* get a byte color value from stream(s) */
662          COLOR  col
663   )
664   {
665 <        BYTE  vb[3];
665 >        uby8  vb[3];
666  
667          if (fin2 == NULL) {
668 <                if (fread((char *)vb, sizeof(BYTE), 3, fin) != 3)
668 >                if (getbinary(vb, sizeof(uby8), 3, fin) != 3)
669                          return(-1);
670          } else {
671 <                if (fread((char *)vb, sizeof(BYTE), 1, fin) != 1 ||
672 <                        fread((char *)(vb+1), sizeof(BYTE), 1, fin2) != 1 ||
673 <                        fread((char *)(vb+2), sizeof(BYTE), 1, fin3) != 1)
671 >                if (getbinary(vb, sizeof(uby8), 1, fin) != 1 ||
672 >                        getbinary(vb+1, sizeof(uby8), 1, fin2) != 1 ||
673 >                        getbinary(vb+2, sizeof(uby8), 1, fin3) != 1)
674                          return(-1);
675          }
676          setcolor(col, (vb[rord[RED]]+.5)/256.,
# Line 640 | Line 687 | getcword(              /* get a 16-bit color value from stream(s)
687          uint16  vw[3];
688  
689          if (fin2 == NULL) {
690 <                if (fread((char *)vw, sizeof(uint16), 3, fin) != 3)
690 >                if (getbinary(vw, sizeof(uint16), 3, fin) != 3)
691                          return(-1);
692          } else {
693 <                if (fread((char *)vw, sizeof(uint16), 1, fin) != 1 ||
694 <                        fread((char *)(vw+1), sizeof(uint16), 1, fin2) != 1 ||
695 <                        fread((char *)(vw+2), sizeof(uint16), 1, fin3) != 1)
693 >                if (getbinary(vw, sizeof(uint16), 1, fin) != 1 ||
694 >                        getbinary(vw+1, sizeof(uint16), 1, fin2) != 1 ||
695 >                        getbinary(vw+2, sizeof(uint16), 1, fin3) != 1)
696                          return(-1);
697          }
698          if (swapbytes)
# Line 677 | Line 724 | getbdouble(            /* get a double brightness value from fin
724   {
725          double  vd;
726  
727 <        if (fread((char *)&vd, sizeof(double), 1, fin) != 1)
727 >        if (getbinary(&vd, sizeof(double), 1, fin) != 1)
728                  return(-1);
729          if (swapbytes)
730                  swap64((char *)&vd, 1);
# Line 693 | Line 740 | getbfloat(             /* get a float brightness value from fin *
740   {
741          float  vf;
742  
743 <        if (fread((char *)&vf, sizeof(float), 1, fin) != 1)
743 >        if (getbinary(&vf, sizeof(float), 1, fin) != 1)
744                  return(-1);
745          if (swapbytes)
746                  swap32((char *)&vf, 1);
# Line 723 | Line 770 | getbbyte(              /* get a byte brightness value from fin */
770          COLOR  col
771   )
772   {
773 <        BYTE  vb;
773 >        uby8  vb;
774          double  d;
775  
776 <        if (fread((char *)&vb, sizeof(BYTE), 1, fin) != 1)
776 >        if (getbinary(&vb, sizeof(uby8), 1, fin) != 1)
777                  return(-1);
778          d = (vb+.5)/256.;
779          setcolor(col, d, d, d);
# Line 742 | Line 789 | getbword(              /* get a 16-bit brightness value from fin *
789          uint16  vw;
790          double  d;
791  
792 <        if (fread((char *)&vw, sizeof(uint16), 1, fin) != 1)
792 >        if (getbinary(&vw, sizeof(uint16), 1, fin) != 1)
793                  return(-1);
794          if (swapbytes)
795                  swap16((char *)&vw, 1);
# Line 778 | Line 825 | putcfloat(                     /* put a float color to stdout */
825          vf[2] = colval(col,ord[2]);
826          if (swapbytes)
827                  swap32((char *)vf, 3);
828 <        fwrite((char *)vf, sizeof(float), 3, stdout);
828 >        putbinary(vf, sizeof(float), 3, stdout);
829  
830          return(ferror(stdout) ? -1 : 0);
831   }
# Line 796 | Line 843 | putcdouble(                    /* put a double color to stdout */
843          vd[2] = colval(col,ord[2]);
844          if (swapbytes)
845                  swap64((char *)vd, 3);
846 <        fwrite((char *)vd, sizeof(double), 3, stdout);
846 >        putbinary(vd, sizeof(double), 3, stdout);
847  
848          return(ferror(stdout) ? -1 : 0);
849   }
# Line 822 | Line 869 | putcbyte(                      /* put a byte color to stdout */
869   )
870   {
871          long  i;
872 <        BYTE  vb[3];
872 >        uby8  vb[3];
873  
874          i = colval(col,ord[0])*256.;
875          vb[0] = min(i,255);
# Line 830 | Line 877 | putcbyte(                      /* put a byte color to stdout */
877          vb[1] = min(i,255);
878          i = colval(col,ord[2])*256.;
879          vb[2] = min(i,255);
880 <        fwrite((char *)vb, sizeof(BYTE), 3, stdout);
880 >        putbinary(vb, sizeof(uby8), 3, stdout);
881  
882          return(ferror(stdout) ? -1 : 0);
883   }
# Line 852 | Line 899 | putcword(                      /* put a 16-bit color to stdout */
899          vw[2] = min(i,65535);
900          if (swapbytes)
901                  swap16((char *)vw, 3);
902 <        fwrite((char *)vw, sizeof(uint16), 3, stdout);
902 >        putbinary(vw, sizeof(uint16), 3, stdout);
903  
904          return(ferror(stdout) ? -1 : 0);
905   }
# Line 879 | Line 926 | putbfloat(                     /* put a float brightness to stdout */
926          vf = (*mybright)(col);
927          if (swapbytes)
928                  swap32((char *)&vf, 1);
929 <        fwrite((char *)&vf, sizeof(float), 1, stdout);
929 >        putbinary(&vf, sizeof(float), 1, stdout);
930  
931          return(ferror(stdout) ? -1 : 0);
932   }
# Line 895 | Line 942 | putbdouble(                    /* put a double brightness to stdout */
942          vd = (*mybright)(col);
943          if (swapbytes)
944                  swap64((char *)&vd, 1);
945 <        fwrite((char *)&vd, sizeof(double), 1, stdout);
945 >        putbinary(&vd, sizeof(double), 1, stdout);
946  
947          return(ferror(stdout) ? -1 : 0);
948   }
# Line 917 | Line 964 | putbbyte(                      /* put a byte brightness to stdout */
964          COLOR  col
965   )
966   {
967 <        register int  i;
968 <        BYTE  vb;
967 >        int  i;
968 >        uby8  vb;
969  
970          i = (*mybright)(col)*256.;
971          vb = min(i,255);
972 <        fwrite((char *)&vb, sizeof(BYTE), 1, stdout);
972 >        putbinary(&vb, sizeof(uby8), 1, stdout);
973  
974          return(ferror(stdout) ? -1 : 0);
975   }
# Line 940 | Line 987 | putbword(                      /* put a 16-bit brightness to stdout */
987          vw = min(i,65535);
988          if (swapbytes)
989                  swap16((char *)&vw, 1);
990 <        fwrite((char *)&vw, sizeof(uint16), 1, stdout);
990 >        putbinary(&vw, sizeof(uint16), 1, stdout);
991  
992          return(ferror(stdout) ? -1 : 0);
993   }
# Line 967 | Line 1014 | putpfloat(                     /* put a float primary to stdout */
1014          vf = colval(col,putprim);
1015          if (swapbytes)
1016                  swap32((char *)&vf, 1);
1017 <        fwrite((char *)&vf, sizeof(float), 1, stdout);
1017 >        putbinary(&vf, sizeof(float), 1, stdout);
1018  
1019          return(ferror(stdout) ? -1 : 0);
1020   }
# Line 983 | Line 1030 | putpdouble(                    /* put a double primary to stdout */
1030          vd = colval(col,putprim);
1031          if (swapbytes)
1032                  swap64((char *)&vd, 1);
1033 <        fwrite((char *)&vd, sizeof(double), 1, stdout);
1033 >        putbinary(&vd, sizeof(double), 1, stdout);
1034  
1035          return(ferror(stdout) ? -1 : 0);
1036   }
# Line 1006 | Line 1053 | putpbyte(                      /* put a byte primary to stdout */
1053   )
1054   {
1055          long  i;
1056 <        BYTE  vb;
1056 >        uby8  vb;
1057  
1058          i = colval(col,putprim)*256.;
1059          vb = min(i,255);
1060 <        fwrite((char *)&vb, sizeof(BYTE), 1, stdout);
1060 >        putbinary(&vb, sizeof(uby8), 1, stdout);
1061  
1062          return(ferror(stdout) ? -1 : 0);
1063   }
# Line 1028 | Line 1075 | putpword(                      /* put a 16-bit primary to stdout */
1075          vw = min(i,65535);
1076          if (swapbytes)
1077                  swap16((char *)&vw, 1);
1078 <        fwrite((char *)&vw, sizeof(uint16), 1, stdout);
1078 >        putbinary(&vw, sizeof(uint16), 1, stdout);
1079  
1080          return(ferror(stdout) ? -1 : 0);
1081   }
# Line 1070 | Line 1117 | set_io(void)                   /* set put and get functions */
1117                                  if (fin2 == NULL)
1118                                          goto namerr;
1119                                  if (fseek(fin2,
1120 <                                (long)sizeof(float)*picres.xr*picres.yr, 1))
1120 >                                (long)sizeof(float)*picres.xr*picres.yr, SEEK_CUR))
1121                                          goto seekerr;
1122                                  if (fseek(fin3,
1123 <                                (long)sizeof(float)*2*picres.xr*picres.yr, 1))
1123 >                                (long)sizeof(float)*2*picres.xr*picres.yr, SEEK_CUR))
1124                                          goto seekerr;
1125                          }
1126                  }
# Line 1092 | Line 1139 | set_io(void)                   /* set put and get functions */
1139                                  if (fin2 == NULL)
1140                                          goto namerr;
1141                                  if (fseek(fin2,
1142 <                                (long)sizeof(double)*picres.xr*picres.yr, 1))
1142 >                                (long)sizeof(double)*picres.xr*picres.yr, SEEK_CUR))
1143                                          goto seekerr;
1144                                  if (fseek(fin3,
1145 <                                (long)sizeof(double)*2*picres.xr*picres.yr, 1))
1145 >                                (long)sizeof(double)*2*picres.xr*picres.yr, SEEK_CUR))
1146                                          goto seekerr;
1147                          }
1148                  }
# Line 1132 | Line 1179 | set_io(void)                   /* set put and get functions */
1179                                  if (fin2 == NULL)
1180                                          goto namerr;
1181                                  if (fseek(fin2,
1182 <                                (long)sizeof(BYTE)*picres.xr*picres.yr, 1))
1182 >                                (long)sizeof(uby8)*picres.xr*picres.yr, SEEK_CUR))
1183                                          goto seekerr;
1184                                  if (fseek(fin3,
1185 <                                (long)sizeof(BYTE)*2*picres.xr*picres.yr, 1))
1185 >                                (long)sizeof(uby8)*2*picres.xr*picres.yr, SEEK_CUR))
1186                                          goto seekerr;
1187                          }
1188                  }
# Line 1154 | Line 1201 | set_io(void)                   /* set put and get functions */
1201                                  if (fin2 == NULL)
1202                                          goto namerr;
1203                                  if (fseek(fin2,
1204 <                                (long)sizeof(uint16)*picres.xr*picres.yr, 1))
1204 >                                (long)sizeof(uint16)*picres.xr*picres.yr, SEEK_CUR))
1205                                          goto seekerr;
1206                                  if (fseek(fin3,
1207 <                                (long)sizeof(uint16)*2*picres.xr*picres.yr, 1))
1207 >                                (long)sizeof(uint16)*2*picres.xr*picres.yr, SEEK_CUR))
1208                                          goto seekerr;
1209                          }
1210                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines