}
+#ifndef CONFIG_FREE
######## Image signatures #######################################################
ImageSig {
}
+#endif
+#ifdef CONFIG_IMAGES_DUP
######## Duplicate finder #######################################################
ImageDup {
# Detection of image duplicates does not work yet.
}
-
+#endif
#include "lib/lib.h"
#include "lib/conf.h"
#include "images/images.h"
+#ifndef CONFIG_FREE
#include "images/signature.h"
+#endif
#include <string.h>
uns image_max_dim = 0xffff;
uns image_max_bytes = ~0U;
+#ifndef CONFIG_FREE
/* ImageSig section */
uns image_sig_min_width;
uns image_sig_min_height;
double image_sig_textured_threshold;
int image_sig_compare_method;
uns image_sig_cmp_features_weights[IMAGE_REG_F + IMAGE_REG_H];
+#endif
static struct cf_section image_lib_config = {
CF_ITEMS{
}
};
+#ifndef CONFIG_FREE
static struct cf_section image_sig_config = {
CF_ITEMS{
CF_UNS("MinWidth", &image_sig_min_width),
CF_END
}
};
+#endif
static void CONSTRUCTOR
images_init_config(void)
{
cf_declare_section("ImageLib", &image_lib_config, 0);
+#ifndef CONFIG_FREE
cf_declare_section("ImageSig", &image_sig_config, 0);
+#endif
}