Lines Matching defs:top
59 SANE_Parameters * params, int dpi, SANE_Byte * buffer, int top);
67 static SANE_Status getLeftEdge (int width, int height, int * top, int * bot,
275 int dpiX, int dpiY, int * top, int * bot, int * left, int * right)
322 /* loop thru left and right lists, look for top and bottom extremes */
323 *top = height;
326 if(*top > i){
327 *top = i;
337 *top = height;
359 /* could not find top/bot edges */
360 if(*top > *bot){
366 /* loop thru top and bottom lists, look for l and r extremes
367 * NOTE: We don't look above the top or below the bottom found previously.
371 botBuf[0], topBuf[0], *bot, *top);
375 if(botBuf[i] > topBuf[i] && (botBuf[i]-10 < *bot || topBuf[i]+10 > *top)){
393 if(botBuf[i] > topBuf[i] && (botBuf[i]-10 < *bot || topBuf[i]+10 > *top)){
417 *top,*bot,*left,*right);
436 int top, int bot, int left, int right)
482 for(i=top; i<bot; i++){
489 params->lines = bot-top;
547 /* find best top line */
554 DBG(15,"top: %04.04f %d %d\n",TSlope,TXInter,TYInter);
563 /* find best left line, perpendicular to top line */
576 DBG(15,"sanei_magic_findSkew: top half: %04.04f %d\n",TSlopeHalf,TOffsetHalf);
820 /* skip the top and left 1/4 inch */
854 /* skip the top and left 1/4 inch */
1591 * perpendicular to top slope across the image
1596 getLeftEdge (int width, int height, int * top, int * bot,
1613 if(top[i] < height){
1614 int tyi = top[i] - (slope * i);
1680 SANE_Parameters * params, int dpi, SANE_Byte * buffer, int top)
1698 /* override for top-down */
1699 if(top){