5#ifndef SPA_POD_FILTER_H 
    6#define SPA_POD_FILTER_H 
   47                                memcpy(val, alt, size);
 
   52                                memcpy(val, alt, size);
 
   60                for (i = 1; i < nvals; i++) {
 
   70                        memcpy(val, best, size);
 
   81                uint32_t type, 
const void *r1, 
const void *r2, uint32_t size)
 
   86                int32_t val = (*(int32_t *) r1) & (*(int32_t *) r2);
 
   94                int64_t val = (*(int64_t *) r1) & (*(int64_t *) r2);
 
  107                const void *r2, uint32_t size)
 
  111                return *(int32_t *) r1 % *(int32_t *) r2 == 0;
 
  113                return *(int64_t *) r1 % *(int64_t *) r2 == 0;
 
  119                return (rec1->
width % rec2->width == 0 &&
 
  120                    rec1->
height % rec2->height == 0);
 
  135        uint32_t j, k, nalt1, nalt2;
 
  136        void *alt1, *alt2, *a1, *a2;
 
  137        uint32_t type, size, p1c, p2c;
 
  180                for (j = 0, a1 = alt1; j < nalt1; j++, a1 = 
SPA_PTROFF(a1, size, 
void)) {
 
  181                        for (k = 0, a2 = alt2; k < nalt2; k++, a2 = 
SPA_PTROFF(a2,size,
void)) {
 
  198                for (j = 0, a1 = alt1, a2 = alt2; j < nalt1; j++, a1 = 
SPA_PTROFF(a1,size,
void)) {
 
  214                for (j = 0, a1 = alt1, a2 = alt2; j < nalt1; j++, a1 = 
SPA_PTROFF(a1,size,
void)) {
 
  239                for (k = 0, a1 = alt1, a2 = alt2; k < nalt2; k++, a2 = 
SPA_PTROFF(a2,size,
void)) {
 
  289                for (j = 0, a1 = alt1, a2 = alt2; j < nalt2; j++, a2 = 
SPA_PTROFF(a1,size,
void)) {
 
  327               const struct spa_pod *filter, uint32_t filter_size)
 
  335                bool do_copy = 
false, do_advance = 
false;
 
  336                uint32_t filter_offset = 0;
 
static int spa_pod_builder_prop(struct spa_pod_builder *builder, uint32_t key, uint32_t flags)
Definition: builder.h:450
 
#define SPA_POD_CHOICE_VALUE_TYPE(choice)
Definition: pod/pod.h:138
 
static int spa_pod_filter_flags_value(struct spa_pod_builder *b, uint32_t type, const void *r1, const void *r2, uint32_t size)
Definition: spa/include/spa/pod/filter.h:85
 
static const struct spa_pod_prop * spa_pod_object_find_prop(const struct spa_pod_object *pod, const struct spa_pod_prop *start, uint32_t key)
Definition: iter.h:388
 
static int spa_pod_compare_value(uint32_t type, const void *r1, const void *r2, uint32_t size)
Definition: compare.h:33
 
#define SPA_POD_PROP_FLAG_MANDATORY
is mandatory
Definition: pod/pod.h:222
 
static int spa_pod_filter_is_step_of(uint32_t type, const void *r1, const void *r2, uint32_t size)
Definition: spa/include/spa/pod/filter.h:111
 
#define SPA_POD_CHOICE_VALUE_SIZE(choice)
Definition: pod/pod.h:140
 
static void * spa_pod_next(const void *iter)
Definition: iter.h:40
 
#define SPA_POD_OBJECT_FOREACH(obj, iter)
Definition: iter.h:108
 
#define SPA_POD_BODY(pod)
Definition: pod/pod.h:39
 
static struct spa_pod * spa_pod_builder_frame(struct spa_pod_builder *builder, struct spa_pod_frame *frame)
Definition: builder.h:105
 
static void spa_pod_builder_reset(struct spa_pod_builder *builder, struct spa_pod_builder_state *state)
Definition: builder.h:78
 
#define SPA_POD_TYPE(pod)
Definition: pod/pod.h:28
 
static int spa_pod_filter_part(struct spa_pod_builder *b, const struct spa_pod *pod, uint32_t pod_size, const struct spa_pod *filter, uint32_t filter_size)
Definition: spa/include/spa/pod/filter.h:330
 
static int spa_pod_choice_fix_default(struct spa_pod_choice *choice)
Definition: spa/include/spa/pod/filter.h:33
 
static int spa_pod_builder_raw_padded(struct spa_pod_builder *builder, const void *data, uint32_t size)
Definition: builder.h:160
 
static int spa_pod_filter_prop(struct spa_pod_builder *b, const struct spa_pod_prop *p1, const struct spa_pod_prop *p2)
Definition: spa/include/spa/pod/filter.h:134
 
static void * spa_pod_builder_pop(struct spa_pod_builder *builder, struct spa_pod_frame *frame)
Definition: builder.h:168
 
static int spa_pod_builder_primitive(struct spa_pod_builder *builder, const struct spa_pod *p)
Definition: builder.h:186
 
static bool spa_pod_is_inside(const void *pod, uint32_t size, const void *iter)
Definition: iter.h:34
 
static int spa_pod_builder_push_struct(struct spa_pod_builder *builder, struct spa_pod_frame *frame)
Definition: builder.h:422
 
static void spa_pod_builder_get_state(struct spa_pod_builder *builder, struct spa_pod_builder_state *state)
Definition: builder.h:65
 
#define SPA_POD_FOREACH(pod, size, iter)
Definition: iter.h:95
 
#define SPA_POD_CHOICE_VALUES(choice)
Definition: pod/pod.h:144
 
#define SPA_POD_PROP_SIZE(prop)
Definition: pod/pod.h:205
 
static struct spa_pod * spa_pod_get_values(const struct spa_pod *pod, uint32_t *n_vals, uint32_t *choice)
Definition: iter.h:347
 
static int spa_pod_builder_raw(struct spa_pod_builder *builder, const void *data, uint32_t size)
Definition: builder.h:128
 
static int spa_pod_builder_push_choice(struct spa_pod_builder *builder, struct spa_pod_frame *frame, uint32_t type, uint32_t flags)
Definition: builder.h:406
 
static int spa_pod_builder_int(struct spa_pod_builder *builder, int32_t val)
Definition: builder.h:247
 
static int spa_pod_builder_push_object(struct spa_pod_builder *builder, struct spa_pod_frame *frame, uint32_t type, uint32_t id)
Definition: builder.h:435
 
static int spa_pod_builder_long(struct spa_pod_builder *builder, int64_t val)
Definition: builder.h:256
 
#define SPA_POD_CHOICE_N_VALUES(choice)
Definition: pod/pod.h:142
 
#define SPA_POD_SIZE(pod)
Definition: pod/pod.h:30
 
static struct spa_pod * spa_pod_builder_deref(struct spa_pod_builder *builder, uint32_t offset)
Definition: builder.h:93
 
static int spa_pod_filter(struct spa_pod_builder *b, struct spa_pod **result, const struct spa_pod *pod, const struct spa_pod *filter)
Definition: spa/include/spa/pod/filter.h:431
 
@ SPA_CHOICE_Step
range with step: default, min, max, step
Definition: pod/pod.h:149
 
@ SPA_CHOICE_None
no choice, first value is current
Definition: pod/pod.h:147
 
@ SPA_CHOICE_Flags
flags: default, possible flags,...
Definition: pod/pod.h:151
 
@ SPA_CHOICE_Range
range: default, min, max
Definition: pod/pod.h:148
 
@ SPA_CHOICE_Enum
list: default, alternative,...
Definition: pod/pod.h:150
 
@ SPA_TYPE_Int
Definition: spa/include/spa/utils/type.h:34
 
@ SPA_TYPE_Rectangle
Definition: spa/include/spa/utils/type.h:40
 
@ SPA_TYPE_Long
Definition: spa/include/spa/utils/type.h:35
 
@ SPA_TYPE_Object
Definition: spa/include/spa/utils/type.h:45
 
@ SPA_TYPE_Struct
Definition: spa/include/spa/utils/type.h:44
 
#define spa_return_val_if_fail(expr, val)
Definition: defs.h:365
 
#define SPA_PTROFF(ptr_, offset_, type_)
Return the address (buffer + offset) as pointer of type.
Definition: defs.h:194
 
uint32_t type
type of choice, one of enum spa_choice_type
Definition: pod/pod.h:155
 
Definition: pod/pod.h:162
 
struct spa_pod_choice_body body
Definition: pod/pod.h:164
 
struct spa_pod pod
Definition: pod/pod.h:163
 
uint32_t type
one of enum spa_type
Definition: pod/pod.h:178
 
uint32_t id
id of the object, depends on the object type
Definition: pod/pod.h:179
 
Definition: pod/pod.h:183
 
struct spa_pod_object_body body
Definition: pod/pod.h:185
 
Definition: pod/pod.h:208
 
uint32_t key
key of property, list of valid keys depends on the object type
Definition: pod/pod.h:209
 
uint32_t flags
flags for property
Definition: pod/pod.h:225
 
struct spa_pod value
Definition: pod/pod.h:226
 
Definition: pod/pod.h:167
 
uint32_t type
Definition: pod/pod.h:45
 
uint32_t size
Definition: pod/pod.h:44
 
uint32_t width
Definition: defs.h:103
 
uint32_t height
Definition: defs.h:104