Lines Matching defs:width
64 static SANE_Status getTopEdge (int width, int height, int resolution,
67 static SANE_Status getLeftEdge (int width, int height, int * top, int * bot,
70 static SANE_Status getLine (int height, int width, int * buff,
280 int width = params->pixels_per_line;
373 *left = width;
374 for(i=0; i<width; i++){
387 *left = width;
392 for(i=width-1; i>=0; i--){
450 /*convert left and right to bytes, figure new byte and pixel width */
1092 /*clamp binary to byte width. must be <= input image*/
1268 getTopEdge(int width, int height, int resolution,
1308 ret = getLine(height,width,buff,slopes,minSlope+sStep2,maxSlope+sStep2,offsets,minOffset+oStep2,maxOffset+oStep2,&slope,&offset,&density);
1327 if(pass == 1 && topDensity < width/5){
1328 DBG(5,"getTopEdge: density too small %d %d\n",topDensity,width);
1360 *finYInter = topOffset - topSlope * width/2;
1379 getLine (int height, int width, int * buff,
1392 int hWidth = width/2;
1491 for(i=0;i<width;i++){
1492 for(j=i+1;j<width && j<i+width/3;j++){
1502 /* offset in center of width, not y intercept! */
1596 getLeftEdge (int width, int height, int * top, int * bot,
1607 topXInter = width;
1611 for(i=0;i<width;i++){
1628 topXInter = width;
1634 botXInter = width;
1638 for(i=0;i<width;i++){
1656 botXInter = width;
1687 int width = params->pixels_per_line;
1706 buff = calloc(width,sizeof(int));
1711 for(i=0; i<width; i++)
1724 for(i=0; i<width; i++){
1731 near += buffer[(firstLine*width+i) * depth + k];
1750 far -= buffer[(farLine*width+i)*depth+k];
1751 far += buffer[(nearLine*width+i)*depth+k];
1753 near -= buffer[(nearLine*width+i)*depth+k];
1754 near += buffer[(j*width+i)*depth+k];
1770 for(i=0; i<width; i++){
1773 near = buffer[(firstLine*width+i)/8] >> (7-(i%8)) & 1;
1777 if((buffer[(j*width+i)/8] >> (7-(i%8)) & 1) != near){
1793 for(i=0;i<width-7;i++){
1820 int width = params->pixels_per_line;
1825 int firstCol = width-1;
1834 lastCol = width;
1875 if(farCol < 0 || farCol >= width){
1878 if(nearCol < 0 || nearCol >= width){