Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mpipe_sink.h
Go to the documentation of this file.
1/*
2 * Copyright 2025-2026 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_MPIPE_MPIPE_SINK_H_
14#define ZEPHYR_INCLUDE_MPIPE_MPIPE_SINK_H_
15
34
39
40struct mpipe_dispatch;
41
51
58struct mpipe_sink {
69 int (*set_caps)(struct mpipe_sink *sink, const struct mpipe_structure *caps);
76 int (*propose_buffer_pool)(struct mpipe_sink *self, struct mpipe_dispatch *query);
77};
78
92int mpipe_sink_init(struct mpipe_sink *sink, uint8_t id);
93
108
110
111#endif /* ZEPHYR_INCLUDE_MPIPE_MPIPE_SINK_H_ */
mpipe_state_change
enum mpipe_state_change
Definition mpipe_element.h:141
int mpipe_sink_change_state(struct mpipe_element *self, enum mpipe_state_change transition)
Change state function for the base sink element.
mpipe_prop_sink
Properties for a sink element.
Definition mpipe_sink.h:47
int mpipe_sink_init(struct mpipe_sink *sink, uint8_t id)
Initialize a sink element.
@ MPIPE_PROP_SINK_LAST
Last sink property marker (for validation/iteration).
Definition mpipe_sink.h:49
Buffer and buffer pool APIs.
Element: the unit a pipeline is built from.
Pad: the point where two elements meet.
Structure: one media capability, held by value.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
A query or an event traveling a pad link.
Definition mpipe_dispatch.h:77
Element base class.
Definition mpipe_element.h:165
Pad structure.
Definition mpipe_pad.h:128
Sink Element Structure.
Definition mpipe_sink.h:58
int(* set_caps)(struct mpipe_sink *sink, const struct mpipe_structure *caps)
Set a given caps to the element.
Definition mpipe_sink.h:69
struct mpipe_pad sink_pad
Input pad for receiving data.
Definition mpipe_sink.h:62
int(* propose_buffer_pool)(struct mpipe_sink *self, struct mpipe_dispatch *query)
Propose a buffer pool to the upstream peer.
Definition mpipe_sink.h:76
struct mpipe_element element
Base element structure.
Definition mpipe_sink.h:60
Fixed-size container holding the fields of one capability.
Definition mpipe_structure.h:179