XCORE SDK
XCORE Software Development Kit
|
Functions | |
void | agc_init (agc_state_t *agc, agc_config_t *config) |
Initialise the AGC. More... | |
void | agc_process_frame (agc_state_t *agc, int32_t output[AGC_FRAME_ADVANCE], const int32_t input[AGC_FRAME_ADVANCE], agc_meta_data_t *meta_data) |
Perform AGC processing on a frame of input data. More... | |
void agc_init | ( | agc_state_t * | agc, |
agc_config_t * | config | ||
) |
Initialise the AGC.
This function initialises the AGC state with the provided configuration. It must be called at startup to initialise the AGC before processing any frames, and can be called at any time after that to reset the AGC instance, returning the internal AGC state to its defaults.
[out] | agc | AGC state structure |
[in] | config | Initial configuration values |
void agc_process_frame | ( | agc_state_t * | agc, |
int32_t | output[AGC_FRAME_ADVANCE], | ||
const int32_t | input[AGC_FRAME_ADVANCE], | ||
agc_meta_data_t * | meta_data | ||
) |
Perform AGC processing on a frame of input data.
This function updates the AGC's internal state based on the input frame and meta-data, and returns an output containing the result of the AGC algorithm applied to the input.
The input
and output
pointers can be equal to perform the processing in-place.
[in,out] | agc | AGC state structure |
[out] | output | Array to return the resulting frame of data |
[in] | input | Array of frame data on which to perform the AGC |
[in] | meta_data | Meta-data structure with VAD/AEC data |