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

SCM Repository

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

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

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

revision 856, Tue Apr 19 19:36:37 2011 UTC revision 857, Tue Apr 19 19:42:13 2011 UTC
# Line 24  Line 24 
24  #  include "inline-vec4.h"  #  include "inline-vec4.h"
25  #endif  #endif
26    
27    /***** 1D Image functions *****/
28    
29    // check if pos is inside the img, assuming that we have a border of width s.
30    //
31    STATIC_INLINE bool Diderot_Inside1f (float pos, Diderot_image1D_t *img, int s)
32    {
33        return ((s-1 < pos) && (pos < (img->size[0] - s)));
34    }
35    
36    STATIC_INLINE float Diderot_ToImageSpace1f (Diderot_image1D_t *img, float pos)
37    {
38        vec2f_t p = __extension__ vec2f(pos, 1.0f);
39    
40        return dot3f(img->mInv[0].v, p);
41    }
42    
43  /***** 2D Image functions *****/  /***** 2D Image functions *****/
44    
45  // 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.

Legend:
Removed from v.856  
changed lines
  Added in v.857

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