~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/vision/line2/pixelprox.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #include <stdio.h>
  2 #include <values.h>
  3 #include <tina/sys.h>
  4 #include <tina/sysfuncs.h>
  5 #include <tina/vision.h>
  6 #include <tina/visionfuncs.h>
  7 
  8 List *pixel_strings(List *strings)
  9 {
 10     List *sptr,*splist=NULL;
 11     Tstring *pixel_string();
 12 
 13     for (sptr=strings;sptr!=NULL;sptr=sptr->next)
 14     {
 15         Tstring *string = pixel_string(sptr->to);
 16 
 17         splist = ref_addtostart(splist, string, STRING);
 18     }
 19     return(splist);
 20 }
 21 
 22 Tstring *pixel_string(Tstring *string)
 23 {
 24     List *pixel,*pixel_prox();
 25 
 26     if (string==NULL)
 27         return(NULL);
 28 
 29     pixel = pixel_prox(string->start,string->end);
 30 
 31     if (pixel == NULL)
 32         return (NULL);
 33 
 34     return (str_make(STRING, pixel, dd_get_end(pixel)));
 35 }
 36 
 37 List *pixel_prox(List *start,List *end) /* accepts either edgel or vec2 List */
 38 {
 39     List *dptr,*dfirst;
 40     List *lines=NULL;
 41     Line2 *line2_between();
 42 
 43     if (start==NULL || end==NULL || start==end)
 44         return(NULL);
 45 
 46     dfirst = start;
 47     for (dptr=start->next;dptr!=end;dptr=dptr->next)
 48     {
 49         lines = dd_append(lines,dd_link_alloc(line2_between(dfirst,dptr),LINE2));
 50         dfirst = dptr;
 51     }
 52     return(lines);
 53 }
 54 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.