|
Zephyr Project API 4.5.0-rc2
A Scalable Open Source RTOS
|
Base source element structure. More...
#include <mpipe_src.h>
Data Fields | |
| struct mpipe_element | element |
| Base element structure. | |
| struct mpipe_pad | src_pad |
| Source pad for output data. | |
| struct mpipe_buffer_pool * | pool |
| Buffer pool for managing output buffers. | |
| uint32_t | num_buffers |
| Number of buffers that the source outputs before sending EOS; 0 means will run forever. | |
| int(* | set_caps )(struct mpipe_src *self, const struct mpipe_structure *caps) |
| Apply the negotiated capability to the source pad. | |
| int(* | decide_buffer_pool )(struct mpipe_src *self, struct mpipe_dispatch *query) |
| Decide the buffer pool for the downstream peer. | |
Base source element structure.
The source element is responsible for generating data and pushing it downstream. It contains a source pad for output.
| int(* mpipe_src::decide_buffer_pool) (struct mpipe_src *self, struct mpipe_dispatch *query) |
Decide the buffer pool for the downstream peer.
A demand reaches a proposed pool only through mpipe_buffer_pool_set_config; an element deciding for its own pool rebuilds its config baseline here on every negotiation.
| struct mpipe_element mpipe_src::element |
Base element structure.
| uint32_t mpipe_src::num_buffers |
Number of buffers that the source outputs before sending EOS; 0 means will run forever.
| struct mpipe_buffer_pool* mpipe_src::pool |
Buffer pool for managing output buffers.
| int(* mpipe_src::set_caps) (struct mpipe_src *self, const struct mpipe_structure *caps) |
Apply the negotiated capability to the source pad.
| struct mpipe_pad mpipe_src::src_pad |
Source pad for output data.