Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/staging/src/include/Diderot/inline-image.h
ViewVC logotype

Diff of /branches/staging/src/include/Diderot/inline-image.h

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

revision 1943, Thu Jul 5 16:29:06 2012 UTC revision 1944, Thu Jul 5 17:19:46 2012 UTC
# Line 31  Line 31 
31    
32  // check if pos is inside the img, assuming that we have a border of width s.  // check if pos is inside the img, assuming that we have a border of width s.
33  //  //
34  STATIC_INLINE bool Inside1 (float pos, Diderot_image1D_t *img, int s)  STATIC_INLINE bool Inside1 (Diderot_real_t pos, Diderot_image1D_t *img, int s)
35  {  {
36      return ((s-1 < pos) && (pos < (img->size[0] - s)));      return ((s-1 < pos) && (pos < (img->size[0] - s)));
37  }  }
38    
39  STATIC_INLINE float ToImageSpace1 (Diderot_image1D_t *img, float pos)  STATIC_INLINE Diderot_real_t ToImageSpace1 (Diderot_image1D_t *img, Diderot_real_t pos)
40  {  {
41      return img->s * pos + img->t;      return img->s * pos + img->t;
42  }  }

Legend:
Removed from v.1943  
changed lines
  Added in v.1944

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0