Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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 *src, const struct mpipe_structure *caps)
 Set a given capability on the source pad.
int(* decide_buffer_pool )(struct mpipe_src *self, struct mpipe_dispatch *query)
 Decide the buffer pool for the downstream peer.

Detailed Description

Base Source Element Structure.

The source element is responsible for generating data and pushing it downstream. It contains a source pad for output.

Field Documentation

◆ decide_buffer_pool

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.

◆ element

struct mpipe_element mpipe_src::element

Base element structure.

◆ num_buffers

uint32_t mpipe_src::num_buffers

Number of buffers that the source outputs before sending EOS; 0 means will run forever.

◆ pool

struct mpipe_buffer_pool* mpipe_src::pool

Buffer pool for managing output buffers.

◆ set_caps

int(* mpipe_src::set_caps) (struct mpipe_src *src, const struct mpipe_structure *caps)

Set a given capability on the source pad.

◆ src_pad

struct mpipe_pad mpipe_src::src_pad

Source pad for output data.


The documentation for this struct was generated from the following file: