25 #ifndef SPA_PARAM_LATENCY_UTILS_H
26 #define SPA_PARAM_LATENCY_UTILS_H
53 #define SPA_LATENCY_INFO(dir,...) ((struct spa_latency_info) { .direction = (dir), ## __VA_ARGS__ })
72 .min_quantum = FLT_MAX,
74 .min_rate = UINT32_MAX,
149 #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:62
static int spa_latency_parse(const struct spa_pod *latency, struct spa_latency_info *info)
Definition: latency-utils.h:117
static int spa_latency_info_combine(struct spa_latency_info *info, const struct spa_latency_info *other)
Definition: latency-utils.h:97
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:173
#define SPA_LATENCY_INFO(dir,...)
Definition: latency-utils.h:59
static int spa_process_latency_info_add(const struct spa_process_latency_info *process, struct spa_latency_info *info)
Definition: latency-utils.h:184
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:136
static int spa_process_latency_parse(const struct spa_pod *latency, struct spa_process_latency_info *info)
Definition: latency-utils.h:159
static void spa_latency_info_combine_finish(struct spa_latency_info *info)
Definition: latency-utils.h:86
static void spa_latency_info_combine_start(struct spa_latency_info *info, enum spa_direction direction)
Definition: latency-utils.h:75
@ SPA_PARAM_PROCESS_LATENCY_rate
latency (Int) relative to rate
Definition: param.h:206
@ SPA_PARAM_PROCESS_LATENCY_ns
latency (Long) in nanoseconds
Definition: param.h:207
@ SPA_PARAM_PROCESS_LATENCY_quantum
latency relative to quantum (Float)
Definition: param.h:205
@ SPA_PARAM_LATENCY_maxNs
max latency (Long) in nanoseconds
Definition: param.h:199
@ SPA_PARAM_LATENCY_minRate
min latency (Int) relative to rate
Definition: param.h:196
@ SPA_PARAM_LATENCY_minQuantum
min latency relative to quantum (Float)
Definition: param.h:194
@ SPA_PARAM_LATENCY_maxRate
max latency (Int) relative to rate
Definition: param.h:197
@ SPA_PARAM_LATENCY_maxQuantum
max latency relative to quantum (Float)
Definition: param.h:195
@ SPA_PARAM_LATENCY_direction
direction, input/output (Id enum spa_direction)
Definition: param.h:193
@ SPA_PARAM_LATENCY_minNs
min latency (Long) in nanoseconds
Definition: param.h:198
#define SPA_POD_OPT_Float(val)
Definition: parser.h:546
#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:542
#define spa_pod_builder_add_object(b, type, id,...)
Definition: builder.h:679
#define SPA_POD_Float(val)
Definition: vararg.h:96
#define spa_pod_parse_object(pod, type, id,...)
Definition: parser.h:596
#define SPA_POD_Int(val)
Definition: vararg.h:74
#define SPA_POD_OPT_Long(val)
Definition: parser.h:544
@ SPA_TYPE_OBJECT_ParamLatency
Definition: type.h:104
@ SPA_TYPE_OBJECT_ParamProcessLatency
Definition: type.h:105
#define spa_zero(x)
Definition: defs.h:425
spa_direction
Definition: defs.h:108
Definition: latency-utils.h:48
uint32_t min_rate
Definition: latency-utils.h:52
uint32_t max_rate
Definition: latency-utils.h:53
enum spa_direction direction
Definition: latency-utils.h:49
float max_quantum
Definition: latency-utils.h:51
float min_quantum
Definition: latency-utils.h:50
uint64_t min_ns
Definition: latency-utils.h:54
uint64_t max_ns
Definition: latency-utils.h:55
Definition: latency-utils.h:149
float quantum
Definition: latency-utils.h:150
uint32_t rate
Definition: latency-utils.h:151
uint64_t ns
Definition: latency-utils.h:152