diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/plio/plplls.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/plio/plplls.x')
-rw-r--r-- | sys/plio/plplls.x | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/plio/plplls.x b/sys/plio/plplls.x new file mode 100644 index 00000000..8f8ca491 --- /dev/null +++ b/sys/plio/plplls.x @@ -0,0 +1,35 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <plio.h> + +# PL_PLLS -- Put a line segment input as a line list to a mask, applying the +# given ROP to combine the line segment with the existing line of the mask. + +procedure pl_plls (pl, v, ll_src, ll_depth, npix, rop) + +pointer pl #I mask descriptor +long v[PL_MAXDIM] #I vector coords of line segment +short ll_src[ARB] #I input line list +int ll_depth #I line list depth, bits +int npix #I number of pixels to be set +int rop #I rasterop + +pointer sp, ll_out, ll_dst +pointer pl_access() +errchk pl_access + +begin + if (!R_NEED_DST(rop) && v[1] == 1 && npix == PL_AXLEN(pl,1)) + call pl_update (pl, v, ll_src) + else { + call smark (sp) + call salloc (ll_out, LL_MAXLEN(pl), TY_SHORT) + + ll_dst = pl_access (pl,v) + call pl_linerop (ll_src, 1, PL_MAXVAL(pl), Mems[ll_dst], v[1], + MV(ll_depth), Mems[ll_out], npix, rop) + call pl_update (pl, v, Mems[ll_out]) + + call sfree (sp) + } +end |