* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)aminmax.c 5.1 (Berkeley) %G%";
* aminmax: find the 4 edges of the glyph within a window.
* This version is approximate, in that it may include some
* blank areas. But it's much faster because it doesn't have
* to call mat over and over.
aminmax(g
, nrow
, ncol
, rmin
, cmin
, rmax
, cmax
)
int *rmin
, *cmin
, *rmax
, *cmax
;
register int nc
= (ncol
+7)>>3;
register int r1
, r2
, c1
, c2
;
r1
= nrow
; c1
= nc
; r2
= c2
= 0;
*cmin
= 8*c1
; *cmax
= 8*c2
+7;