PipeWire 1.6.8

Loading...
Searching...
No Matches
Buffers
Implementation API

Buffer handling. More...

## Files
file | buffers.h
| pipewire/buffers.h

## Data Structures
struct | pw_buffers

## Macros
#define | PW_BUFFERS_FLAG_NONE 0
#define | PW_BUFFERS_FLAG_NO_MEM (1<<0)
| don't allocate buffer memory
#define | PW_BUFFERS_FLAG_SHARED (1<<1)
| buffers can be shared, This makes sure that the data types on the buffers don't contain any MemPtr, only fd based memory.
#define | PW_BUFFERS_FLAG_DYNAMIC (1<<2)
| buffers have dynamic data
#define | PW_BUFFERS_FLAG_IN_PRIORITY (1<<4)
| input parameters have priority
#define | PW_BUFFERS_FLAG_ASYNC (1<<5)
| one of the nodes is async

## Functions
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)
void | pw_buffers_clear (struct pw_buffers *buffers)

## Detailed Description

Buffer handling.

## Macro Definition Documentation

## ◆ PW_BUFFERS_FLAG_NONE

#define PW_BUFFERS_FLAG_NONE 0

## ◆ PW_BUFFERS_FLAG_NO_MEM

#define PW_BUFFERS_FLAG_NO_MEM (1<<0)

don't allocate buffer memory

## ◆ PW_BUFFERS_FLAG_SHARED

#define PW_BUFFERS_FLAG_SHARED (1<<1)

buffers can be shared, This makes sure that the data types on the buffers don't contain any MemPtr, only fd based memory.

## ◆ PW_BUFFERS_FLAG_DYNAMIC

#define PW_BUFFERS_FLAG_DYNAMIC (1<<2)

buffers have dynamic data

## ◆ PW_BUFFERS_FLAG_IN_PRIORITY

#define PW_BUFFERS_FLAG_IN_PRIORITY (1<<4)

input parameters have priority

## ◆ PW_BUFFERS_FLAG_ASYNC

#define PW_BUFFERS_FLAG_ASYNC (1<<5)

one of the nodes is async

## Function Documentation

## ◆ 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 )

## ◆ pw_buffers_clear()

void pw_buffers_clear | ( | struct pw_buffers * | buffers | ) |