25#ifndef SPA_PARAM_LATENCY_UTILS_H
26#define SPA_PARAM_LATENCY_UTILS_H
60 .min_quantum = FLT_MAX,
62 .min_rate = UINT32_MAX,
74 if (info->
min_ns == UINT64_MAX)
static int spa_latency_info_compare(const struct spa_latency_info *a, struct spa_latency_info *b)
Definition: latency-utils.h:49
static int spa_latency_parse(const struct spa_pod *latency, struct spa_latency_info *info)
Definition: latency-utils.h:104
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:151
static int spa_latency_info_combine(struct spa_latency_info *info, const struct spa_latency_info *other)
Definition: latency-utils.h:84
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:123
#define SPA_LATENCY_INFO(dir,...)
Definition: latency.h:68
static int spa_process_latency_info_add(const struct spa_process_latency_info *process, struct spa_latency_info *info)
Definition: latency-utils.h:162
static int spa_process_latency_parse(const struct spa_pod *latency, struct spa_process_latency_info *info)
Definition: latency-utils.h:137
static void spa_latency_info_combine_finish(struct spa_latency_info *info)
Definition: latency-utils.h:73
static void spa_latency_info_combine_start(struct spa_latency_info *info, enum spa_direction direction)
Definition: latency-utils.h:62
@ SPA_PARAM_PROCESS_LATENCY_rate
latency (Int) relative to rate
Definition: latency.h:74
@ SPA_PARAM_PROCESS_LATENCY_ns
latency (Long) in nanoseconds
Definition: latency.h:75
@ SPA_PARAM_PROCESS_LATENCY_quantum
latency relative to quantum (Float)
Definition: latency.h:73
@ SPA_PARAM_LATENCY_maxNs
max latency (Long) in nanoseconds
Definition: latency.h:53
@ SPA_PARAM_LATENCY_minRate
min latency (Int) relative to rate
Definition: latency.h:50
@ SPA_PARAM_LATENCY_minQuantum
min latency relative to quantum (Float)
Definition: latency.h:48
@ SPA_PARAM_LATENCY_maxRate
max latency (Int) relative to rate
Definition: latency.h:51
@ SPA_PARAM_LATENCY_maxQuantum
max latency relative to quantum (Float)
Definition: latency.h:49
@ SPA_PARAM_LATENCY_direction
direction, input/output (Id enum spa_direction)
Definition: latency.h:47
@ SPA_PARAM_LATENCY_minNs
min latency (Long) in nanoseconds
Definition: latency.h:52
#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: spa/include/spa/utils/type.h:104
@ SPA_TYPE_OBJECT_ParamProcessLatency
Definition: spa/include/spa/utils/type.h:105
#define spa_zero(x)
Definition: defs.h:433
spa_direction
Definition: defs.h:108
helper structure for managing latency objects
Definition: latency.h:57
uint32_t min_rate
Definition: latency.h:61
uint32_t max_rate
Definition: latency.h:62
enum spa_direction direction
Definition: latency.h:58
float max_quantum
Definition: latency.h:60
float min_quantum
Definition: latency.h:59
uint64_t min_ns
Definition: latency.h:63
uint64_t max_ns
Definition: latency.h:64
Helper structure for managing process latency objects.
Definition: latency.h:79
float quantum
Definition: latency.h:80
uint32_t rate
Definition: latency.h:81
uint64_t ns
Definition: latency.h:82