aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/aplib/apimbuf.x
blob: d600a15dc1ef312c0908587230515a13b43ac997 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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