PipeWire 1.6.11
Loading...
Searching...
No Matches
buffers.h
Go to the documentation of this file.
1/* PipeWire */
2/* SPDX-FileCopyrightText: Copyright © 2019 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef PIPEWIRE_BUFFERS_H
6#define PIPEWIRE_BUFFERS_H
7
8#include <spa/node/node.h>
9
10#include <pipewire/context.h>
11#include <pipewire/mem.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
20
25
26#define PW_BUFFERS_FLAG_NONE 0
27#define PW_BUFFERS_FLAG_NO_MEM (1<<0)
28#define PW_BUFFERS_FLAG_SHARED (1<<1)
31#define PW_BUFFERS_FLAG_DYNAMIC (1<<2)
32#define PW_BUFFERS_FLAG_IN_PRIORITY (1<<4)
33#define PW_BUFFERS_FLAG_ASYNC (1<<5)
34#define PW_BUFFERS_FLAG_DELAYED (1<<6)
36
37struct pw_buffers {
38 struct pw_memblock *mem;
40 uint32_t n_buffers;
41 uint32_t flags;
42};
44int pw_buffers_negotiate(struct pw_context *context, uint32_t flags,
45 struct spa_node *outnode, uint32_t out_port_id,
46 struct spa_node *innode, uint32_t in_port_id,
47 struct pw_buffers *result);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* PIPEWIRE_BUFFERS_H */
int pw_buffers_negotiate(struct pw_context *context, uint32_t flags, struct spa_node *outnode, uint32_t out_port_id, struct spa_node *innode, uint32_t in_port_id, struct pw_buffers *result)
Definition buffers.c:196
void pw_buffers_clear(struct pw_buffers *buffers)
Definition buffers.c:392
spa/node/node.h
pipewire/context.h
pipewire/mem.h
Definition buffers.h:48
uint32_t flags
flags
Definition buffers.h:52
uint32_t n_buffers
number of port buffers
Definition buffers.h:51
struct spa_buffer ** buffers
port buffers
Definition buffers.h:50
struct pw_memblock * mem
allocated buffer memory
Definition buffers.h:49
Memory block structure.
Definition mem.h:72
A Buffer.
Definition buffer.h:110
Definition node.h:51