X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2Fduplicates.h;h=ddeddd5c65f8e317ce402b15c976f15ef1792908;hb=7cc9c555b0ef228f93a9f06b7c4b126b05688f79;hp=fda8953fb776706ddbeee2799077c993fd573a4d;hpb=2f678dc9ccd4cd88531c97ad48375074db3ad8be;p=libucw.git diff --git a/images/duplicates.h b/images/duplicates.h index fda8953f..ddeddd5c 100644 --- a/images/duplicates.h +++ b/images/duplicates.h @@ -20,6 +20,10 @@ struct image_dup_context { uns flags; uns ratio_threshold; uns error_threshold; + uns qtree_limit; + u64 sum_depth; + u64 sum_pixels; + uns error; }; struct image_dup { @@ -35,8 +39,9 @@ struct image_dup { void image_dup_context_init(struct image_context *ic, struct image_dup_context *ctx); void image_dup_context_cleanup(struct image_dup_context *ctx); -uns image_dup_estimate_size(uns cols, uns rows); -uns image_dup_new(struct image_context *ctx, struct image *image, void *buffer); + +uns image_dup_estimate_size(uns cols, uns rows, uns same_size_compare, uns qtree_limit); +uns image_dup_new(struct image_dup_context *ctx, struct image *image, void *buffer, uns same_size_compare); /* dup-cmp.c */