Maestro Audio Framework v 1.7
NXP Semiconductors
|
This file contains the streamer element pad implementation. More...
Functions | |
static FlowReturn | pad_chain (StreamPad *pad, StreamBuffer *buffer) |
Function for processing the pad chain handler. | |
static FlowReturn | pad_pull (StreamPad *pad, uint32_t offset, uint32_t size, StreamBuffer *buffer) |
Function for processing the pad pull handler. | |
static void | pre_activate (StreamPad *pad, PadScheduling new_mode) |
Pre activation function. | |
static void | post_activate (StreamPad *pad, PadScheduling new_mode) |
Post activation function. | |
static FlowReturn | event_create (StreamEvent *event, EventType type, StreamDataFormat format, uint32_t data) |
Create event to be sent to another pad. | |
FlowReturn | init_pad (StreamPad *pad, void *parent, PadType type) |
Pad initialization function. | |
FlowReturn | deinit_pad (StreamPad *pad) |
Pad deinitialization function. | |
FlowReturn | pad_push (StreamPad *pad, StreamBuffer *buffer) |
Push the data buffer to the peer pad. | |
FlowReturn | pad_pull_range (StreamPad *pad, uint32_t offset, uint32_t size, StreamBuffer *buffer) |
Pull the data buffer from the peer pad. | |
uint8_t | pad_push_event (StreamPad *pad, StreamEvent *event) |
Push event to the peer pad. | |
uint8_t | pad_send_event (StreamPad *pad, StreamEvent *event) |
Send the event to the element where it will be handled by a handler function. | |
uint8_t | activate_pad (StreamPad *pad, uint8_t activate) |
Call the appropriate pad activation function. | |
uint8_t | pad_activate_pull (StreamPad *pad, uint8_t active) |
Pad activation/deactivation in pull mode. | |
uint8_t | pad_activate_push (StreamPad *pad, uint8_t active) |
Pad activation/deactivation in push mode. | |
FlowReturn | event_create_flush_start (StreamEvent *event) |
Create flush start event. | |
FlowReturn | event_create_flush_stop (StreamEvent *event) |
Create flush stop event. | |
FlowReturn | event_create_eos (StreamEvent *event) |
Create end of stream event. | |
FlowReturn | event_create_new_segment (StreamEvent *event, StreamDataFormat format, uint32_t data) |
Create new segment event. | |
FlowReturn | event_create_seek (StreamEvent *event, StreamDataFormat format, uint32_t data) |
Create seek event. | |
uint8_t | pad_query (StreamPad *pad, StreamQuery *query) |
Send a query to a pad. | |
FlowReturn | query_create (StreamQuery *query, StreamInfoType type, StreamDataFormat format, StreamDataType data_type, StreamData *data) |
Create a query for element or pipeline. | |
|
static |
pad | sink pad that needs to process the chain handler |
buffer | buffer to be processed |
|
static |
pad | source pad that needs to process the pull handler |
offset | position in the source buffer |
size | size to be read |
buffer | buffer to be filled |
|
static |
pad | pad to be activated |
new_mode | scheduling mode to be applied |
|
static |
pad | pad to be activated |
new_mode | scheduling mode to be applied |
|
static |
event | event object |
type | type of event |
format | event format |
data | event data |
FlowReturn init_pad | ( | StreamPad * | pad, |
void * | parent, | ||
PadType | type ) |
pad | pad object |
parent | parent element object |
type | pad type |
FlowReturn deinit_pad | ( | StreamPad * | pad | ) |
pad | pad object |
FlowReturn pad_push | ( | StreamPad * | pad, |
StreamBuffer * | buffer ) |
pad | pad object |
buffer | data buffer |
FlowReturn pad_pull_range | ( | StreamPad * | pad, |
uint32_t | offset, | ||
uint32_t | size, | ||
StreamBuffer * | buffer ) |
pad | pad object |
offset | offset position to be read from |
size | size to be read |
buffer | data buffer to be filled |
uint8_t pad_push_event | ( | StreamPad * | pad, |
StreamEvent * | event ) |
pad | pad object |
event | event object |
uint8_t pad_send_event | ( | StreamPad * | pad, |
StreamEvent * | event ) |
pad | pad object |
event | event object |
uint8_t activate_pad | ( | StreamPad * | pad, |
uint8_t | activate ) |
pad | pad object |
activate | activation/deactivation flag |
uint8_t pad_activate_pull | ( | StreamPad * | pad, |
uint8_t | active ) |
pad | pad object |
active | activation/deactivation flag |
uint8_t pad_activate_push | ( | StreamPad * | pad, |
uint8_t | active ) |
pad | pad object |
active | activation/deactivation flag |
FlowReturn event_create_flush_start | ( | StreamEvent * | event | ) |
event | event object |
FlowReturn event_create_flush_stop | ( | StreamEvent * | event | ) |
event | event object |
FlowReturn event_create_eos | ( | StreamEvent * | event | ) |
event | event object |
FlowReturn event_create_new_segment | ( | StreamEvent * | event, |
StreamDataFormat | format, | ||
uint32_t | data ) |
event | event object |
format | data format |
data | data object |
FlowReturn event_create_seek | ( | StreamEvent * | event, |
StreamDataFormat | format, | ||
uint32_t | data ) |
event | event object |
format | data format |
data | data object |
uint8_t pad_query | ( | StreamPad * | pad, |
StreamQuery * | query ) |
pad | pad object |
query | query object |
FlowReturn query_create | ( | StreamQuery * | query, |
StreamInfoType | type, | ||
StreamDataFormat | format, | ||
StreamDataType | data_type, | ||
StreamData * | data ) |
query | query object to be created |
type | type of information to be queried |
format | data format |
data_type | data type |
data | data object |