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

Application sink element. More...

Go to the source code of this file.

Data Structures

struct  mpipe_app_sink_cb
 Callback registration for MPIPE_PROP_BASE_APP_SINK_CB. More...
struct  mpipe_app_sink
 Application sink element structure. More...

Typedefs

typedef void(* mpipe_app_sink_cb_t) (const struct net_buf *buf, void *user_data)
 Buffer callback.

Enumerations

enum  { MPIPE_PROP_BASE_APP_SINK_CAPS = MPIPE_PROP_SINK_LAST , MPIPE_PROP_BASE_APP_SINK_CB }
 Application sink property identifiers. More...

Functions

int mpipe_app_sink_init (struct mpipe_app_sink *app_sink, uint8_t id)
 Initialize an application sink element.
int mpipe_app_sink_pull (struct mpipe_app_sink *app_sink, struct net_buf **buf, k_timeout_t timeout)
 Pull the next buffer.

Detailed Description

Application sink element.

The app_sink element hands the buffers reaching the end of a pipeline to the application, either through a callback running in the pipeline's streaming context or through a pull API the application calls at its own pace.