+#ifndef _IMAGES_DUPLICATES_H
+#define _IMAGES_DUPLICATES_H
+
+enum image_dup_flags {
+ IMAGE_DUP_TRANS_ID = 0x0001,
+ IMAGE_DUP_FLIP_X = 0x0002,
+ IMAGE_DUP_FLIP_Y = 0x0004,
+ IMAGE_DUP_ROT_180 = 0x0008,
+ IMAGE_DUP_FLIP_BACK = 0x0010,
+ IMAGE_DUP_ROT_CCW = 0x0020,
+ IMAGE_DUP_ROT_CW = 0x0040,
+ IMAGE_DUP_FLIP_SLASH = 0x0080,
+ IMAGE_DUP_TRANS_ALL = 0x00ff,
+ IMAGE_DUP_SCALE = 0x0100,
+ IMAGE_DUP_WANT_ALL = 0x0200,
+};
+
+struct image_dup_context {
+ struct image_context *ic;
+ uns flags;
+ uns ratio_threshold;
+ uns error_threshold;
+ uns qtree_limit;
+ u64 sum_depth;
+ u64 sum_pixels;
+ uns error;
+};