![]() |
Maestro Audio Framework v 1.5
NXP Semiconductors
|
This file contains the implementation for the AudioProc integration. More...
#include <string.h>#include "audio_proc.h"#include "pipeline.h"#include "streamer_element_properties.h"Functions | |
| static uint8_t | audio_proc_sink_pad_activation_handler (StreamPad *pad, uint8_t active) |
| This function activates the pad and allocates memory for the AudioProc element. More... | |
| static FlowReturn | audio_proc_sink_pad_chain_handler (StreamPad *pad, StreamBuffer *buf) |
| This pad function takes data from the source element and pushes it onto the AUDIO_PROC library. More... | |
| static uint8_t | audio_proc_sink_pad_event_handler (StreamPad *pad, StreamEvent *event) |
| This function processes the pad events. More... | |
| static int32_t | audio_proc_change_state (StreamElement *element_ptr, PipelineState new_state) |
| This function changes the AUDIO_PROC state and calls the appropriate apis for that state and takes the actions and then returns. PipelineState Transition: NULL to READY: Nothing to do READY to PAUSE: Activate sink pads and their peer pads PAUSE to PLAY: Start Writing PAUSE to READY: Deactivate sink pads and their peer pads READY to NULL: Nothing to do. More... | |
| static uint8_t | audio_proc_sink_pad_query_handler (StreamPad *pad, StreamQuery *query) |
| This pad function handles query from the pipeline. If not able to handle the query then it pushes the query to its peer. More... | |
| static uint8_t | audio_proc_src_pad_query_handler (StreamPad *pad, StreamQuery *query) |
| audio_proc_src_pad_query_handler More... | |
| static uint8_t | audio_proc_src_pad_event_handler (StreamPad *pad, StreamEvent *event) |
| audio_proc_src_pad_event_handler More... | |
| static FlowReturn | audio_proc_src_pull_handler (StreamPad *pad, StreamBuffer *buffer, uint32_t size, uint32_t offset) |
| Empty AUDIO_PROC src pull handler function. More... | |
| static int32_t | audio_proc_set_property (StreamElement *element_ptr, uint16_t prop, uint32_t val) |
| This function sets AUDIO_PROC element's properties. More... | |
| static int32_t | audio_proc_get_property (StreamElement *element_ptr, uint16_t prop, uint32_t *val_ptr) |
| This function gets AUDIO_PROC element's properties. More... | |
| int32_t | audio_proc_init_element (StreamElement *element_ptr) |
| This function initializes the audio_proc element and pads. More... | |
| int32_t | audio_proc_set_buffer (ElementHandle element_hdl, char *location_ptr, uint32_t size) |
| Set the location of the memory buffer to write to as well as the size. More... | |
| int32_t | audio_proc_register_ext_processing (ElementHandle element, AudioProcInitFunc init_func_ptr, AudioProcPostProcFunc proc_func_ptr, AudioProcDeinitFunc deinit_func_ptr, void *arg_ptr) |
| Register function pointers and arguments. More... | |
|
static |
| pad | pad handle |
| active | boolean activate/disactivate pad |
| true | success |
| false | failed |
|
static |
| pad | pad handle |
| buf | input buffer |
| FLOW_OK | success |
| FLOW_UNEXPECTED | bad paramesters |
| FLOW_ERROR | write failed |
|
static |
| pad | pad handle |
| event | event enumeration |
| true | success |
| false | failed |
|
static |
| element_ptr | element |
| new_state | audio_proc state to be changed |
| STREAM_OK | success |
| STREAM_ERR_INVALID_ARGS | invalid arguments |
|
static |
| pad | pad handle |
| query | input buffer |
|
static |
This pad function handles query from the pipeline. If not able to handle the query then it pushes the query to its peer.
| pad | pad handle |
| query | input buffer |
|
static |
This pad function handles events from the pipeline. If not able to handle the event then it pushes the event to its peer.
| pad | pad handle |
| event | input buffer |
|
static |
| pad | Pad pointer |
| buffer | Buffer pointer |
| size | Size |
| offset | Offset |
|
static |
| element_ptr | AUDIO_PROC element instance |
| prop | audio_proc element property |
| val | value pointer |
| STREAM_OK | success |
| STREAM_ERR_INFO_ABSENT | unknown property |
| STREAM_GENERAL | bad status to set the property |
|
static |
| element_ptr | AUDIO_PROC element instance |
| prop | audio_proc element property |
| val_ptr | value pointer |
| STREAM_OK | success |
| STREAM_ERR_INVALID_ARGS | bad arguments |
| STREAM_ERR_INFO_ABSENT | unknown property |
| int32_t audio_proc_init_element | ( | StreamElement * | element_ptr | ) |
| element_ptr | pointer of audio_proc element instance |
| STREAM_OK | success |
| STREAM_ERR_ELEMENT_NOT_FOUND | invalid instance pointer of element_ptr |
| int32_t audio_proc_set_buffer | ( | ElementHandle | element_hdl, |
| char * | location_ptr, | ||
| uint32_t | size | ||
| ) |
| element_hdl | element handle |
| location_ptr | location path |
| size | buffer size |
| STREAM_OK | success |
| STREAM_ERR_INVALID_ARGS | invalid parameters |
| STREAM_ERR_GENERAL | status is bigger than or eque to STATE_PAUSED |
| int32_t audio_proc_register_ext_processing | ( | ElementHandle | element, |
| AudioProcInitFunc | init_func_ptr, | ||
| AudioProcPostProcFunc | proc_func_ptr, | ||
| AudioProcDeinitFunc | deinit_func_ptr, | ||
| void * | arg_ptr | ||
| ) |
| element | audio_proc element handle |
| init_func_ptr | initialization function pointer |
| proc_func_ptr | processing function pointer |
| deinit_func_ptr | deinit function pointer |
| arg_ptr | arguments pointer |