X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2Fimage-dup-test.c;h=93fde378819e8573df42257a6fe7cb68fd65b775;hb=c4bf633211b0424492b5a3937d6a6d2e0d79a4cf;hp=048b53f371d4e01d2f1d6349ee7a6a1c436ec778;hpb=f1e59f17c216849d1988d874e7fd945c2cd68e5a;p=libucw.git diff --git a/images/image-dup-test.c b/images/image-dup-test.c index 048b53f3..93fde378 100644 --- a/images/image-dup-test.c +++ b/images/image-dup-test.c @@ -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);