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.30 by greg, Thu Dec 16 21:34:41 2010 UTC vs.
Revision 2.39 by greg, Mon Mar 30 19:02:26 2020 UTC

# Line 93 | 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 172 | Line 173 | main(
173                                  }
174                                  break;
175                          case 'd':               /* data only (no indices) */
176 <                                dataonly = argv[i][0] == '-';
176 >                                dataonly = (argv[i][0] == '-');
177                                  switch (argv[i][2]) {
178                                  case '\0':
179                                  case 'a':               /* ascii */
# Line 251 | 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 279 | 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 296 | Line 309 | unkopt:
309          }
310  
311          if (reverse) {
299 #ifdef _WIN32
312                  SET_FILE_BINARY(stdout);
301                if (format != 'a' && format != 'i')
302                        SET_FILE_BINARY(fin);
303 #endif
313                                          /* get header */
314                  if (header) {
315 <                        if (checkheader(fin, fmtid, stdout) < 0) {
316 <                                fprintf(stderr, "%s: wrong input format\n",
317 <                                                progname);
315 >                        getheader(fin, checkhead, stdout);
316 >                        if (wrongformat) {
317 >                                fprintf(stderr, "%s: wrong input format (expected %s)\n",
318 >                                                progname, fmtid);
319                                  quit(1);
320                          }
321                          if (fin2 != NULL) {
# Line 349 | Line 359 | unkopt:
359                  fputsresolu(&picres, stdout);   /* always put resolution */
360                  valtopix();
361          } else {
362 < #ifdef _WIN32
353 <                SET_FILE_BINARY(fin);
354 <                if (format != 'a' && format != 'i')
362 >                if ((format != 'a') & (format != 'i'))
363                          SET_FILE_BINARY(stdout);
356 #endif
364                                                  /* get header */
365 <                getheader(fin, checkhead, NULL);
365 >                getheader(fin, checkhead, header ? stdout : (FILE *)NULL);
366                  if (wrongformat) {
367                          fprintf(stderr,
368                                  "%s: input not a Radiance RGBE picture\n",
# Line 368 | Line 375 | unkopt:
375                  }
376                  if (header) {
377                          printargs(i, argv, stdout);
378 +                        printf("NCOMP=%d\n", putprim==ALL ? 3 : 1);
379 +                        if (!resolution && dataonly && !uniq)
380 +                                printf("NCOLS=%d\nNROWS=%d\n", scanlen(&picres),
381 +                                                numscans(&picres));
382                          if (expval < .99 || expval > 1.01)
383                                  fputexpos(expval, stdout);
384 +                        if (swapbytes) {
385 +                                if (nativebigendian())
386 +                                        puts("BigEndian=0");
387 +                                else
388 +                                        puts("BigEndian=1");
389 +                        } else if ((format != 'a') & (format != 'i'))
390 +                                fputendian(stdout);
391                          fputformat(fmtid, stdout);
392                          putchar('\n');
393                  }
# Line 389 | Line 407 | checkhead(                             /* deal with line from header */
407          void    *p
408   )
409   {
410 <        char    fmt[32];
410 >        FILE    *fout = (FILE *)p;
411 >        char    fmt[MAXFMTLEN];
412          double  d;
413          COLOR   ctmp;
414 +        int     rv;
415  
416          if (formatval(fmt, line)) {
417 <                if (!strcmp(fmt, CIEFMT))
417 >                if (reverse)
418 >                        wrongformat = strcmp(fmt, fmtid);
419 >                else if (!strcmp(fmt, CIEFMT))
420                          mybright = &xyz_bright;
421                  else if (!strcmp(fmt, COLRFMT))
422                          mybright = &rgb_bright;
423                  else
424                          wrongformat++;
425 <        } else if (original && isexpos(line)) {
425 >                return(1);
426 >        }
427 >        if (original && isexpos(line)) {
428                  d = 1.0/exposval(line);
429                  scalecolor(exposure, d);
430                  doexposure++;
431 <        } else if (original && iscolcor(line)) {
431 >                return(1);
432 >        }
433 >        if (original && iscolcor(line)) {
434                  colcorval(ctmp, line);
435                  setcolor(exposure, colval(exposure,RED)/colval(ctmp,RED),
436                                  colval(exposure,GRN)/colval(ctmp,GRN),
437                                  colval(exposure,BLU)/colval(ctmp,BLU));
438                  doexposure++;
439 <        } else if (header)
440 <                fputs(line, stdout);
439 >                return(1);
440 >        }
441 >        if ((rv = isbigendian(line)) >= 0) {
442 >                if (reverse)
443 >                        swapbytes = (nativebigendian() != rv);
444 >                return(1);
445 >        }
446 >        if (fout != NULL)
447 >                fputs(line, fout);
448          return(0);
449   }
450  
# Line 419 | Line 452 | checkhead(                             /* deal with line from header */
452   static void
453   pixtoval(void)                          /* convert picture to values */
454   {
455 <        register COLOR  *scanln;
455 >        COLOR   *scanln;
456          int  dogamma;
457          COLOR  lastc;
458          RREAL  hv[2];
459          int  startprim, endprim;
460          long  startpos;
461 <        int  y;
429 <        register int  x;
461 >        int  x, y;
462  
463          scanln = (COLOR *)malloc(scanlen(&picres)*sizeof(COLOR));
464          if (scanln == NULL) {
# Line 434 | Line 466 | pixtoval(void)                         /* convert picture to values */
466                  quit(1);
467          }
468          dogamma = gamcor < .95 || gamcor > 1.05;
469 <        if (putprim == ALL && !interleave) {
469 >        if ((putprim == ALL) & !interleave) {
470                  startprim = RED; endprim = BLU;
471                  startpos = ftell(fin);
472          } else {
473                  startprim = putprim; endprim = putprim;
474          }
475          for (putprim = startprim; putprim <= endprim; putprim++) {
476 <                if (putprim != startprim && fseek(fin, startpos, 0)) {
476 >                if (putprim != startprim && fseek(fin, startpos, SEEK_SET)) {
477                          fprintf(stderr, "%s: seek error on input file\n",
478                                          progname);
479                          quit(1);
# Line 493 | Line 525 | pixtoval(void)                         /* convert picture to values */
525   static void
526   valtopix(void)                  /* convert values to a pixel file */
527   {
528 <        int  dogamma;
529 <        register COLOR  *scanln;
530 <        int  y;
531 <        register int  x;
528 >        int     dogamma;
529 >        COLOR   *scanln;
530 >        COLR    rgbe;
531 >        int     x, y;
532  
533          scanln = (COLOR *)malloc(scanlen(&picres)*sizeof(COLOR));
534          if (scanln == NULL) {
# Line 525 | Line 557 | valtopix(void)                 /* convert values to a pixel file */
557                                          pow(colval(scanln[x],BLU), gamcor));
558                          if (doexposure)
559                                  multcolor(scanln[x], exposure);
560 +                        if (uniq) {             /* uncompressed? */
561 +                                setcolr(rgbe,   scanln[x][RED],
562 +                                                scanln[x][GRN],
563 +                                                scanln[x][BLU]);
564 +                                if (putbinary(rgbe, sizeof(COLR), 1, stdout) != 1)
565 +                                        goto writerr;
566 +                        }
567                  }
568 <                if (fwritescan(scanln, scanlen(&picres), stdout) < 0) {
569 <                        fprintf(stderr, "%s: write error\n", progname);
570 <                        quit(1);
532 <                }
568 >                                                /* write scan if compressed */
569 >                if (!uniq && fwritescan(scanln, scanlen(&picres), stdout) < 0)
570 >                        goto writerr;
571          }
572          free((void *)scanln);
573 +        return;
574 + writerr:
575 +        fprintf(stderr, "%s: write error\n", progname);
576 +        quit(1);
577   }
578  
579  
# Line 572 | Line 614 | getcdouble(            /* get a double color value from stream(s
614          double  vd[3];
615  
616          if (fin2 == NULL) {
617 <                if (fread((char *)vd, sizeof(double), 3, fin) != 3)
617 >                if (getbinary(vd, sizeof(double), 3, fin) != 3)
618                          return(-1);
619          } else {
620 <                if (fread((char *)vd, sizeof(double), 1, fin) != 1 ||
621 <                        fread((char *)(vd+1), sizeof(double), 1, fin2) != 1 ||
622 <                        fread((char *)(vd+2), sizeof(double), 1, fin3) != 1)
620 >                if (getbinary(vd, sizeof(double), 1, fin) != 1 ||
621 >                        getbinary(vd+1, sizeof(double), 1, fin2) != 1 ||
622 >                        getbinary(vd+2, sizeof(double), 1, fin3) != 1)
623                          return(-1);
624          }
625          if (swapbytes)
# Line 595 | Line 637 | getcfloat(             /* get a float color value from stream(s)
637          float  vf[3];
638  
639          if (fin2 == NULL) {
640 <                if (fread((char *)vf, sizeof(float), 3, fin) != 3)
640 >                if (getbinary(vf, sizeof(float), 3, fin) != 3)
641                          return(-1);
642          } else {
643 <                if (fread((char *)vf, sizeof(float), 1, fin) != 1 ||
644 <                        fread((char *)(vf+1), sizeof(float), 1, fin2) != 1 ||
645 <                        fread((char *)(vf+2), sizeof(float), 1, fin3) != 1)
643 >                if (getbinary(vf, sizeof(float), 1, fin) != 1 ||
644 >                        getbinary(vf+1, sizeof(float), 1, fin2) != 1 ||
645 >                        getbinary(vf+2, sizeof(float), 1, fin3) != 1)
646                          return(-1);
647          }
648          if (swapbytes)
# Line 637 | Line 679 | getcbyte(              /* get a byte color value from stream(s) */
679          COLOR  col
680   )
681   {
682 <        BYTE  vb[3];
682 >        uby8  vb[3];
683  
684          if (fin2 == NULL) {
685 <                if (fread((char *)vb, sizeof(BYTE), 3, fin) != 3)
685 >                if (getbinary(vb, sizeof(uby8), 3, fin) != 3)
686                          return(-1);
687          } else {
688 <                if (fread((char *)vb, sizeof(BYTE), 1, fin) != 1 ||
689 <                        fread((char *)(vb+1), sizeof(BYTE), 1, fin2) != 1 ||
690 <                        fread((char *)(vb+2), sizeof(BYTE), 1, fin3) != 1)
688 >                if (getbinary(vb, sizeof(uby8), 1, fin) != 1 ||
689 >                        getbinary(vb+1, sizeof(uby8), 1, fin2) != 1 ||
690 >                        getbinary(vb+2, sizeof(uby8), 1, fin3) != 1)
691                          return(-1);
692          }
693          setcolor(col, (vb[rord[RED]]+.5)/256.,
# Line 662 | Line 704 | getcword(              /* get a 16-bit color value from stream(s)
704          uint16  vw[3];
705  
706          if (fin2 == NULL) {
707 <                if (fread((char *)vw, sizeof(uint16), 3, fin) != 3)
707 >                if (getbinary(vw, sizeof(uint16), 3, fin) != 3)
708                          return(-1);
709          } else {
710 <                if (fread((char *)vw, sizeof(uint16), 1, fin) != 1 ||
711 <                        fread((char *)(vw+1), sizeof(uint16), 1, fin2) != 1 ||
712 <                        fread((char *)(vw+2), sizeof(uint16), 1, fin3) != 1)
710 >                if (getbinary(vw, sizeof(uint16), 1, fin) != 1 ||
711 >                        getbinary(vw+1, sizeof(uint16), 1, fin2) != 1 ||
712 >                        getbinary(vw+2, sizeof(uint16), 1, fin3) != 1)
713                          return(-1);
714          }
715          if (swapbytes)
# Line 699 | Line 741 | getbdouble(            /* get a double brightness value from fin
741   {
742          double  vd;
743  
744 <        if (fread((char *)&vd, sizeof(double), 1, fin) != 1)
744 >        if (getbinary(&vd, sizeof(double), 1, fin) != 1)
745                  return(-1);
746          if (swapbytes)
747                  swap64((char *)&vd, 1);
# Line 715 | Line 757 | getbfloat(             /* get a float brightness value from fin *
757   {
758          float  vf;
759  
760 <        if (fread((char *)&vf, sizeof(float), 1, fin) != 1)
760 >        if (getbinary(&vf, sizeof(float), 1, fin) != 1)
761                  return(-1);
762          if (swapbytes)
763                  swap32((char *)&vf, 1);
# Line 745 | Line 787 | getbbyte(              /* get a byte brightness value from fin */
787          COLOR  col
788   )
789   {
790 <        BYTE  vb;
790 >        uby8  vb;
791          double  d;
792  
793 <        if (fread((char *)&vb, sizeof(BYTE), 1, fin) != 1)
793 >        if (getbinary(&vb, sizeof(uby8), 1, fin) != 1)
794                  return(-1);
795          d = (vb+.5)/256.;
796          setcolor(col, d, d, d);
# Line 764 | Line 806 | getbword(              /* get a 16-bit brightness value from fin *
806          uint16  vw;
807          double  d;
808  
809 <        if (fread((char *)&vw, sizeof(uint16), 1, fin) != 1)
809 >        if (getbinary(&vw, sizeof(uint16), 1, fin) != 1)
810                  return(-1);
811          if (swapbytes)
812                  swap16((char *)&vw, 1);
# Line 800 | Line 842 | putcfloat(                     /* put a float color to stdout */
842          vf[2] = colval(col,ord[2]);
843          if (swapbytes)
844                  swap32((char *)vf, 3);
845 <        fwrite((char *)vf, sizeof(float), 3, stdout);
845 >        putbinary(vf, sizeof(float), 3, stdout);
846  
847          return(ferror(stdout) ? -1 : 0);
848   }
# Line 818 | Line 860 | putcdouble(                    /* put a double color to stdout */
860          vd[2] = colval(col,ord[2]);
861          if (swapbytes)
862                  swap64((char *)vd, 3);
863 <        fwrite((char *)vd, sizeof(double), 3, stdout);
863 >        putbinary(vd, sizeof(double), 3, stdout);
864  
865          return(ferror(stdout) ? -1 : 0);
866   }
# Line 844 | Line 886 | putcbyte(                      /* put a byte color to stdout */
886   )
887   {
888          long  i;
889 <        BYTE  vb[3];
889 >        uby8  vb[3];
890  
891          i = colval(col,ord[0])*256.;
892          vb[0] = min(i,255);
# Line 852 | Line 894 | putcbyte(                      /* put a byte color to stdout */
894          vb[1] = min(i,255);
895          i = colval(col,ord[2])*256.;
896          vb[2] = min(i,255);
897 <        fwrite((char *)vb, sizeof(BYTE), 3, stdout);
897 >        putbinary(vb, sizeof(uby8), 3, stdout);
898  
899          return(ferror(stdout) ? -1 : 0);
900   }
# Line 874 | Line 916 | putcword(                      /* put a 16-bit color to stdout */
916          vw[2] = min(i,65535);
917          if (swapbytes)
918                  swap16((char *)vw, 3);
919 <        fwrite((char *)vw, sizeof(uint16), 3, stdout);
919 >        putbinary(vw, sizeof(uint16), 3, stdout);
920  
921          return(ferror(stdout) ? -1 : 0);
922   }
# Line 901 | Line 943 | putbfloat(                     /* put a float brightness to stdout */
943          vf = (*mybright)(col);
944          if (swapbytes)
945                  swap32((char *)&vf, 1);
946 <        fwrite((char *)&vf, sizeof(float), 1, stdout);
946 >        putbinary(&vf, sizeof(float), 1, stdout);
947  
948          return(ferror(stdout) ? -1 : 0);
949   }
# Line 917 | Line 959 | putbdouble(                    /* put a double brightness to stdout */
959          vd = (*mybright)(col);
960          if (swapbytes)
961                  swap64((char *)&vd, 1);
962 <        fwrite((char *)&vd, sizeof(double), 1, stdout);
962 >        putbinary(&vd, sizeof(double), 1, stdout);
963  
964          return(ferror(stdout) ? -1 : 0);
965   }
# Line 939 | Line 981 | putbbyte(                      /* put a byte brightness to stdout */
981          COLOR  col
982   )
983   {
984 <        register int  i;
985 <        BYTE  vb;
984 >        int  i;
985 >        uby8  vb;
986  
987          i = (*mybright)(col)*256.;
988          vb = min(i,255);
989 <        fwrite((char *)&vb, sizeof(BYTE), 1, stdout);
989 >        putbinary(&vb, sizeof(uby8), 1, stdout);
990  
991          return(ferror(stdout) ? -1 : 0);
992   }
# Line 962 | Line 1004 | putbword(                      /* put a 16-bit brightness to stdout */
1004          vw = min(i,65535);
1005          if (swapbytes)
1006                  swap16((char *)&vw, 1);
1007 <        fwrite((char *)&vw, sizeof(uint16), 1, stdout);
1007 >        putbinary(&vw, sizeof(uint16), 1, stdout);
1008  
1009          return(ferror(stdout) ? -1 : 0);
1010   }
# Line 989 | Line 1031 | putpfloat(                     /* put a float primary to stdout */
1031          vf = colval(col,putprim);
1032          if (swapbytes)
1033                  swap32((char *)&vf, 1);
1034 <        fwrite((char *)&vf, sizeof(float), 1, stdout);
1034 >        putbinary(&vf, sizeof(float), 1, stdout);
1035  
1036          return(ferror(stdout) ? -1 : 0);
1037   }
# Line 1005 | Line 1047 | putpdouble(                    /* put a double primary to stdout */
1047          vd = colval(col,putprim);
1048          if (swapbytes)
1049                  swap64((char *)&vd, 1);
1050 <        fwrite((char *)&vd, sizeof(double), 1, stdout);
1050 >        putbinary(&vd, sizeof(double), 1, stdout);
1051  
1052          return(ferror(stdout) ? -1 : 0);
1053   }
# Line 1028 | Line 1070 | putpbyte(                      /* put a byte primary to stdout */
1070   )
1071   {
1072          long  i;
1073 <        BYTE  vb;
1073 >        uby8  vb;
1074  
1075          i = colval(col,putprim)*256.;
1076          vb = min(i,255);
1077 <        fwrite((char *)&vb, sizeof(BYTE), 1, stdout);
1077 >        putbinary(&vb, sizeof(uby8), 1, stdout);
1078  
1079          return(ferror(stdout) ? -1 : 0);
1080   }
# Line 1050 | Line 1092 | putpword(                      /* put a 16-bit primary to stdout */
1092          vw = min(i,65535);
1093          if (swapbytes)
1094                  swap16((char *)&vw, 1);
1095 <        fwrite((char *)&vw, sizeof(uint16), 1, stdout);
1095 >        putbinary(&vw, sizeof(uint16), 1, stdout);
1096  
1097          return(ferror(stdout) ? -1 : 0);
1098   }
# Line 1092 | Line 1134 | set_io(void)                   /* set put and get functions */
1134                                  if (fin2 == NULL)
1135                                          goto namerr;
1136                                  if (fseek(fin2,
1137 <                                (long)sizeof(float)*picres.xr*picres.yr, 1))
1137 >                                (long)sizeof(float)*picres.xr*picres.yr, SEEK_CUR))
1138                                          goto seekerr;
1139                                  if (fseek(fin3,
1140 <                                (long)sizeof(float)*2*picres.xr*picres.yr, 1))
1140 >                                (long)sizeof(float)*2*picres.xr*picres.yr, SEEK_CUR))
1141                                          goto seekerr;
1142                          }
1143                  }
# Line 1114 | Line 1156 | set_io(void)                   /* set put and get functions */
1156                                  if (fin2 == NULL)
1157                                          goto namerr;
1158                                  if (fseek(fin2,
1159 <                                (long)sizeof(double)*picres.xr*picres.yr, 1))
1159 >                                (long)sizeof(double)*picres.xr*picres.yr, SEEK_CUR))
1160                                          goto seekerr;
1161                                  if (fseek(fin3,
1162 <                                (long)sizeof(double)*2*picres.xr*picres.yr, 1))
1162 >                                (long)sizeof(double)*2*picres.xr*picres.yr, SEEK_CUR))
1163                                          goto seekerr;
1164                          }
1165                  }
# Line 1154 | Line 1196 | set_io(void)                   /* set put and get functions */
1196                                  if (fin2 == NULL)
1197                                          goto namerr;
1198                                  if (fseek(fin2,
1199 <                                (long)sizeof(BYTE)*picres.xr*picres.yr, 1))
1199 >                                (long)sizeof(uby8)*picres.xr*picres.yr, SEEK_CUR))
1200                                          goto seekerr;
1201                                  if (fseek(fin3,
1202 <                                (long)sizeof(BYTE)*2*picres.xr*picres.yr, 1))
1202 >                                (long)sizeof(uby8)*2*picres.xr*picres.yr, SEEK_CUR))
1203                                          goto seekerr;
1204                          }
1205                  }
# Line 1176 | Line 1218 | set_io(void)                   /* set put and get functions */
1218                                  if (fin2 == NULL)
1219                                          goto namerr;
1220                                  if (fseek(fin2,
1221 <                                (long)sizeof(uint16)*picres.xr*picres.yr, 1))
1221 >                                (long)sizeof(uint16)*picres.xr*picres.yr, SEEK_CUR))
1222                                          goto seekerr;
1223                                  if (fseek(fin3,
1224 <                                (long)sizeof(uint16)*2*picres.xr*picres.yr, 1))
1224 >                                (long)sizeof(uint16)*2*picres.xr*picres.yr, SEEK_CUR))
1225                                          goto seekerr;
1226                          }
1227                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines