Lines Matching refs:buff
65 int * buff, double * finSlope, int * finXInter, int * finYInter);
70 static SANE_Status getLine (int height, int width, int * buff,
1269 int * buff, double * finSlope, int * finXInter, int * finYInter)
1308 ret = getLine(height,width,buff,slopes,minSlope+sStep2,maxSlope+sStep2,offsets,minOffset+oStep2,maxOffset+oStep2,&slope,&offset,&density);
1379 getLine (int height, int width, int * buff,
1495 rise = buff[j] - buff[i];
1503 offset = slope * hWidth + buff[i] - slope * i;
1682 int * buff;
1706 buff = calloc(width,sizeof(int));
1707 if(!buff){
1708 DBG (5, "sanei_magic_getTransY: no buff\n");
1712 buff[i] = lastLine;
1714 /* load the buff array with y value for first color change from edge
1759 buff[i] = j;
1778 buff[i] = j;
1788 free(buff);
1796 if(abs(buff[i+j] - buff[i]) < dpi/2)
1800 buff[i] = lastLine;
1805 return buff;
1814 int * buff;
1839 buff = calloc(height,sizeof(int));
1840 if(!buff){
1841 DBG (5, "sanei_magic_getTransX: no buff\n");
1845 buff[i] = lastCol;
1847 /* load the buff array with x value for first color change from edge
1891 buff[i] = j;
1910 buff[i] = j;
1920 free(buff);
1928 if(abs(buff[i+j] - buff[i]) < dpi/2)
1932 buff[i] = lastCol;
1937 return buff;