17 #ifndef _COREMODMEMORY_H 18 #define _COREMODMEMORY_H 21 #define NB_IMAGES_BUFFER 500 23 #define NB_IMAGES_BUFFER_REALLOC 600 26 #define NB_VARIABLES_BUFFER 100 28 #define NB_VARIABLES_BUFFER_REALLOC 150 111 long create_image_ID(const
char *name,
long naxis, uint32_t *size, uint8_t atype,
int shared,
int nbkw);
131 long image_write_keyword_D(const
char *IDname, const
char *kname,
double value, const
char *comment);
132 long image_write_keyword_S(const
char *IDname, const
char *kname, const
char *value, const
char *comment);
182 long create_3Dimage_ID(const
char *ID_name, uint32_t xsize, uint32_t ysize, uint32_t zsize);
186 long create_3DCimage_ID(const
char *ID_name, uint32_t xsize, uint32_t ysize, uint32_t zsize);
218 long copy_image_ID(const
char *name, const
char *newname,
int shared);
271 int_fast8_t
mk_complex_from_reim(const
char *re_name, const
char *im_name, const
char *out_name,
int sharedmem);
273 int_fast8_t
mk_complex_from_amph(const
char *am_name, const
char *ph_name, const
char *out_name,
int sharedmem);
275 int_fast8_t
mk_reim_from_complex(const
char *in_name, const
char *re_name, const
char *im_name,
int sharedmem);
277 int_fast8_t
mk_amph_from_complex(const
char *in_name, const
char *am_name, const
char *ph_name,
int sharedmem);
279 int_fast8_t
mk_reim_from_amph(const
char *am_name, const
char *ph_name, const
char *re_out_name, const
char *im_out_name,
int sharedmem);
281 int_fast8_t
mk_amph_from_reim(const
char *re_name, const
char *im_name, const
char *am_out_name, const
char *ph_out_name,
int sharedmem);
298 int_fast8_t
check_2Dsize(const
char *ID_name, uint32_t xsize, uint32_t ysize);
300 int_fast8_t
check_3Dsize(const
char *ID_name, uint32_t xsize, uint32_t ysize, uint32_t zsize);
320 int_fast8_t
rotate_cube(const
char *ID_name, const
char *ID_out_name,
int orientation);
383 long COREMOD_MEMORY_streamDiff(const
char *IDstream0_name, const
char *IDstream1_name, const
char *IDstreammask_name, const
char *IDstreamout_name,
long semtrig);
408 long COREMOD_MEMORY_image_streamupdateloop(const
char *IDinname, const
char *IDoutname,
long usperiod,
long NBcubes,
long period,
long offsetus, const
char *IDsync_name,
int semtrig,
int timingmode);
443 long COREMOD_MEMORY_PixMapDecode_U(const
char *inputstream_name, uint32_t xsizeim, uint32_t ysizeim, const
char* NBpix_fname, const
char* IDmap_name, const
char *IDout_name, const
char *IDout_pixslice_fname);
int_fast8_t init_COREMOD_memory()
Definition: COREMOD_memory.c:1050
long create_3Dimage_ID(const char *ID_name, uint32_t xsize, uint32_t ysize, uint32_t zsize)
Definition: COREMOD_memory.c:2538
int_fast8_t list_image_ID_file(const char *fname)
Definition: COREMOD_memory.c:3465
int_fast8_t COREMOD_MEMORY_logshim_set_logexit(const char *IDname, int setv)
Definition: COREMOD_memory.c:6749
long COREMOD_MEMORY_cp2shm(const char *IDname, const char *IDshmname)
Definition: COREMOD_memory.c:2925
long create_3DCimage_ID(const char *ID_name, uint32_t xsize, uint32_t ysize, uint32_t zsize)
Definition: COREMOD_memory.c:2566
int_fast8_t mk_amph_from_complex(const char *in_name, const char *am_name, const char *ph_name, int sharedmem)
Definition: COREMOD_memory.c:3884
long create_1Dimage_ID(const char *ID_name, uint32_t xsize)
Definition: COREMOD_memory.c:2382
int_fast8_t mk_reim_from_complex(const char *in_name, const char *re_name, const char *im_name, int sharedmem)
Definition: COREMOD_memory.c:3789
long create_3Dimage_ID_double(const char *ID_name, uint32_t xsize, uint32_t ysize, uint32_t zsize)
Definition: COREMOD_memory.c:2520
long COREMOD_MEMORY_sharedMem_2Dim_log(const char *IDname, uint32_t zsize, const char *logdir, const char *IDlogdata_name)
long COREMOD_MEMORY_image_set_semwait(const char *IDname, long index)
Definition: COREMOD_memory.c:4411
long create_2Dimage_ID(const char *ID_name, uint32_t xsize, uint32_t ysize)
Definition: COREMOD_memory.c:2416
long COREMOD_MEMORY_image_set_cnt0(const char *IDname, int cnt0)
Definition: COREMOD_memory.c:4284
int_fast8_t check_3Dsize(const char *ID_name, uint32_t xsize, uint32_t ysize, uint32_t zsize)
Definition: COREMOD_memory.c:4049
int_fast8_t list_image_ID_ofp(FILE *fo)
Definition: COREMOD_memory.c:3289
long image_write_keyword_L(const char *IDname, const char *kname, long value, const char *comment)
Definition: COREMOD_memory.c:2008
void * waitforsemID(void *ID)
Definition: COREMOD_memory.c:4429
int_fast8_t rotate_cube(const char *ID_name, const char *ID_out_name, int orientation)
Definition: COREMOD_memory.c:4163
long long compute_image_memory()
Definition: COREMOD_memory.c:1419
long COREMOD_MEMORY_check_2Dsize(const char *IDname, uint32_t xsize, uint32_t ysize)
Definition: COREMOD_memory.c:4090
long create_2Dimage_ID_double(const char *ID_name, uint32_t xsize, uint32_t ysize)
Definition: COREMOD_memory.c:2446
int_fast8_t COREMOD_MEMORY_logshim_set_on(const char *IDname, int setv)
Definition: COREMOD_memory.c:6705
long COREMOD_MEMORY_image_streamupdateloop_semtrig(const char *IDinname, const char *IDoutname, long period, long offsetus, const char *IDsync_name, int semtrig, int timingmode)
takes a 3Dimage (circular buffer) and writes slices to a 2D image synchronized with an image semaphor...
Definition: COREMOD_memory.c:5149
long read_sharedmem_image_size(const char *name, const char *fname)
Definition: COREMOD_memory.c:2194
long COREMOD_MEMORY_image_set_sempost_loop(const char *IDname, long index, long dtus)
Definition: COREMOD_memory.c:4393
long image_read_keyword_L(const char *IDname, const char *kname, long *val)
Definition: COREMOD_memory.c:2143
long COREMOD_MEMORY_image_set_sempost_excl_byID(long ID, long index)
Definition: COREMOD_memory.c:4379
int_fast8_t COREMOD_MEMORY_logshim_printstatus(const char *IDname)
Definition: COREMOD_memory.c:6644
int_fast8_t list_image_ID_ofp_simple(FILE *fo)
Definition: COREMOD_memory.c:3422
int_fast8_t clearall()
Definition: COREMOD_memory.c:1809
long COREMOD_MEMORY_check_3Dsize(const char *IDname, uint32_t xsize, uint32_t ysize, uint32_t zsize)
Definition: COREMOD_memory.c:4118
long COREMOD_MEMORY_streamDiff(const char *IDstream0_name, const char *IDstream1_name, const char *IDstreammask_name, const char *IDstreamout_name, long semtrig)
Difference between two streams.
Definition: COREMOD_memory.c:4571
long variable_ID(const char *name)
Definition: COREMOD_memory.c:1527
int_fast8_t delete_image_ID_prefix(const char *prefix)
Definition: COREMOD_memory.c:1773
int_fast8_t list_variable_ID_file(const char *fname)
Definition: COREMOD_memory.c:3543
long image_write_keyword_D(const char *IDname, const char *kname, double value, const char *comment)
Definition: COREMOD_memory.c:2039
long COREMOD_MEMORY_image_NETWORKreceive(int port, int mode, int RT_priority)
Definition: COREMOD_memory.c:5965
int_fast8_t list_image_ID_ncurses()
Definition: COREMOD_memory.c:3102
long COREMOD_MEMORY_image_set_sempost_byID(long ID, long index)
Definition: COREMOD_memory.c:4367
long COREMOD_MEMORY_image_set_semflush(const char *IDname, long index)
set semaphore value to 0
Definition: COREMOD_memory.c:4526
long COREMOD_MEMORY_image_set_cnt1(const char *IDname, int cnt1)
Definition: COREMOD_memory.c:4294
long create_variable_ID(const char *name, double value)
Definition: COREMOD_memory.c:2622
long COREMOD_MEMORY_PixMapDecode_U(const char *inputstream_name, uint32_t xsizeim, uint32_t ysizeim, const char *NBpix_fname, const char *IDmap_name, const char *IDout_name, const char *IDout_pixslice_fname)
Definition: COREMOD_memory.c:6326
Definition: COREMOD_memory.h:36
int_fast8_t init_list_image_ID_ncurses(const char *termttyname)
Definition: COREMOD_memory.c:3078
long copy_image_ID(const char *name, const char *newname, int shared)
Definition: COREMOD_memory.c:2760
long image_ID_noaccessupdate(const char *name)
Definition: COREMOD_memory.c:1496
long create_1DCimage_ID(const char *ID_name, uint32_t xsize)
Definition: COREMOD_memory.c:2400
void * save_fits_function(void *ptr)
Definition: COREMOD_memory.c:1830
int_fast8_t mk_complex_from_amph(const char *am_name, const char *ph_name, const char *out_name, int sharedmem)
Definition: COREMOD_memory.c:3666
int_fast8_t memory_monitor(const char *termttyname)
Definition: COREMOD_memory.c:1376
long compute_nb_variable()
Definition: COREMOD_memory.c:1404
long COREMOD_MEMORY_image_streamupdateloop(const char *IDinname, const char *IDoutname, long usperiod, long NBcubes, long period, long offsetus, const char *IDsync_name, int semtrig, int timingmode)
takes a 3Dimage (circular buffer) and writes slices to a 2D image with time interval specified in us ...
Definition: COREMOD_memory.c:4879
long COREMOD_MEMORY_streamDelay(const char *IDin_name, const char *IDout_name, long delayus, long dtus)
Definition: COREMOD_memory.c:5312
long COREMOD_MEMORY_image_NETWORKtransmit(const char *IDname, const char *IPaddr, int port, int mode, int RT_priority)
Definition: COREMOD_memory.c:5637
long image_list_keywords(const char *IDname)
Definition: COREMOD_memory.c:2100
long COREMOD_MEMORY_image_set_semwait_OR_IDarray(long *IDarray, long NB_ID)
Wait for multiple images semaphores [OR], only works for sem0.
Definition: COREMOD_memory.c:4464
long COREMOD_MEMORY_image_set_status(const char *IDname, int status)
Definition: COREMOD_memory.c:4274
long image_read_keyword_D(const char *IDname, const char *kname, double *val)
Definition: COREMOD_memory.c:2123
long chname_image_ID(const char *ID_name, const char *new_name)
Definition: COREMOD_memory.c:2896
long create_variable_long_ID(const char *name, long value)
Definition: COREMOD_memory.c:2665
long create_image_ID(const char *name, long naxis, uint32_t *size, uint8_t atype, int shared, int nbkw)
Definition: COREMOD_memory.c:2306
int_fast8_t mk_amph_from_reim(const char *re_name, const char *im_name, const char *am_out_name, const char *ph_out_name, int sharedmem)
Definition: COREMOD_memory.c:3991
long COREMOD_MEMORY_stream_halfimDiff(const char *IDstream_name, const char *IDstreamout_name, long semtrig)
Definition: COREMOD_memory.c:4645
long compute_variable_memory()
Definition: COREMOD_memory.c:1442
long COREMOD_MEMORY_image_set_sempost(const char *IDname, long index)
Definition: COREMOD_memory.c:4349
void __attribute__((constructor)) libinit_COREMOD_memory()
Definition: 00CORE.c:87
long compute_nb_image()
Definition: COREMOD_memory.c:1391
void close_list_image_ID_ncurses(void)
Definition: COREMOD_memory.c:3273
int_fast8_t delete_variable_ID(const char *varname)
Definition: COREMOD_memory.c:1791
long image_write_keyword_S(const char *IDname, const char *kname, const char *value, const char *comment)
Definition: COREMOD_memory.c:2068
long next_avail_image_ID()
Definition: COREMOD_memory.c:1567
long create_variable_string_ID(const char *name, const char *value)
Definition: COREMOD_memory.c:2701
long read_sharedmem_image(const char *name)
Definition: COREMOD_memory.c:2266
long COREMOD_MEMORY_image_set_semflush_IDarray(long *IDarray, long NB_ID)
flush multiple semaphores
Definition: COREMOD_memory.c:4500
long next_avail_variable_ID()
Definition: COREMOD_memory.c:1601
long create_2DCimage_ID(const char *ID_name, uint32_t xsize, uint32_t ysize)
Definition: COREMOD_memory.c:2462
int_fast8_t mk_complex_from_reim(const char *re_name, const char *im_name, const char *out_name, int sharedmem)
Definition: COREMOD_memory.c:3576
int_fast8_t list_image_ID()
Definition: COREMOD_memory.c:3447
int_fast8_t list_variable_ID()
Definition: COREMOD_memory.c:3531
long COREMOD_MEMORY_image_set_createsem(const char *IDname, long NBsem)
Definition: COREMOD_memory.c:4324
int_fast8_t delete_image_ID(const char *imname)
Definition: COREMOD_memory.c:1625
int_fast8_t mk_reim_from_amph(const char *am_name, const char *ph_name, const char *re_out_name, const char *im_out_name, int sharedmem)
Definition: COREMOD_memory.c:3982
int_fast8_t COREMOD_MEMORY_testfunc()
Definition: COREMOD_memory.c:1306
int_fast8_t check_2Dsize(const char *ID_name, uint32_t xsize, uint32_t ysize)
Definition: COREMOD_memory.c:4029
long create_2DCimage_ID_double(const char *ID_name, uint32_t xsize, uint32_t ysize)
Definition: COREMOD_memory.c:2480
long COREMOD_MEMORY_SaveAll_sequ(const char *dirname, const char *IDtrig_name, long semtrig, long NBframes)
Definition: COREMOD_memory.c:5515
long COREMOD_MEMORY_SaveAll_snapshot(const char *dirname)
Definition: COREMOD_memory.c:5451
long COREMOD_MEMORY_streamAve(const char *IDstream_name, int NBave, int mode, const char *IDout_name)
Averages frames in stream.
Definition: COREMOD_memory.c:4721
long image_ID(const char *name)
Definition: COREMOD_memory.c:1461