cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
AOloopControl_IOtools.h
Go to the documentation of this file.
1 
12 #ifndef _AOLOOPCONTROL_IOTOOLS_H
13 #define _AOLOOPCONTROL_IOTOOLS_H
15 
16 
17 
18 
19 #ifndef __STDC_LIB_EXT1__
20 typedef int errno_t;
21 #endif
22 
23 
24 
25 
26 
27 
29 void __attribute__((constructor)) libinit_AOloopControl_IOtools();
30 
31 
32 
33 /* =============================================================================================== */
34 /* =============================================================================================== */
37 /* =============================================================================================== */
38 /* =============================================================================================== */
39 
40 
42  const char *in_name,
43  const char *dark_name,
44  const char *out_name,
45  long size_x,
46  long size_y,
47  long xstart,
48  long ystart
49 );
50 
51 
53 //static void *compute_function_imtotal( void *ptr );
54 
56 //static void *compute_function_dark_subtract( void *ptr );
57 
58 
60  uint32_t CMDmode);
63 
64 
67  long loop,
68  int RM,
69  int normalize,
70  int PixelStreamMode,
71  int InitSem
72 );
73 
74 
75 
76 
77 
78 
79 
80 /* =============================================================================================== */
81 /* =============================================================================================== */
84 /* =============================================================================================== */
85 /* =============================================================================================== */
86 
87 
90  const char *name,
91  const char *fname,
92  long xsize,
93  long ysize,
94  float DefaultValue
95 );
96 
99  const char *name,
100  const char *fname,
101  long xsize,
102  long ysize,
103  long zsize,
104  float DefaultValue
105 );
106 
107 
108 
109 
110 
111 
112 
113 /* =============================================================================================== */
114 /* =============================================================================================== */
117 /* =============================================================================================== */
118 /* =============================================================================================== */
119 
120 
123  const char *IDname,
124  double alpha,
125  const char *IDname_out_ave,
126  const char *IDname_out_AC,
127  const char *IDname_out_RMS
128 );
129 
132  const char *IDname,
133  int xbox0,
134  int ybox0,
135  const char *IDref_name,
136  const char *IDout_name,
137  int insem
138 );
139 
142  const char *IDin_name,
143  const char *IDkern_name,
144  const char *IDout_name,
145  int insem
146 );
147 
150  const char *in_name,
151  const char *out_name,
152  int NBcols,
153  int insem
154 );
155 
156 
157 
158 /* =============================================================================================== */
159 /* =============================================================================================== */
162 /* =============================================================================================== */
163 /* =============================================================================================== */
164 
166 errno_t AOloopControl_IOtools_RTLOGsave(long loop, const char *streamname,
167  const char *dirname);
168 
169 
170 #endif
errno_t Read_cam_frame(long loop, int RM, int normalize, int PixelStreamMode, int InitSem)
Read image from WFS camera.
errno_t AOloopControl_IOtools_RTLOGsave(long loop, const char *streamname, const char *dirname)
Save telemetry.
errno_t AOloopControl_IOtools_AveStream(const char *IDname, double alpha, const char *IDname_out_ave, const char *IDname_out_AC, const char *IDname_out_RMS)
Average data stream.
Definition: AOloopControl_IOtools_datastream_processing.c:177
errno_t AOloopControl_IOtools_camimage_extract2D_sharedmem_loop(const char *in_name, const char *dark_name, const char *out_name, long size_x, long size_y, long xstart, long ystart)
Definition: AOloopControl_IOtools_camerainput.c:140
long AOloopControl_IOtools_stream3Dto2D(const char *in_name, const char *out_name, int NBcols, int insem)
Re-arrange a 3D cube into an array of images into a single 2D frame.
Definition: AOloopControl_IOtools_datastream_processing.c:595
errno_t AOloopControl_IOtools_imAlignStream(const char *IDname, int xbox0, int ybox0, const char *IDref_name, const char *IDout_name, int insem)
Aligns data stream.
Definition: AOloopControl_IOtools_datastream_processing.c:279
long AOloopControl_IOtools_2Dloadcreate_shmim(const char *name, const char *fname, long xsize, long ysize, float DefaultValue)
Load 2D image in shared memory.
Definition: AOloopControl_IOtools_load_image_sharedmem.c:149
int errno_t
Definition: AOloopControl_IOtools.h:20
long AOloopControl_IOtools_3Dloadcreate_shmim(const char *name, const char *fname, long xsize, long ysize, long zsize, float DefaultValue)
Load 3D image in shared memory.
Definition: AOloopControl_IOtools_load_image_sharedmem.c:354
void __attribute__((constructor)) libinit_AOloopControl_IOtools()
Initialize module.
Definition: ImageStreamIO.c:77
errno_t AOcontrolLoop_IOtools_acquireWFSloop_RUN(char *fpsname)
Definition: AOloopControl_IOtools_camerainput.c:637
errno_t AOcontrolLoop_IOtools_acquireWFSloop_FPCONF(char *fpsname, uint32_t CMDmode)
compute sum of image pixels
Definition: AOloopControl_IOtools_camerainput.c:514
errno_t AOcontrolLoop_IOtools_acquireWFSloop(long loop)
Definition: AOloopControl_IOtools_camerainput.c:1116
long AOloopControl_IOtools_frameDelay(const char *IDin_name, const char *IDkern_name, const char *IDout_name, int insem)
Induces temporal offset between input and output streams.
Definition: AOloopControl_IOtools_datastream_processing.c:480
Function prototypes for Adaptive Optics Control loop engine.