]> mj.ucw.cz Git - libucw.git/blobdiff - images/image-dup-test.c
Sorter debugging tools can be compiled again
[libucw.git] / images / image-dup-test.c
index 048b53f371d4e01d2f1d6349ee7a6a1c436ec778..feece3d1fc7b3f91de3c29fb8e8fb9e098ba6d36 100644 (file)
@@ -7,13 +7,13 @@
  *     of the GNU General Public License.
  */
 
-#include "lib/lib.h"
-#include "lib/getopt.h"
-#include "lib/fastbuf.h"
-#include "lib/mempool.h"
-#include "images/images.h"
-#include "images/color.h"
-#include "images/duplicates.h"
+#include <ucw/lib.h>
+#include <ucw/getopt.h>
+#include <ucw/fastbuf.h>
+#include <ucw/mempool.h>
+#include <images/images.h>
+#include <images/color.h>
+#include <images/duplicates.h>
 
 #include <stdlib.h>
 #include <fcntl.h>
@@ -151,12 +151,12 @@ main(int argc, char **argv)
   struct image_dup *dup1, *dup2;
   struct mempool *pool = mp_new(1 << 18);
   MSG("Creating internal structures");
-  dup1 = mp_start(pool, image_dup_estimate_size(img1->cols, img1->rows));
-  uns size = image_dup_new(&ctx, img1, dup1);
+  dup1 = mp_start(pool, image_dup_estimate_size(img1->cols, img1->rows, 1, idc.qtree_limit));
+  uns size = image_dup_new(&idc, img1, dup1, 1);
   TRY(size);
   mp_end(pool, (void *)dup1 + size);
-  dup2 = mp_start(pool, image_dup_estimate_size(img2->cols, img2->rows));
-  size = image_dup_new(&ctx, img2, dup2);
+  dup2 = mp_start(pool, image_dup_estimate_size(img2->cols, img2->rows, 1, idc.qtree_limit));
+  size = image_dup_new(&idc, img2, dup2, 1);
   TRY(size);
   mp_end(pool, (void *)dup2 + size);