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

Comparing ray/src/px/ciq.c (file contents):
Revision 1.4 by ph, Fri Apr 7 16:36:12 1989 UTC vs.
Revision 1.6 by greg, Tue Dec 4 11:25:45 1990 UTC

# Line 13 | Line 13 | Paul Heckbert  16 April 82, cleaned up 8 June 86
13   Greg Ward       1 March 88, modified for arbitrary picture sizes
14   */
15  
16 + #include "standard.h"
17   #include "ciq.h"
18  
19   #define table(m,r,g,b) hist[m[0][r]|m[1][g]|m[2][b]]  /* histogram/pvtable */
# Line 43 | Line 44 | colormap cm;           /* quantization colormap */
44      if (synth)
45          n = makecm(nw,&na);     /* analyze histogram and synthesize colormap */
46      else {
47 <        bcopy(cm,color,sizeof color);
47 >        bcopy((char *)cm,(char *)color,sizeof color);
48          n = nw;
49          na = 0;
50          for (i=0; i<len; i++) if (hist[i]) na++;
# Line 60 | Line 61 | colormap cm;           /* quantization colormap */
61          draw_nodith(ocm);
62      }
63  
64 <    bcopy(color,cm,sizeof color);
64 >    bcopy((char *)color,(char *)cm,sizeof color);
65      /*endclosest();*/
66   }
67  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines