PipeWire
1.2.5
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
14
extern
"C"
{
15
#endif
16
26
#define PW_BUFFERS_FLAG_NONE 0
27
#define PW_BUFFERS_FLAG_NO_MEM (1<<0)
28
#define PW_BUFFERS_FLAG_SHARED (1<<1)
29
#define PW_BUFFERS_FLAG_DYNAMIC (1<<2)
30
#define PW_BUFFERS_FLAG_SHARED_MEM (1<<3)
31
#define PW_BUFFERS_FLAG_IN_PRIORITY (1<<4)
32
#define PW_BUFFERS_FLAG_ASYNC (1<<5)
34
struct pw_buffers {
35
struct
pw_memblock
*mem;
36
struct
spa_buffer
**buffers;
37
uint32_t n_buffers;
38
uint32_t flags;
39
};
40
41
int
pw_buffers_negotiate
(
struct
pw_context
*context, uint32_t flags,
42
struct
spa_node
*outnode, uint32_t out_port_id,
43
struct
spa_node
*innode, uint32_t in_port_id,
44
struct
pw_buffers
*result);
45
46
void
pw_buffers_clear
(
struct
pw_buffers
*buffers);
47
52
#ifdef __cplusplus
53
}
54
#endif
55
56
#endif
/* PIPEWIRE_BUFFERS_H */
pw_buffers_clear
void pw_buffers_clear(struct pw_buffers *buffers)
Definition:
buffers.c:350
pw_buffers
Definition:
buffers.h:45
mem.h
pipewire/mem.h
pw_context
node.h
spa/node/node.h
spa_buffer
A Buffer.
Definition:
buffer.h:100
spa_node
Definition:
node.h:41
pw_memblock
Memory block structure.
Definition:
mem.h:64
pw_buffers_negotiate
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:182
context.h
pipewire/context.h
pipewire
buffers.h
Generated by
1.8.20