sinfo_lamp_cfg_create() |
allocate memory for a lamp_cfg struct
- Returns:
- pointer to allocated base lamp_cfg structure
- Note:
- only the main (base) structure is allocated
|
lamp_config * | sinfo_lamp_cfg_create (void) |
sinfo_lamp_cfg_destroy() |
deallocate all memory associated with a lamp_config data structure
- Parameters:
-
| sc | lamp_config to deallocate |
- Returns:
- void
|
void | sinfo_lamp_cfg_destroy (lamp_config *sc) |
generateLamp_ini_file |
Generate a default ini file for the SPIFFI halogen lamp spectrum extraction.
- Parameters:
-
| ini_name | Name of the file to generate. |
| name_i | Name of the input file, that means the name of the file in which all input frames are listed. |
| name_o | Name of the output file. |
- Returns:
- int 0 if Ok, -1 otherwise.
This function generates a default ini file for the halogen lamp spectrum extraction. The generated file will have the requested name.
|
int | generateLamp_ini_file (char *ini_name, char *name_i, char *name_o, char *name_c) |
parse_lamp_ini_file |
Parse a ini_name.ini file and create a blackboard.
- Parameters:
-
| ini_name | Name of the ASCII file to parse. |
- Returns:
- 1 newly allocated lamp_config blackboard structure.
The requested ini file is parsed and a blackboard object is created, then updated accordingly. Returns NULL in case of error.
|
lamp_config * | parse_lamp_ini_file (char *ini_name) |
sinfo_parse_cpl_input_lamp |
Parse input frames & parameters and create a blackboard.
- Parameters:
-
| cpl_cfg | pointer to parameterlist |
| sof | pointer to input set of frames |
| raw | pointer to input set of raw frames |
- Returns:
- 1 newly allocated lamp_config blackboard structure. The requested ini file is parsed and a blackboard object is created, then updated accordingly. Returns NULL in case of error.
|
lamp_config * | sinfo_parse_cpl_input_lamp (cpl_parameterlist *cpl_cfg, cpl_frameset *sof, cpl_frameset **raw) |
sinfo_lamp_free |
deallocate lamp_config structure
- Parameters:
-
| cfg | pointer to lamp_config structure |
- Returns:
- void
|
void | sinfo_lamp_free (lamp_config *cfg) |