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

Comparing ray/src/common/tmapluv.c (file contents):
Revision 3.6 by schorsch, Mon Jun 30 14:59:11 2003 UTC vs.
Revision 3.9 by schorsch, Sun Jul 27 22:12:01 2003 UTC

# Line 136 | Line 136 | int    len;
136                                          /* check arguments */
137          if (tmTop == NULL)
138                  returnErr(TM_E_TMINVAL);
139 <        if (ls == NULL | luvs == NULL | len < 0)
139 >        if ((ls == NULL) | (luvs == NULL) | (len < 0))
140                  returnErr(TM_E_ILLEGAL);
141                                          /* check package registration */
142          if (luv32Reg < 0) {
# Line 196 | Line 196 | int    len;
196                                          /* check arguments */
197          if (tmTop == NULL)
198                  returnErr(TM_E_TMINVAL);
199 <        if (ls == NULL | luvs == NULL | len < 0)
199 >        if ((ls == NULL) | (luvs == NULL) | (len < 0))
200                  returnErr(TM_E_ILLEGAL);
201                                          /* check package registration */
202          if (luv24Reg < 0) {
# Line 215 | Line 215 | int    len;
215                          continue;
216                                                  /* get chrominance */
217                  if (tmTop->flags & TM_F_MESOPIC && ls[i] < BMESUPPER) {
218 <                        if (uv_decode(uvp, uvp+1, luvs[i]&0x3fff) < 0) {
218 >                        if (uv_decode(&uvp[0], &uvp[1], luvs[i]&0x3fff) < 0) {
219                                  uvp[0] = U_NEU;         /* should barf? */
220                                  uvp[1] = V_NEU;
221                          }
# Line 225 | Line 225 | int    len;
225                                                  SGILOGENCODE_NODITHER)) < 0)
226                                  j = uv14neu;
227                  } else {
228 <                        j = tmTop->flags&TM_F_BW ? uv14neu : luvs[i]&0x3fff;
228 >                        j = tmTop->flags&TM_F_BW ? uv14neu :
229 >                                        (int)(luvs[i]&0x3fff);
230                  }
231                  if (!isuvset(ld, j)) {
232                          if (uv_decode(&uvp[0], &uvp[1], j) < 0) {
# Line 255 | Line 256 | int    len;
256                                          /* check arguments */
257          if (tmTop == NULL)
258                  returnErr(TM_E_TMINVAL);
259 <        if (ls == NULL | l16s == NULL | len < 0)
259 >        if ((ls == NULL) | (l16s == NULL) | (len < 0))
260                  returnErr(TM_E_ILLEGAL);
261                                          /* check scaling offset */
262          if (!FEQ(tmTop->inpsf, lastsf)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines