/[xforms]/xforms/image/image_warp.c
ViewVC logotype

Diff of /xforms/image/image_warp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by leeming, Thu Apr 24 09:35:34 2003 UTC revision 1.4 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 55  interpol2d_short(unsigned short *out, fl Line 55  interpol2d_short(unsigned short *out, fl
55          return;          return;
56      }      }
57    
58      /* we need to fake one row/column of samples outside of the image to      /* we need to fake one row/column of samples outside of the image to
59         make the boundary look nice */         make the boundary look nice */
60      ix = (x < 0 ? -1 : x);      ix = (x < 0 ? -1 : x);
61      iy = (y < 0 ? -1 : y);      iy = (y < 0 ? -1 : y);
# Line 98  interpol2d_uc(int out[3], float y, float Line 98  interpol2d_uc(int out[3], float y, float
98      ix = (x < 0.0f) ? -1 : (int) x;      ix = (x < 0.0f) ? -1 : (int) x;
99      iy = (y < 0.0f) ? -1 : (int) y;      iy = (y < 0.0f) ? -1 : (int) y;
100    
101      /* we need to fake one row/column of samples outside of the image to      /* we need to fake one row/column of samples outside of the image to
102         make the boundary look nice */         make the boundary look nice */
103      if (ix >= 0 && iy >= 0)      if (ix >= 0 && iy >= 0)
104      {      {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26