SPRAAK
|
definitions for the signal processing routines More...
Data Structures | |
struct | SprSspFlist |
struct | SprSspFinfo |
struct | SprSspAS |
struct | SprSspStatus |
struct | SprSspStatusIO |
Save/load a modules status. More... | |
struct | SprSspStatusUpdate |
Update module status with some new data. More... | |
struct | SprSspInfo |
struct | SprSspDesc |
struct | SprSspDlist |
struct | SprSspStoreInfo |
struct | SprSspRecallInfo |
struct | spr_t_ssp_types |
Typedefs | |
typedef SprSspStatusIO | SprSspStatusLoad |
typedef SprSspStatusIO | SprSspStatusSave |
typedef void(* | _FuncPtr1_SSP_MASTER_ )(struct spr_t_ssp_info *info, SprSspStatus *action) |
typedef int(* | _FuncPtr2_SSP_MASTER_ )(struct spr_t_ssp_info *info, const void *frame_in, void *frame_out) |
typedef void(* | _FuncPtr3_SSP_MASTER_ )(struct spr_t_ssp_info *info) |
typedef void *(* | _FuncPtr4_SSP_MASTER_ )(SprStream *f, struct spr_t_ssp_desc *d) |
typedef int(* | _FuncPtr5_SSP_MASTER_ )(SprSspInfo *ssp_start, const char **line_array, void *aux_info) |
typedef int(* | _FuncPtr6_SSP_MASTER_ )(SprSspInfo *info, const void *frame_in, void *frame_out) |
Enumerations | |
enum | { SPR_SSP_FRAME_OUT, SPR_SSP_FRAME_SKP, SPR_SSP_FRAME_END, SPR_SSP_FRAME_ERR, SPR_SSP_FRAME_HLD } |
enum | { SPR_SSP_FLIST_STOP, SPR_SSP_FLIST_CONTINUE, SPR_SSP_FLIST_START, SPR_SSP_FLIST_PAUSE, SPR_SSP_FLIST_RESUME } |
enum | { SPR_SSP_STATUS_NOI, SPR_SSP_STATUS_RDY, SPR_SSP_STATUS_ERR, SPR_SSP_STATUS_FAT } |
enum | { SPR_SSP_PASTE_STORE, SPR_SSP_PASTE_RECALL, SPR_SSP_PASTE_GET_VLEN, SPR_SSP_PASTE_GET_TYPE, SPR_SSP_PASTE_CHK_NAME, SPR_SSP_PASTE_LAST } |
enum | { SPR_SSP_MODSTATUS_LOAD, SPR_SSP_MODSTATUS_SAVE, SPR_SSP_MODSTATUS_UPDATE } |
Action ID's. More... | |
enum | { SPR_SSP_MOD_AUX_NULL, SPR_SSP_MOD_AUX_KEYS, SPR_SSP_MOD_AUX_VAR, SPR_SSP_MOD_AUX_DES } |
note: lowest bits reverved for FEVAL_SUBST_... flags More... | |
enum | { SPR_SSP_LT_EMPTY, SPR_SSP_LT_GLOBAL_CMD, SPR_SSP_LT_HEADER, SPR_SSP_LT_LOCAL_CMD } |
Functions | |
int | spr_ssp_line_type (const char *str) |
const char * | spr_ssp_get_line (const char ***line_array, int req_types, int stop_types) |
const char * | spr_ssp_next_line (const char ***line_array) |
Variables | |
char * | spr_ssp_str_err [] |
char * | spr_ssp_str_err_short [] |
char * | spr_ssp_str_status [] |
char * | spr_ssp_str_paste [] |
SprSspDesc | spr_ssp_empty_desc |
definitions for the signal processing routines
The signal processing routines must provide the following routines towards the ssp_master module: setup_xxx, reset_xxx, process_xxx and free_xxx.
The following fields in the ssp_info structure has to be filled in:
The following functionality is required:
This procedure is called before a new file will be processed. Its main task is initializing/resetting the specific information. It is also used to ask for special actions like storing and loading a certain status, or modifying the modules behaviour on the fly. Currently, the following actions (action) are defined:
Process a single frame. The folowing return codes are valid:
The order of the frames must remain intact. The output stream can be delayed by returning SSP_FRAME_HLD and frames can be left out by returning SSP_FRAME_SKP.After the last valid input frame, NULL pointers are given as input frame until a SSP_FRAME_END is received. This ensures that the signal processing routines can return all delayed frames.
The master routines reflect a same structure: