PipeWire
0.1.4
|
Functions | |
struct pw_port * | pw_port_new (enum pw_direction direction, uint32_t port_id, struct pw_properties *properties, size_t user_data_size) |
enum pw_direction | pw_port_get_direction (struct pw_port *port) |
Get the port direction. More... | |
uint32_t | pw_port_get_id (struct pw_port *port) |
Get the port id. More... | |
const struct pw_properties * | pw_port_get_properties (struct pw_port *port) |
void | pw_port_update_properties (struct pw_port *port, const struct spa_dict *dict) |
struct pw_node * | pw_port_get_node (struct pw_port *port) |
Get the port parent node or NULL when not yet set. More... | |
void | pw_port_set_implementation (struct pw_port *port, const struct pw_port_implementation *implementation, void *data) |
void | pw_port_add_listener (struct pw_port *port, struct spa_hook *listener, const struct pw_port_events *events, void *data) |
void * | pw_port_get_user_data (struct pw_port *port) |
void | pw_port_add (struct pw_port *port, struct pw_node *node) |
void | pw_port_destroy (struct pw_port *port) |
int | pw_port_enum_formats (struct pw_port *port, struct spa_format **format, const struct spa_format *filter, int32_t index) |
int | pw_port_set_format (struct pw_port *port, uint32_t flags, const struct spa_format *format) |
int | pw_port_get_format (struct pw_port *port, const struct spa_format **format) |
int | pw_port_get_info (struct pw_port *port, const struct spa_port_info **info) |
int | pw_port_enum_params (struct pw_port *port, uint32_t index, struct spa_param **param) |
int | pw_port_set_param (struct pw_port *port, struct spa_param *param) |
int | pw_port_use_buffers (struct pw_port *port, struct spa_buffer **buffers, uint32_t n_buffers) |
int | pw_port_alloc_buffers (struct pw_port *port, struct spa_param **params, uint32_t n_params, struct spa_buffer **buffers, uint32_t *n_buffers) |
References pw_node_info::change_mask, pw_node::data_loop, pw_port::direction, pw_node::graph, pw_port::graph, pw_port::implementation, pw_port::implementation_data, pw_node::info, pw_node::input_port_map, pw_node::input_ports, pw_port::io, pw_port::link, pw_node_info::n_input_ports, pw_node_info::n_output_ports, pw_port::node, pw_node::output_port_map, pw_node::output_ports, pw_port::port_id, PW_DIRECTION_INPUT, pw_loop_invoke, pw_node::rt, pw_port::rt, and pw_port_implementation::set_io.
void pw_port_add_listener | ( | struct pw_port * | port, |
struct spa_hook * | listener, | ||
const struct pw_port_events * | events, | ||
void * | data | ||
) |
References pw_port::listener_list.
Referenced by pw_link_new().
int pw_port_alloc_buffers | ( | struct pw_port * | port, |
struct spa_param ** | params, | ||
uint32_t | n_params, | ||
struct spa_buffer ** | buffers, | ||
uint32_t * | n_buffers | ||
) |
References pw_node::data_loop, pw_port::node, pw_loop_invoke, PW_PORT_STATE_PAUSED, PW_PORT_STATE_READY, and pw_port::state.
void pw_port_destroy | ( | struct pw_port * | port | ) |
References pw_node::data_loop, pw_port::listener_list, pw_port::node, and pw_loop_invoke.
int pw_port_enum_formats | ( | struct pw_port * | port, |
struct spa_format ** | format, | ||
const struct spa_format * | filter, | ||
int32_t | index | ||
) |
References pw_port_implementation::enum_formats, pw_port::implementation, and pw_port::implementation_data.
Referenced by pw_core::pw_core_find_format().
int pw_port_enum_params | ( | struct pw_port * | port, |
uint32_t | index, | ||
struct spa_param ** | param | ||
) |
enum pw_direction pw_port_get_direction | ( | struct pw_port * | port | ) |
Get the port direction.
References pw_port::direction.
int pw_port_get_format | ( | struct pw_port * | port, |
const struct spa_format ** | format | ||
) |
References pw_port_implementation::get_format, pw_port::implementation, and pw_port::implementation_data.
Referenced by pw_core::pw_core_find_format().
uint32_t pw_port_get_id | ( | struct pw_port * | port | ) |
Get the port id.
References pw_port::port_id.
int pw_port_get_info | ( | struct pw_port * | port, |
const struct spa_port_info ** | info | ||
) |
Get the port parent node or NULL when not yet set.
References pw_port::node.
const struct pw_properties* pw_port_get_properties | ( | struct pw_port * | port | ) |
References pw_port::properties.
void* pw_port_get_user_data | ( | struct pw_port * | port | ) |
References pw_port::user_data.
struct pw_port* pw_port_new | ( | enum pw_direction | direction, |
uint32_t | port_id, | ||
struct pw_properties * | properties, | ||
size_t | user_data_size | ||
) |
int pw_port_set_format | ( | struct pw_port * | port, |
uint32_t | flags, | ||
const struct spa_format * | format | ||
) |
void pw_port_set_implementation | ( | struct pw_port * | port, |
const struct pw_port_implementation * | implementation, | ||
void * | data | ||
) |
References pw_node::implementation, pw_port::implementation, and pw_port::implementation_data.
int pw_port_set_param | ( | struct pw_port * | port, |
struct spa_param * | param | ||
) |
void pw_port_update_properties | ( | struct pw_port * | port, |
const struct spa_dict * | dict | ||
) |
References pw_port::listener_list, pw_port::properties, and pw_properties_set().
int pw_port_use_buffers | ( | struct pw_port * | port, |
struct spa_buffer ** | buffers, | ||
uint32_t | n_buffers | ||
) |
References pw_node::data_loop, pw_port::node, pw_loop_invoke, PW_PORT_STATE_PAUSED, PW_PORT_STATE_READY, and pw_port::state.