Zephyr Project API 4.5.0-rc2
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 {
71 int (*set_caps)(struct mpipe_sink *self, const struct mpipe_structure *caps);
80 int (*propose_buffer_pool)(struct mpipe_sink *self, struct mpipe_dispatch *query);
81};
82
96int mpipe_sink_init(struct mpipe_sink *sink, uint8_t id);
97
112
114
115#endif /* ZEPHYR_INCLUDE_MPIPE_MPIPE_SINK_H_ */
mpipe_state_change
Transition between two adjacent states.
Definition mpipe_element.h:143
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:75
Element base class.
Definition mpipe_element.h:167
Pad structure.
Definition mpipe_pad.h:128
Sink element structure.
Definition mpipe_sink.h:58
int(* set_caps)(struct mpipe_sink *self, const struct mpipe_structure *caps)
Apply the negotiated capability.
Definition mpipe_sink.h:71
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:80
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:165