aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/aplib/apimbuf.x
diff options
context:
space:
mode:
Diffstat (limited to 'noao/digiphot/apphot/aplib/apimbuf.x')
-rw-r--r--noao/digiphot/apphot/aplib/apimbuf.x17
1 files changed, 17 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/aplib/apimbuf.x b/noao/digiphot/apphot/aplib/apimbuf.x
new file mode 100644
index 00000000..d600a15d
--- /dev/null
+++ b/noao/digiphot/apphot/aplib/apimbuf.x
@@ -0,0 +1,17 @@
+include "../lib/apphotdef.h"
+
+# AP_IMBUF -- Set the parameters for the image buffer.
+
+procedure ap_imbuf (ap, hwidth, sequential)
+
+pointer ap # pointer to the apphot structure
+int hwidth # halfwidth of the line buffer
+int sequential # optimize for sequntial i/o
+
+begin
+ AP_SEQUENTIAL(ap) = sequential
+ AP_HWIDTH(ap) = hwidth
+ if (AP_IMBUF(ap) != NULL)
+ call mfree (AP_IMBUF(ap), TY_REAL)
+ AP_IMBUF(ap) = NULL
+end