25 #ifndef SPA_PARAM_LATENCY_UTILS_H
26 #define SPA_PARAM_LATENCY_UTILS_H
51 #define SPA_LATENCY_INFO(dir,...) (struct spa_latency_info) { .direction = (dir), ## __VA_ARGS__ }
125 #define SPA_PROCESS_LATENCY_INFO_INIT(...) (struct spa_process_latency_info) { __VA_ARGS__ }
static int spa_latency_info_compare(const struct spa_latency_info *a, struct spa_latency_info *b)
Definition: latency-utils.h:60
static int spa_latency_parse(const struct spa_pod *latency, struct spa_latency_info *info)
Definition: latency-utils.h:93
static int spa_latency_info_combine(struct spa_latency_info *info, const struct spa_latency_info *other)
Definition: latency-utils.h:73
static struct spa_pod * spa_process_latency_build(struct spa_pod_builder *builder, uint32_t id, const struct spa_process_latency_info *info)
Definition: latency-utils.h:149
static int spa_process_latency_info_add(const struct spa_process_latency_info *process, struct spa_latency_info *info)
Definition: latency-utils.h:160
static struct spa_pod * spa_latency_build(struct spa_pod_builder *builder, uint32_t id, const struct spa_latency_info *info)
Definition: latency-utils.h:112
static int spa_process_latency_parse(const struct spa_pod *latency, struct spa_process_latency_info *info)
Definition: latency-utils.h:135
@ SPA_PARAM_PROCESS_LATENCY_rate
latency (Int) relative to rate
Definition: param.h:204
@ SPA_PARAM_PROCESS_LATENCY_ns
latency (Long) in nanoseconds
Definition: param.h:205
@ SPA_PARAM_PROCESS_LATENCY_quantum
latency relative to quantum (Float)
Definition: param.h:203
@ SPA_PARAM_LATENCY_maxNs
max latency (Long) in nanoseconds
Definition: param.h:197
@ SPA_PARAM_LATENCY_minRate
min latency (Int) relative to rate
Definition: param.h:194
@ SPA_PARAM_LATENCY_minQuantum
min latency relative to quantum (Float)
Definition: param.h:192
@ SPA_PARAM_LATENCY_maxRate
max latency (Int) relative to rate
Definition: param.h:195
@ SPA_PARAM_LATENCY_maxQuantum
max latency relative to quantum (Float)
Definition: param.h:193
@ SPA_PARAM_LATENCY_direction
direction, input/output (Id enum spa_direction)
Definition: param.h:191
@ SPA_PARAM_LATENCY_minNs
min latency (Long) in nanoseconds
Definition: param.h:196
#define SPA_POD_OPT_Float(val)
Definition: parser.h:534
#define SPA_POD_Long(val)
Definition: vararg.h:85
#define SPA_POD_Id(val)
Definition: vararg.h:69
#define SPA_POD_OPT_Int(val)
Definition: parser.h:530
#define spa_pod_builder_add_object(b, type, id,...)
Definition: builder.h:677
#define SPA_POD_Float(val)
Definition: vararg.h:96
#define spa_pod_parse_object(pod, type, id,...)
Definition: parser.h:584
#define SPA_POD_Int(val)
Definition: vararg.h:74
#define SPA_POD_OPT_Long(val)
Definition: parser.h:532
@ SPA_TYPE_OBJECT_ParamLatency
Definition: type.h:104
@ SPA_TYPE_OBJECT_ParamProcessLatency
Definition: type.h:105
#define spa_zero(x)
Definition: defs.h:380
spa_direction
Definition: defs.h:90
Definition: latency-utils.h:46
uint32_t min_rate
Definition: latency-utils.h:50
uint32_t max_rate
Definition: latency-utils.h:51
enum spa_direction direction
Definition: latency-utils.h:47
float max_quantum
Definition: latency-utils.h:49
float min_quantum
Definition: latency-utils.h:48
uint64_t min_ns
Definition: latency-utils.h:52
uint64_t max_ns
Definition: latency-utils.h:53
Definition: latency-utils.h:125
float quantum
Definition: latency-utils.h:126
uint32_t rate
Definition: latency-utils.h:127
uint64_t ns
Definition: latency-utils.h:128