5 #include <magick/api.h>
8 #define IMAGE_VEC_LOG_K 3
10 typedef u32 image_vector[IMAGE_VEC_K];
11 typedef u32 image_box[2][IMAGE_VEC_K];
13 struct image_signature {
21 struct image_node *nodes;
22 struct image_entry *entries;
25 #define IMAGE_NODE_LEAF 0x80000000
26 #define IMAGE_NODE_DIM ((1 << IMAGE_VEC_LOG_K) - 1)
32 #define IMAGE_ENTRY_LAST (1 << (sizeof(oid_t) * 8 - 1))
38 int compute_image_signature(void *data, uns len, struct image_signature *sig);