PipeWire  0.3.33
src/pipewire/filter.h
Go to the documentation of this file.
1 /* PipeWire
2  *
3  * Copyright © 2019 Wim Taymans
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef PIPEWIRE_FILTER_H
26 #define PIPEWIRE_FILTER_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
46 struct pw_filter;
47 
48 #include <spa/buffer/buffer.h>
49 #include <spa/node/io.h>
50 #include <spa/param/param.h>
51 
52 #include <pipewire/core.h>
53 #include <pipewire/stream.h>
54 
62 };
63 
64 #if 0
65 struct pw_buffer {
66  struct spa_buffer *buffer;
67  void *user_data;
68  uint64_t size;
73 };
74 #endif
75 
79 #define PW_VERSION_FILTER_EVENTS 0
80  uint32_t version;
81 
82  void (*destroy) (void *data);
84  void (*state_changed) (void *data, enum pw_filter_state old,
85  enum pw_filter_state state, const char *error);
86 
88  void (*io_changed) (void *data, void *port_data,
89  uint32_t id, void *area, uint32_t size);
91  void (*param_changed) (void *data, void *port_data,
92  uint32_t id, const struct spa_pod *param);
93 
95  void (*add_buffer) (void *data, void *port_data, struct pw_buffer *buffer);
97  void (*remove_buffer) (void *data, void *port_data, struct pw_buffer *buffer);
98 
102  void (*process) (void *data, struct spa_io_position *position);
103 
105  void (*drained) (void *data);
106 };
107 
110 
114  PW_FILTER_FLAG_INACTIVE = (1 << 0),
118  PW_FILTER_FLAG_RT_PROCESS = (1 << 2),
120  PW_FILTER_FLAG_CUSTOM_LATENCY = (1 << 3),
123 };
124 
131 };
132 
135 struct pw_filter *
136 pw_filter_new(struct pw_core *core,
137  const char *name,
138  struct pw_properties *props );
139 
140 struct pw_filter *
141 pw_filter_new_simple(struct pw_loop *loop,
142  const char *name,
143  struct pw_properties *props,
144  const struct pw_filter_events *events,
145  void *data );
146 
148 void pw_filter_destroy(struct pw_filter *filter);
149 
150 void pw_filter_add_listener(struct pw_filter *filter,
151  struct spa_hook *listener,
152  const struct pw_filter_events *events,
153  void *data);
154 
155 enum pw_filter_state pw_filter_get_state(struct pw_filter *filter, const char **error);
156 
157 const char *pw_filter_get_name(struct pw_filter *filter);
158 
159 struct pw_core *pw_filter_get_core(struct pw_filter *filter);
160 
166 int
167 pw_filter_connect(struct pw_filter *filter,
168  enum pw_filter_flags flags,
169  const struct spa_pod **params,
170  uint32_t n_params );
171 
174 uint32_t
175 pw_filter_get_node_id(struct pw_filter *filter);
176 
178 int pw_filter_disconnect(struct pw_filter *filter);
179 
181 void *pw_filter_add_port(struct pw_filter *filter,
182  enum pw_direction direction,
183  enum pw_filter_port_flags flags,
184  size_t port_data_size,
185  struct pw_properties *props,
186  const struct spa_pod **params,
188  uint32_t n_params );
189 
191 int pw_filter_remove_port(void *port_data );
192 
194 const struct pw_properties *pw_filter_get_properties(struct pw_filter *filter,
195  void *port_data);
196 
198 int pw_filter_update_properties(struct pw_filter *filter,
199  void *port_data, const struct spa_dict *dict);
200 
202 int pw_filter_set_error(struct pw_filter *filter,
203  int res,
204  const char *error,
205  ...
206  ) SPA_PRINTF_FUNC(3, 4);
207 
209 int
210 pw_filter_update_params(struct pw_filter *filter,
211  void *port_data,
212  const struct spa_pod **params,
213  uint32_t n_params );
214 
215 
216 #if 0
217 
218 struct pw_time {
219  int64_t now;
220  struct spa_fraction rate;
221  uint64_t ticks;
223 };
224 #endif
225 
227 int pw_filter_get_time(struct pw_filter *filter, struct pw_time *time);
228 
231 struct pw_buffer *pw_filter_dequeue_buffer(void *port_data);
232 
234 int pw_filter_queue_buffer(void *port_data, struct pw_buffer *buffer);
235 
237 void *pw_filter_get_dsp_buffer(void *port_data, uint32_t n_samples);
238 
240 int pw_filter_set_active(struct pw_filter *filter, bool active);
241 
244 int pw_filter_flush(struct pw_filter *filter, bool drain);
245 
250 #ifdef __cplusplus
251 }
252 #endif
253 
254 #endif /* PIPEWIRE_FILTER_H */
pw_map_range
parameters to map a memory range
Definition: src/pipewire/mem.h:185
IDX_Buffers
#define IDX_Buffers
Definition: filter.c:107
SPA_MEDIA_SUBTYPE_dsp
@ SPA_MEDIA_SUBTYPE_dsp
Definition: param/format.h:54
pw_filter_get_time
int pw_filter_get_time(struct pw_filter *filter, struct pw_time *time)
Query the time on the filter
Definition: filter.c:1776
pw_filter_set_active
int pw_filter_set_active(struct pw_filter *filter, bool active)
Activate or deactivate the filter
Definition: filter.c:1769
pw_buffer::user_data
void * user_data
user data attached to the buffer
Definition: stream.h:177
PW_KEY_FORMAT_DSP
#define PW_KEY_FORMAT_DSP
format related properties
Definition: src/pipewire/keys.h:302
filter::rt
struct filter::@1 rt
pw_filter_disconnect
int pw_filter_disconnect(struct pw_filter *filter)
Disconnect filter
Definition: filter.c:1542
SPA_VIDEO_FORMAT_DSP_F32
@ SPA_VIDEO_FORMAT_DSP_F32
Definition: video/raw.h:141
pw_properties_get
int int const char * pw_properties_get(const struct pw_properties *properties, const char *key)
Get a property.
Definition: properties.c:487
spa_data::maxsize
uint32_t maxsize
max size of data
Definition: buffer/buffer.h:87
pw_filter_set_error
int pw_filter_set_error(struct pw_filter *filter, int res, const char *error,...)
Definition: filter.c:1719
IDX_EnumFormat
#define IDX_EnumFormat
Definition: filter.c:103
filter::context
struct pw_context * context
Definition: filter.c:131
pw_filter_get_name
const char * pw_filter_get_name(struct pw_filter *filter)
Definition: filter.c:1406
spa_hook_list_join
void spa_hook_list_join(struct spa_hook_list *list, struct spa_hook_list *save)
Definition: hook.h:366
spa_io_buffers::status
int32_t status
the status code
Definition: io.h:99
filter::base_pos
uint64_t base_pos
Definition: filter.c:160
filter::clock_id
uint32_t clock_id
Definition: filter.c:161
spa_direction
spa_direction
Definition: defs.h:78
SPA_FLAG_CLEAR
#define SPA_FLAG_CLEAR(field, flag)
Definition: defs.h:75
pw_proxy_error
int pw_proxy_error(struct pw_proxy *proxy, int res, const char *error)
Generate an error for a proxy.
Definition: proxy.c:338
SPA_FORMAT_mediaType
@ SPA_FORMAT_mediaType
media type (Id enum spa_media_type)
Definition: param/format.h:102
spa_node_call_ready
#define spa_node_call_ready(hook,...)
Definition: build-12775836/doc/spa/node/utils.h:145
spa_node_callbacks
Node callbacks.
Definition: build-12775836/doc/spa/node/node.h:207
SPA_TYPE_OBJECT_ParamBuffers
@ SPA_TYPE_OBJECT_ParamBuffers
Definition: build-12775836/doc/spa/utils/type.h:91
spa_latency_info::direction
enum spa_direction direction
Definition: latency-utils.h:38
spa_return_val_if_fail
#define spa_return_val_if_fail(expr, val)
Definition: defs.h:251
pw_filter_flags
pw_filter_flags
Extra flags that can be used in pw_filter_connect()
Definition: src/pipewire/filter.h:112
filter::this
struct pw_filter this
Definition: filter.c:127
ringbuffer.h
SPA_PARAM_BUFFERS_blocks
@ SPA_PARAM_BUFFERS_blocks
number of data blocks per buffer (Int)
Definition: param.h:83
SPA_PORT_CHANGE_MASK_PARAMS
#define SPA_PORT_CHANGE_MASK_PARAMS
Definition: build-12775836/doc/spa/node/node.h:98
spa_node_info
Node information structure.
Definition: build-12775836/doc/spa/node/node.h:60
SPA_PARAM_INFO_WRITE
#define SPA_PARAM_INFO_WRITE
Definition: param.h:69
pw_filter_queue_buffer
int pw_filter_queue_buffer(void *port_data, struct pw_buffer *buffer)
Submit a buffer for playback or recycle a buffer for capture.
Definition: filter.c:1833
SPA_IO_Position
@ SPA_IO_Position
position information in the graph, struct spa_io_position
Definition: io.h:59
spa_pod_int
Definition: pod/pod.h:69
spa_latency_info_combine
int spa_latency_info_combine(struct spa_latency_info *info, const struct spa_latency_info *other)
Definition: latency-utils.h:63
SPA_PARAM_IO_size
@ SPA_PARAM_IO_size
size of the io area (Int)
Definition: param.h:101
SPA_POD_Int
#define SPA_POD_Int(val)
Definition: vararg.h:59
SPA_STATUS_NEED_DATA
#define SPA_STATUS_NEED_DATA
Definition: io.h:95
pw_properties_update
int pw_properties_update(struct pw_properties *props, const struct spa_dict *dict)
Update properties.
Definition: properties.c:298
spa_zero
#define spa_zero(x)
Definition: defs.h:303
MASK_BUFFERS
#define MASK_BUFFERS
Definition: filter.c:51
port::params
struct spa_param_info params[N_PORT_PARAMS]
Definition: filter.c:110
SPA_TYPE_OBJECT_Format
@ SPA_TYPE_OBJECT_Format
Definition: build-12775836/doc/spa/utils/type.h:90
port::info
struct spa_port_info info
Definition: filter.c:101
SPA_PORT_CHANGE_MASK_PROPS
#define SPA_PORT_CHANGE_MASK_PROPS
Definition: build-12775836/doc/spa/node/node.h:97
SPA_PARAM_BUFFERS_dataType
@ SPA_PARAM_BUFFERS_dataType
possible memory types (Int, mask of enum spa_data_type)
Definition: param.h:87
pw_filter_add_port
void * pw_filter_add_port(struct pw_filter *filter, enum pw_direction direction, enum pw_filter_port_flags flags, size_t port_data_size, struct pw_properties *props, const struct spa_pod **params, uint32_t n_params)
add a port to the filter, returns user data of port_data_size.
Definition: filter.c:1632
pw_context_new
struct pw_context * pw_context_new(struct pw_loop *main_loop, struct pw_properties *props, size_t user_data_size)
Make a new context object for a given main_loop.
Definition: context.c:249
port::props
struct pw_properties * props
Definition: filter.c:98
types.h
port::dequeued
struct queue dequeued
Definition: filter.c:117
IDX_Meta
#define IDX_Meta
Definition: filter.c:104
spa_buffer::n_datas
uint32_t n_datas
number of data members
Definition: buffer/buffer.h:95
pw_buffer
Definition: stream.h:175
pw_filter_events::state_changed
void(* state_changed)(void *data, enum pw_filter_state old, enum pw_filter_state state, const char *error)
when the filter state changes
Definition: src/pipewire/filter.h:84
BUFFER_FLAG_MAPPED
#define BUFFER_FLAG_MAPPED
Definition: filter.c:62
spa_latency_info
Definition: latency-utils.h:37
SPA_DICT_ITEM_INIT
#define SPA_DICT_ITEM_INIT(key, value)
Definition: utils/dict.h:46
SPA_PARAM_ProcessLatency
@ SPA_PARAM_ProcessLatency
processing latency, a SPA_TYPE_OBJECT_ParamProcessLatency
Definition: param.h:60
name
const char * name
Definition: media-session.c:2379
filter::flags
enum pw_filter_flags flags
Definition: filter.c:133
string.h
spa_latency_parse
int spa_latency_parse(const struct spa_pod *latency, struct spa_latency_info *info)
Definition: latency-utils.h:83
filter::callbacks
struct spa_callbacks callbacks
Definition: filter.c:137
spa_port_info::n_params
uint32_t n_params
number of items in params
Definition: build-12775836/doc/spa/node/node.h:123
SPA_POD_VALUE
#define SPA_POD_VALUE(type, pod)
Definition: pod/pod.h:55
IDX_ProcessLatency
#define IDX_ProcessLatency
Definition: filter.c:151
SPA_PARAM_Latency
@ SPA_PARAM_Latency
latency reporting, a SPA_TYPE_OBJECT_ParamLatency
Definition: param.h:59
data
user data to add to an object
Definition: filter.c:75
SPA_PARAM_BUFFERS_buffers
@ SPA_PARAM_BUFFERS_buffers
number of buffers (Int)
Definition: param.h:82
impl::data
uint8_t data[MAX_BUFFER]
Definition: module-profiler.c:87
SPA_DICT_INIT_ARRAY
#define SPA_DICT_INIT_ARRAY(items)
Definition: utils/dict.h:56
spa_streq
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
spa_pod_prop
Definition: pod/pod.h:199
spa_list_for_each
#define spa_list_for_each(pos, head, member)
Definition: list.h:111
pw_filter_new
struct pw_filter * pw_filter_new(struct pw_core *core, const char *name, struct pw_properties *props)
Create a new unconneced PipeWire Filter.
Definition: filter.c:1245
impl::param_list
struct spa_list param_list
Definition: impl-device.c:40
port::io
struct spa_io_buffers * io
Definition: filter.c:112
PW_FILTER_PORT_FLAG_NONE
@ PW_FILTER_PORT_FLAG_NONE
no flags
Definition: src/pipewire/filter.h:126
PW_FILTER_STATE_ERROR
@ PW_FILTER_STATE_ERROR
the stream is in error
Definition: src/pipewire/filter.h:57
pw_loop
Definition: src/pipewire/loop.h:47
spa_chunk::stride
int32_t stride
stride of valid data
Definition: buffer/buffer.h:63
SPA_EXPORT
#define SPA_EXPORT
Definition: defs.h:208
SPA_DIRECTION_INPUT
@ SPA_DIRECTION_INPUT
Definition: defs.h:79
data::filter_listener
struct spa_hook filter_listener
Definition: filter.c:77
SPA_LOG_LEVEL_WARN
@ SPA_LOG_LEVEL_WARN
Definition: build-12775836/doc/spa/support/log.h:49
pw_filter_events::drained
void(* drained)(void *data)
The filter is drained.
Definition: src/pipewire/filter.h:105
impl::seq
int seq
Definition: policy-ep.c:65
IDX_Latency
#define IDX_Latency
Definition: filter.c:108
pw_log_trace
#define pw_log_trace(...)
Definition: src/pipewire/log.h:90
pw_time
A time structure.
Definition: stream.h:194
pw_filter_update_params
int pw_filter_update_params(struct pw_filter *filter, void *port_data, const struct spa_pod **params, uint32_t n_params)
Update params, use NULL port_data for global filter params.
Definition: filter.c:1743
spa_fraction
Definition: defs.h:104
impl
Definition: control.c:33
spa_io_position
The position information adds extra meaning to the raw clock times.
Definition: io.h:271
MAX_PORTS
#define MAX_PORTS
Definition: filter.c:52
SPA_POD_CHOICE_STEP_Int
#define SPA_POD_CHOICE_STEP_Int(def, min, max, step)
Definition: vararg.h:62
pw_proxy_destroy
void pw_proxy_destroy(struct pw_proxy *proxy)
destroy a proxy
Definition: proxy.c:229
SPA_PARAM_INFO_READ
#define SPA_PARAM_INFO_READ
Definition: param.h:68
PW_KEY_MEDIA_NAME
#define PW_KEY_MEDIA_NAME
media name.
Definition: src/pipewire/keys.h:286
pw_filter_port_flags
pw_filter_port_flags
Definition: src/pipewire/filter.h:125
pw_proxy_events
Proxy events, use pw_proxy_add_listener.
Definition: proxy.h:111
spa_hook_list_append
void spa_hook_list_append(struct spa_hook_list *list, struct spa_hook *hook, const void *funcs, void *data)
Append a hook.
Definition: hook.h:316
spa_list
Definition: list.h:37
SPA_PARAM_IO_id
@ SPA_PARAM_IO_id
type ID, uniquely identifies the io area (Id enum spa_io_type)
Definition: param.h:100
SPA_MEDIA_TYPE_audio
@ SPA_MEDIA_TYPE_audio
Definition: param/format.h:42
spa_pod_get_int
int spa_pod_get_int(const struct spa_pod *pod, int32_t *value)
Definition: iter.h:182
queue::ids
uint32_t ids[MAX_BUFFERS]
Definition: filter.c:69
SPA_PTROFF
#define SPA_PTROFF(ptr_, offset_, type_)
Return the address (buffer + offset) as pointer of type.
Definition: defs.h:159
param::id
uint32_t id
Definition: filter.c:81
SPA_POD_OBJECT_ID
#define SPA_POD_OBJECT_ID(obj)
Definition: pod/pod.h:167
pw_time::delay
int64_t delay
delay to device, add to ticks to get the time of the device.
Definition: stream.h:199
pw_filter_remove_port
int pw_filter_remove_port(void *port_data)
remove a port from the filter
Definition: filter.c:1700
pw_filter_events::remove_buffer
void(* remove_buffer)(void *data, void *port_data, struct pw_buffer *buffer)
when a buffer was destroyed for a port
Definition: src/pipewire/filter.h:97
SPA_PRINTF_FUNC
#define SPA_PRINTF_FUNC(fmt, arg1)
Definition: defs.h:205
pw_filter_dequeue_buffer
struct pw_buffer * pw_filter_dequeue_buffer(void *port_data)
Get a buffer that can be filled for output ports or consumed for input ports.
Definition: filter.c:1814
filter::port_list
struct spa_list port_list
Definition: filter.c:144
spa_ringbuffer
A ringbuffer type.
Definition: ringbuffer.h:46
props
const char * props
Definition: media-session.c:2382
SPA_INTERFACE_INIT
#define SPA_INTERFACE_INIT(_type, _version, _funcs, _data)
Initialize a spa_interface.
Definition: hook.h:165
impl::info
struct spa_audio_info_raw info
Definition: module-echo-cancel.c:145
SPA_PARAM_Props
@ SPA_PARAM_Props
properties as SPA_TYPE_OBJECT_Props
Definition: param.h:46
filter::seq
uintptr_t seq
Definition: filter.c:158
pod.h
SPA_LATENCY_INFO
#define SPA_LATENCY_INFO(dir,...)
Definition: latency-utils.h:47
spa_loop
Definition: build-12775836/doc/spa/support/loop.h:44
pw_properties::dict
struct spa_dict dict
dictionary of key/values
Definition: properties.h:50
filter::allow_mlock
unsigned int allow_mlock
Definition: filter.c:169
port::latency
struct spa_latency_info latency[2]
Definition: filter.c:120
impl::rate
uint32_t rate
Definition: module-filter-chain.c:246
SPA_VERSION_NODE
#define SPA_VERSION_NODE
Definition: build-12775836/doc/spa/node/node.h:52
spa_dict_item
Definition: utils/dict.h:41
pw_filter_events::destroy
void(* destroy)(void *data)
Definition: src/pipewire/filter.h:82
spa_pod_filter
int spa_pod_filter(struct spa_pod_builder *b, struct spa_pod **result, const struct spa_pod *pod, const struct spa_pod *filter)
Definition: build-12775836/doc/spa/pod/filter.h:387
SPA_CONTAINER_OF
#define SPA_CONTAINER_OF(p, t, m)
Definition: defs.h:170
pw_time::ticks
uint64_t ticks
the ticks at now.
Definition: stream.h:197
SPA_NODE_FLAG_RT
#define SPA_NODE_FLAG_RT
node can do real-time processing
Definition: build-12775836/doc/spa/node/node.h:68
pw_context_connect
struct pw_core * pw_context_connect(struct pw_context *context, struct pw_properties *properties, size_t user_data_size)
Connect to a PipeWire instance.
Definition: core.c:401
SPA_PARAM_INFO
#define SPA_PARAM_INFO(id, flags)
Definition: param.h:77
SPA_PARAM_Format
@ SPA_PARAM_Format
configured format as SPA_TYPE_OBJECT_Format
Definition: param.h:48
spa_param_info::flags
uint32_t flags
Definition: param.h:71
spa_list_consume
#define spa_list_consume(pos, head, member)
Definition: list.h:96
SPA_TYPE_INTERFACE_Node
#define SPA_TYPE_INTERFACE_Node
Definition: build-12775836/doc/spa/node/node.h:50
spa_hook_list_isolate
void spa_hook_list_isolate(struct spa_hook_list *list, struct spa_hook_list *save, struct spa_hook *hook, const void *funcs, void *data)
Definition: hook.h:352
SPA_AUDIO_FORMAT_DSP_F32
@ SPA_AUDIO_FORMAT_DSP_F32
Definition: audio/raw.h:100
port::link
struct spa_list link
Definition: filter.c:89
param::param
struct spa_pod * param
Definition: filter.c:85
spa_process_latency_info
Definition: latency-utils.h:115
spa_process_latency_parse
int spa_process_latency_parse(const struct spa_pod *latency, struct spa_process_latency_info *info)
Definition: latency-utils.h:124
spa_io_buffers
IO area to exchange buffers.
Definition: io.h:93
port::port
struct pw_port * port
Definition: filter.c:96
pw_filter_events::process
void(* process)(void *data, struct spa_io_position *position)
do processing.
Definition: src/pipewire/filter.h:102
spa_pod
Definition: pod/pod.h:50
filter::impl_node
struct spa_node impl_node
Definition: filter.c:135
PW_VERSION_PROXY_EVENTS
#define PW_VERSION_PROXY_EVENTS
Definition: proxy.h:112
SPA_IO_Buffers
@ SPA_IO_Buffers
area to exchange buffers, struct spa_io_buffers
Definition: io.h:53
queue
Definition: filter.c:68
SPA_VERSION_NODE_METHODS
#define SPA_VERSION_NODE_METHODS
Definition: build-12775836/doc/spa/node/node.h:284
spa_chunk::offset
uint32_t offset
offset of valid data.
Definition: buffer/buffer.h:58
SPA_PARAM_BUFFERS_size
@ SPA_PARAM_BUFFERS_size
size of a data block memory (Int)
Definition: param.h:84
SPA_PARAM_INFO_SERIAL
#define SPA_PARAM_INFO_SERIAL
bit to signal update even when the read/write flags don't change
Definition: param.h:66
SPA_MEDIA_TYPE_application
@ SPA_MEDIA_TYPE_application
Definition: param/format.h:47
PARAM_FLAG_LOCKED
#define PARAM_FLAG_LOCKED
Definition: filter.c:82
filter::change_mask_all
uint32_t change_mask_all
Definition: filter.c:147
spa_io_clock::id
uint32_t id
unique clock id, set by application
Definition: io.h:135
pw_filter_set_error
int pw_filter_set_error(struct pw_filter *filter, int res, const char *error,...) 1(3
Set the filter in error state.
N_NODE_PARAMS
#define N_NODE_PARAMS
Definition: filter.c:152
pw_buffer::size
uint64_t size
This field is set by the user and the sum of all queued buffer is returned in the time info.
Definition: stream.h:178
spa_node_methods
Node methods.
Definition: build-12775836/doc/spa/node/node.h:281
spa_ringbuffer_get_read_index
int32_t spa_ringbuffer_get_read_index(struct spa_ringbuffer *rbuf, uint32_t *index)
Get the read index and available bytes for reading.
Definition: ringbuffer.h:85
utils.h
SPA_NODE_INFO_INIT
#define SPA_NODE_INFO_INIT()
Definition: build-12775836/doc/spa/node/node.h:87
spa_ringbuffer_get_write_index
int32_t spa_ringbuffer_get_write_index(struct spa_ringbuffer *rbuf, uint32_t *index)
Get the write index and the number of bytes inside the ringbuffer.
Definition: ringbuffer.h:135
spa_list_remove
void spa_list_remove(struct spa_list *elem)
Definition: list.h:69
buffer.h
PW_FILTER_STATE_PAUSED
@ PW_FILTER_STATE_PAUSED
filter is connected and paused
Definition: src/pipewire/filter.h:60
impl::now
struct timespec now
Definition: default-profile.c:87
PW_FILTER_FLAG_RT_PROCESS
@ PW_FILTER_FLAG_RT_PROCESS
call process from the realtime thread
Definition: src/pipewire/filter.h:118
port
Definition: buffers.c:44
filter::data
struct data data
Definition: filter.c:157
SPA_FLAG_SET
#define SPA_FLAG_SET(field, flag)
Definition: defs.h:74
IDX_Props
#define IDX_Props
Definition: filter.c:150
spa_node_emit_result
#define spa_node_emit_result(hooks,...)
Definition: build-12775836/doc/spa/node/utils.h:133
PW_FILTER_STATE_UNCONNECTED
@ PW_FILTER_STATE_UNCONNECTED
unconnected
Definition: src/pipewire/filter.h:58
SPA_NODE_COMMAND_ID
#define SPA_NODE_COMMAND_ID(cmd)
Definition: node/command.h:59
PW_FILTER_FLAG_INACTIVE
@ PW_FILTER_FLAG_INACTIVE
start the filter inactive, pw_filter_set_active() needs to be called explicitly
Definition: src/pipewire/filter.h:114
SPA_STATUS_HAVE_DATA
#define SPA_STATUS_HAVE_DATA
Definition: io.h:96
spa_buffer
A Buffer.
Definition: buffer/buffer.h:93
filter::params
struct spa_param_info params[N_NODE_PARAMS]
Definition: filter.c:153
SPA_PORT_INFO_INIT
#define SPA_PORT_INFO_INIT()
Definition: build-12775836/doc/spa/node/node.h:126
SPA_TYPE_OBJECT_ParamIO
@ SPA_TYPE_OBJECT_ParamIO
Definition: build-12775836/doc/spa/utils/type.h:93
spa_latency_build
struct spa_pod * spa_latency_build(struct spa_pod_builder *builder, uint32_t id, const struct spa_latency_info *info)
Definition: latency-utils.h:102
pw_time::now
int64_t now
the monotonic time in nanoseconds
Definition: stream.h:195
PW_FILTER_PORT_FLAG_ALLOC_BUFFERS
@ PW_FILTER_PORT_FLAG_ALLOC_BUFFERS
the application will allocate buffer memory.
Definition: src/pipewire/filter.h:128
pw_core_export
struct pw_proxy * pw_core_export(struct pw_core *core, const char *type, const struct spa_dict *props, void *object, size_t user_data_size)
Export an object into the PipeWire instance associated with core.
Definition: core.c:274
filter
Definition: filter.c:126
PW_KEY_NODE_NAME
#define PW_KEY_NODE_NAME
node name
Definition: src/pipewire/keys.h:138
spa_node
Definition: build-12775836/doc/spa/node/node.h:53
spa_hook
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
spa_callbacks
Callbacks, contains the structure with functions and the data passed to the functions.
Definition: hook.h:130
SPA_NODE_COMMAND_Suspend
@ SPA_NODE_COMMAND_Suspend
suspend a node, this removes all configured formats and closes any devices
Definition: node/command.h:41
PW_KEY_APP_PROCESS_BINARY
#define PW_KEY_APP_PROCESS_BINARY
binary name
Definition: src/pipewire/keys.h:119
filter::process_latency
struct spa_process_latency_info process_latency
Definition: filter.c:155
BUFFER_FLAG_ADDED
#define BUFFER_FLAG_ADDED
Definition: filter.c:64
PW_KEY_NODE_LATENCY
#define PW_KEY_NODE_LATENCY
the requested latency of the node as a fraction.
Definition: src/pipewire/keys.h:154
PW_KEY_APP_NAME
#define PW_KEY_APP_NAME
application keys
Definition: src/pipewire/keys.h:108
pw_filter_connect
int pw_filter_connect(struct pw_filter *filter, enum pw_filter_flags flags, const struct spa_pod **params, uint32_t n_params)
Connect a filter for processing.
Definition: filter.c:1451
spa_data::type
uint32_t type
memory type, one of enum spa_data_type, when allocating memory, the type contains a bitmask of allowe...
Definition: buffer/buffer.h:71
PW_FILTER_PORT_FLAG_MAP_BUFFERS
@ PW_FILTER_PORT_FLAG_MAP_BUFFERS
mmap the buffers except DmaBuf
Definition: src/pipewire/filter.h:127
filter.h
spa_result_node_params
the result of enum_params or port_enum_params.
Definition: build-12775836/doc/spa/node/node.h:137
pw_filter_new_simple
struct pw_filter * pw_filter_new_simple(struct pw_loop *loop, const char *name, struct pw_properties *props, const struct pw_filter_events *events, void *data)
Definition: filter.c:1267
spa_io_clock::position
uint64_t position
current position
Definition: io.h:141
spa_pod_get_values
struct spa_pod * spa_pod_get_values(const struct spa_pod *pod, uint32_t *n_vals, uint32_t *choice)
Definition: iter.h:362
spa_hook::removed
void(* removed)(struct spa_hook *hook)
callback and data for the hook list, private to the hook_list implementor
Definition: hook.h:300
spa_node_info::n_params
uint32_t n_params
number of items in params
Definition: build-12775836/doc/spa/node/node.h:84
PW_FILTER_STATE_STREAMING
@ PW_FILTER_STATE_STREAMING
filter is streaming
Definition: src/pipewire/filter.h:61
NAME
#define NAME
Definition: filter.c:46
pw_filter_get_core
struct pw_core * pw_filter_get_core(struct pw_filter *filter)
Definition: filter.c:1400
param.h
stream.h
SPA_RESULT_TYPE_NODE_PARAMS
#define SPA_RESULT_TYPE_NODE_PARAMS
Definition: build-12775836/doc/spa/node/node.h:129
SPA_MEDIA_TYPE_video
@ SPA_MEDIA_TYPE_video
Definition: param/format.h:43
SPA_PORT_CHANGE_MASK_FLAGS
#define SPA_PORT_CHANGE_MASK_FLAGS
Definition: build-12775836/doc/spa/node/node.h:95
start
int(* start)(struct sm_media_session *sess)
Definition: media-session.c:2381
pw_filter_state_as_string
const char * pw_filter_state_as_string(enum pw_filter_state state)
Convert a filter state to a readable string
Definition: filter.c:1312
spa_audio_info_raw::flags
uint32_t flags
Definition: audio/raw.h:287
pw_core_disconnect
int pw_core_disconnect(struct pw_core *core)
disconnect and destroy a core
Definition: core.c:488
format.h
pw_filter_events::version
uint32_t version
Definition: src/pipewire/filter.h:80
spa_port_info::change_mask
uint64_t change_mask
Definition: build-12775836/doc/spa/node/node.h:99
spa_io_position::state
uint32_t state
one of enum spa_io_position_state
Definition: io.h:280
SPA_NODE_COMMAND_Pause
@ SPA_NODE_COMMAND_Pause
pause a node.
Definition: node/command.h:43
PW_FILTER_FLAG_DRIVER
@ PW_FILTER_FLAG_DRIVER
be a driver
Definition: src/pipewire/filter.h:117
SPA_LOG_LEVEL_DEBUG
@ SPA_LOG_LEVEL_DEBUG
Definition: build-12775836/doc/spa/support/log.h:51
SPA_FLAG_IS_SET
#define SPA_FLAG_IS_SET(field, flag)
Definition: defs.h:73
buffer
Definition: filter.c:59
spa_node_emit_port_info
#define spa_node_emit_port_info(hooks,...)
Definition: build-12775836/doc/spa/node/utils.h:132
filter::hooks
struct spa_hook_list hooks
Definition: filter.c:136
spa_param_info
information about a parameter
Definition: param.h:64
PW_FILTER_STATE_CONNECTING
@ PW_FILTER_STATE_CONNECTING
connection is in progress
Definition: src/pipewire/filter.h:59
spa_list_init
void spa_list_init(struct spa_list *list)
Definition: list.h:44
SPA_FORMAT_mediaSubtype
@ SPA_FORMAT_mediaSubtype
media subtype (Id enum spa_media_subtype)
Definition: param/format.h:103
spa_list_for_each_safe
#define spa_list_for_each_safe(pos, tmp, head, member)
Definition: list.h:129
spa_pod_builder_init
void spa_pod_builder_init(struct spa_pod_builder *builder, void *data, uint32_t size)
Definition: builder.h:96
spa_data::chunk
struct spa_chunk * chunk
valid chunk of memory
Definition: buffer/buffer.h:89
spa_dict
Definition: utils/dict.h:48
impl::hooks
struct spa_hook_list hooks
Definition: media-session.c:155
spa_port_info
Port information structure.
Definition: build-12775836/doc/spa/node/node.h:94
pw_filter_state
pw_filter_state
The state of a filter
Definition: src/pipewire/filter.h:56
SPA_DIRECTION_OUTPUT
@ SPA_DIRECTION_OUTPUT
Definition: defs.h:80
SPA_NODE_CHANGE_MASK_PARAMS
#define SPA_NODE_CHANGE_MASK_PARAMS
Definition: build-12775836/doc/spa/node/node.h:65
alloc.h
filter::path
const char * path
Definition: filter.c:129
port::change_mask_all
uint32_t change_mask_all
Definition: filter.c:100
port::port_id
uint32_t port_id
Definition: buffers.c:47
data::size
size_t size
Definition: media-session.c:112
SPA_PARAM_EnumFormat
@ SPA_PARAM_EnumFormat
available formats as SPA_TYPE_OBJECT_Format
Definition: param.h:47
port::flags
uint32_t flags
Definition: filter.c:95
spa_io_position::clock
struct spa_io_clock clock
clock position of driver, always valid and read only
Definition: io.h:272
pw_filter_flush
int pw_filter_flush(struct pw_filter *filter, bool drain)
Flush a filter.
Definition: filter.c:1903
pw_filter_update_properties
int pw_filter_update_properties(struct pw_filter *filter, void *port_data, const struct spa_dict *dict)
Update properties, use NULL port_data for global filter properties.
Definition: filter.c:1425
MAX_SAMPLES
#define MAX_SAMPLES
Definition: filter.c:48
PW_VERSION_CORE_EVENTS
#define PW_VERSION_CORE_EVENTS
Definition: core.h:115
spa_chunk::flags
int32_t flags
chunk flags
Definition: buffer/buffer.h:66
spa_strerror
#define spa_strerror(err)
Definition: result.h:51
pw_filter_add_listener
void pw_filter_add_listener(struct pw_filter *filter, struct spa_hook *listener, const struct pw_filter_events *events, void *data)
Definition: filter.c:1377
spa_fraction::denom
uint32_t denom
Definition: defs.h:106
PW_ID_CORE
#define PW_ID_CORE
default ID for the core object after connect
Definition: core.h:66
SPA_NODE_COMMAND_Start
@ SPA_NODE_COMMAND_Start
start a node, this makes it start emitting scheduling events
Definition: node/command.h:45
SPA_PARAM_Meta
@ SPA_PARAM_Meta
allowed metadata for buffers as SPA_TYPE_OBJECT_ParamMeta
Definition: param.h:50
spa_pod_find_prop
const struct spa_pod_prop * spa_pod_find_prop(const struct spa_pod *pod, const struct spa_pod_prop *start, uint32_t key)
Definition: iter.h:423
SPA_FORMAT_VIDEO_format
@ SPA_FORMAT_VIDEO_format
video format (Id enum spa_video_format)
Definition: param/format.h:115
filter::draining
unsigned int draining
Definition: filter.c:168
N_PORT_PARAMS
#define N_PORT_PARAMS
Definition: filter.c:109
SPA_POD_CHOICE_RANGE_Int
#define SPA_POD_CHOICE_RANGE_Int(def, min, max)
Definition: vararg.h:61
param
Definition: filter.c:80
pw_log_debug
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
pw_context_destroy
void pw_context_destroy(struct pw_context *context)
destroy a context object, all resources except the main_loop will be destroyed
Definition: context.c:464
PW_FILTER_FLAG_NONE
@ PW_FILTER_FLAG_NONE
no flags
Definition: src/pipewire/filter.h:113
spa_type_io
const struct spa_type_info spa_type_io[]
Definition: node/type-info.h:46
pw_filter_events::io_changed
void(* io_changed)(void *data, void *port_data, uint32_t id, void *area, uint32_t size)
when io changed on a port of the filter (when port_data is NULL).
Definition: src/pipewire/filter.h:88
PW_FILTER_FLAG_CUSTOM_LATENCY
@ PW_FILTER_FLAG_CUSTOM_LATENCY
don't call the default latency algorithm but emit the param_changed event for the ports when Latency ...
Definition: src/pipewire/filter.h:120
pw_log
#define pw_log(lev,...)
Definition: src/pipewire/log.h:80
port::user_data
uint8_t user_data[0]
Definition: filter.c:123
pw_filter_events::add_buffer
void(* add_buffer)(void *data, void *port_data, struct pw_buffer *buffer)
when a new buffer was created for a port
Definition: src/pipewire/filter.h:95
SPA_ID_INVALID
#define SPA_ID_INVALID
Definition: defs.h:182
impl::context
struct pw_context * context
Definition: settings.c:43
spa_param_info::user
uint32_t user
private user field.
Definition: param.h:72
pw_properties_update_string
int pw_properties_update_string(struct pw_properties *props, const char *str, size_t size)
Update the properties from the given string, overwriting any existing keys with the new values from s...
Definition: properties.c:154
pw_properties_set
int pw_properties_set(struct pw_properties *properties, const char *key, const char *value)
Set a property value.
Definition: properties.c:435
param::flags
uint32_t flags
Definition: filter.c:83
SPA_MEDIA_SUBTYPE_control
@ SPA_MEDIA_SUBTYPE_control
control stream, data contains spa_pod_sequence with control info.
Definition: param/format.h:94
SPA_PARAM_IO
@ SPA_PARAM_IO
configurable IO areas as SPA_TYPE_OBJECT_ParamIO
Definition: param.h:51
spa_hook_list
A list of hooks.
Definition: hook.h:284
SPA_NODE_CHANGE_MASK_PROPS
#define SPA_NODE_CHANGE_MASK_PROPS
Definition: build-12775836/doc/spa/node/node.h:64
spa_chunk::size
uint32_t size
size of valid data.
Definition: buffer/buffer.h:61
BUFFER_FLAG_QUEUED
#define BUFFER_FLAG_QUEUED
Definition: filter.c:63
SPA_DATA_MemFd
@ SPA_DATA_MemFd
generic fd, mmap to get to memory
Definition: buffer/buffer.h:49
pw_filter_destroy
void pw_filter_destroy(struct pw_filter *filter)
Destroy a filter
Definition: filter.c:1330
PW_KEY_OBJECT_REGISTER
#define PW_KEY_OBJECT_REGISTER
If the object should be registered.
Definition: src/pipewire/keys.h:69
spa_ringbuffer_write_update
void spa_ringbuffer_write_update(struct spa_ringbuffer *rbuf, int32_t index)
Update the write pointer to index.
Definition: ringbuffer.h:169
pw_filter_events
Events for a filter.
Definition: src/pipewire/filter.h:78
buffer::id
uint32_t id
Definition: filter.c:61
spa_ringbuffer_read_update
void spa_ringbuffer_read_update(struct spa_ringbuffer *rbuf, int32_t index)
Update the read pointer to index.
Definition: ringbuffer.h:119
filter::info
struct spa_node_info info
Definition: filter.c:148
filter::warn_mlock
unsigned int warn_mlock
Definition: filter.c:170
io.h
SPA_DATA_MemPtr
@ SPA_DATA_MemPtr
pointer to memory, the data field in struct spa_data is set.
Definition: buffer/buffer.h:47
SPA_PARAM_BUFFERS_stride
@ SPA_PARAM_BUFFERS_stride
stride of data block memory (Int)
Definition: param.h:85
SPA_FORMAT_AUDIO_format
@ SPA_FORMAT_AUDIO_format
audio format, (Id enum spa_audio_format)
Definition: param/format.h:107
pw_log_warn
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87
pw_filter_events::param_changed
void(* param_changed)(void *data, void *port_data, uint32_t id, const struct spa_pod *param)
when a parameter changed on a port of the filter (when port_data is NULL).
Definition: src/pipewire/filter.h:91
pw_filter_get_dsp_buffer
void * pw_filter_get_dsp_buffer(void *port_data, uint32_t n_samples)
Get a data pointer to the buffer data.
Definition: filter.c:1848
filter::rt_callbacks
struct spa_callbacks rt_callbacks
Definition: filter.c:163
spa_callbacks_call
#define spa_callbacks_call(callbacks, type, method, vers,...)
Invoke method named method in the callbacks.
Definition: hook.h:172
spa_io_clock::rate
struct spa_fraction rate
rate for position/duration/delay
Definition: io.h:140
core.h
spa_command
Definition: pod/command.h:44
spa_buffer::datas
struct spa_data * datas
array of data members
Definition: buffer/buffer.h:97
filter::disconnecting
unsigned int disconnecting
Definition: filter.c:165
IDX_Format
#define IDX_Format
Definition: filter.c:106
pw_buffer::buffer
struct spa_buffer * buffer
the spa buffer
Definition: stream.h:176
spa_data
Data for a buffer this stays constant for a buffer.
Definition: buffer/buffer.h:70
port::param_list
struct spa_list param_list
Definition: filter.c:102
buffer::this
struct pw_buffer this
Definition: filter.c:60
filter::disconnect_core
unsigned int disconnect_core
Definition: filter.c:166
impl::this
struct pw_control this
Definition: control.c:34
spa_pod_builder_add_object
#define spa_pod_builder_add_object(b, type, id,...)
Definition: builder.h:650
queue::ring
struct spa_ringbuffer ring
Definition: filter.c:70
filter::process_rt
unsigned int process_rt
Definition: filter.c:171
pw_properties_copy
struct pw_properties * pw_properties_copy(const struct pw_properties *properties)
Copy a properties object.
Definition: properties.c:222
pw_loop_invoke
#define pw_loop_invoke(l,...)
Definition: src/pipewire/loop.h:63
spa_io_clock::delay
int64_t delay
delay between position and hardware, positive for capture, negative for playback
Definition: io.h:143
pw_proxy_add_listener
void pw_proxy_add_listener(struct pw_proxy *proxy, struct spa_hook *listener, const struct pw_proxy_events *events, void *data)
Add an event listener to proxy.
Definition: proxy.c:195
spa_type_param
const struct spa_type_info spa_type_param[]
Definition: param/type-info.h:46
spa_hook_remove
void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:336
spa_hook::priv
void * priv
Definition: hook.h:301
port::p
unsigned long p
Definition: module-filter-chain.c:145
SPA_POD_SIZE
#define SPA_POD_SIZE(pod)
Definition: pod/pod.h:42
spa_io_buffers::buffer_id
uint32_t buffer_id
a buffer id
Definition: io.h:100
pw_filter_get_node_id
uint32_t pw_filter_get_node_id(struct pw_filter *filter)
Get the node ID of the filter.
Definition: filter.c:1536
pw_log_info
#define pw_log_info(...)
Definition: src/pipewire/log.h:88
spa_node_events
events from the spa_node.
Definition: build-12775836/doc/spa/node/node.h:156
SPA_NODE_CHANGE_MASK_FLAGS
#define SPA_NODE_CHANGE_MASK_FLAGS
Definition: build-12775836/doc/spa/node/node.h:63
spa_process_latency_info_add
int spa_process_latency_info_add(const struct spa_process_latency_info *process, struct spa_latency_info *info)
Definition: latency-utils.h:149
param::link
struct spa_list link
Definition: filter.c:84
spa_data::data
void * data
optional data pointer
Definition: buffer/buffer.h:88
pipewire.h
spa_hook_list_init
void spa_hook_list_init(struct spa_hook_list *list)
Initialize a hook list to the empty list.
Definition: hook.h:305
filter::subscribe
unsigned int subscribe
Definition: filter.c:167
spa_node_info::change_mask
uint64_t change_mask
Definition: build-12775836/doc/spa/node/node.h:66
spa_ringbuffer_init
void spa_ringbuffer_init(struct spa_ringbuffer *rbuf)
Initialize a spa_ringbuffer with size.
Definition: ringbuffer.h:58
SPA_PORT_FLAG_CAN_ALLOC_BUFFERS
#define SPA_PORT_FLAG_CAN_ALLOC_BUFFERS
the port can allocate buffer data
Definition: build-12775836/doc/spa/node/node.h:103
IDX_IO
#define IDX_IO
Definition: filter.c:105
spa_pod_prop::value
struct spa_pod value
Definition: pod/pod.h:212
spa_fraction::num
uint32_t num
Definition: defs.h:105
pw_filter_get_state
enum pw_filter_state pw_filter_get_state(struct pw_filter *filter, const char **error)
Definition: filter.c:1392
spa_node_emit_info
#define spa_node_emit_info(hooks,...)
Definition: build-12775836/doc/spa/node/utils.h:131
SPA_POD_Id
#define SPA_POD_Id(val)
Definition: vararg.h:56
spa_pod_is_object
int spa_pod_is_object(const struct spa_pod *pod)
Definition: iter.h:381
SPA_UNLIKELY
#define SPA_UNLIKELY(x)
Definition: defs.h:235
pw_properties_new
struct pw_properties * pw_properties_new(const char *key,...) 1
Make a new properties object.
Definition: properties.c:98
SPA_PARAM_BUFFERS_align
@ SPA_PARAM_BUFFERS_align
alignment of data block memory (Int)
Definition: param.h:86
spa_io_clock::nsec
uint64_t nsec
time in nanoseconds against monotonic clock
Definition: io.h:139
port::buffers
struct buffer buffers[MAX_BUFFERS]
Definition: filter.c:114
pw_core_add_listener
#define pw_core_add_listener(c,...)
Definition: core.h:325
filter::ports
struct port * ports[2][MAX_PORTS]
Definition: filter.c:145
SPA_CALLBACKS_INIT
#define SPA_CALLBACKS_INIT(_funcs, _data)
Initialize the set of functions funcs as a spa_callbacks, together with _data.
Definition: hook.h:142
queue::incount
uint64_t incount
Definition: filter.c:71
spa_pod_builder
Definition: builder.h:63
port::direction
enum spa_direction direction
Definition: buffers.c:46
filter.h
props.h
spa_port_info::props
const struct spa_dict * props
extra port properties
Definition: build-12775836/doc/spa/node/node.h:121
buffer::flags
uint32_t flags
Definition: filter.c:65
pw_time::rate
struct spa_fraction rate
the rate of ticks and delay
Definition: stream.h:196
port::filter
struct filter * filter
Definition: filter.c:91
SPA_PARAM_Buffers
@ SPA_PARAM_Buffers
buffer configurations as SPA_TYPE_OBJECT_ParamBuffers
Definition: param.h:49
pw_direction
#define pw_direction
The direction of a port.
Definition: port.h:56
filter::param_list
struct spa_list param_list
Definition: filter.c:149
filter::position
struct spa_io_position * position
Definition: filter.c:138
pw_filter_get_properties
const struct pw_properties * pw_filter_get_properties(struct pw_filter *filter, void *port_data)
get properties, port_data of NULL will give global properties
Definition: filter.c:1412
port::n_buffers
uint32_t n_buffers
Definition: filter.c:115
port::id
uint32_t id
Definition: filter.c:94
data::context
struct pw_context * context
Definition: filter.c:76
port::queued
struct queue queued
Definition: filter.c:118
filter::time
struct pw_time time
Definition: filter.c:159
pw_properties
Definition: properties.h:49
MAX_BUFFERS
#define MAX_BUFFERS
Definition: filter.c:49
spa_hook_list_clean
void spa_hook_list_clean(struct spa_hook_list *list)
Remove all hooks from the list.
Definition: hook.h:344
pw_properties_free
void pw_properties_free(struct pw_properties *properties)
Free a properties object.
Definition: properties.c:364
pw_context_get_conf_section
const char * pw_context_get_conf_section(struct pw_context *context, const char *section)
Get a config section for this context.
Definition: context.c:587
pw_core_events
Core events.
Definition: core.h:114
queue::outcount
uint64_t outcount
Definition: filter.c:72
pw_log_error
#define pw_log_error(...)
Definition: src/pipewire/log.h:86
spa_debug_type_find_name
const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:68
spa_list_append
#define spa_list_append(list, item)
Definition: list.h:81