Lines Matching refs:im2
14 void CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2);
22 gdImagePtr im, ref, im2, im3; in main() local
70 im2 = gdImageCreateFromPng (in); in main()
73 CompareImages ("GD->PNG File->GD", ref, im2); in main()
76 gdImageDestroy (im2); in main()
80 im2 = gdImageCreateFromPngCtx (ctx); in main()
82 CompareImages ("GD->PNG ptr->GD", ref, im2); in main()
84 gdImageDestroy (im2); in main()
102 im2 = gdImageCreateFromGd2 (in); in main()
105 CompareImages ("GD->GD2 File->GD", ref, im2); in main()
108 gdImageDestroy (im2); in main()
114 im2 = gdImageCreateFromGd2Ctx (ctx); in main()
117 CompareImages ("GD->GD2 ptr->GD", ref, im2); in main()
119 gdImageDestroy (im2); in main()
137 im2 = gdImageCreateFromGd (in); in main()
140 CompareImages ("GD->GD File->GD", ref, im2); in main()
143 gdImageDestroy (im2); in main()
149 im2 = gdImageCreateFromGdCtx (ctx); in main()
152 CompareImages ("GD->GD ptr->GD", ref, im2); in main()
154 gdImageDestroy (im2); in main()
165 im2 = gdImageCreateFromPngSource (&imgsrc); in main()
168 if (im2 == NULL) in main()
174 CompareImages ("GD Source", ref, im2); in main()
175 gdImageDestroy (im2); in main()
196 im2 = gdImageCreateFromPng (in); in main()
199 CompareImages ("GD Sink", ref, im2); in main()
200 gdImageDestroy (im2); in main()
214 im2 = gdImageCreateFromPng (in); in main()
227 CompareImages ("GD2Part (gdtest_200_300_150_100.png, gdtest.gd2(part))", im2, im3); in main()
229 gdImageDestroy (im2); in main()
241 im2 = gdImageCreateFromPng (in); in main()
250 gdImageCopyMerge (im2, im3, 150, 200, 10, 10, 90, 50, 50); in main()
251 gdImageCopyMerge (im2, im3, 180, 70, 10, 10, 90, 50, 50); in main()
253 gdImageCopyMergeGray (im2, im3, 250, 160, 10, 10, 90, 50, 50); in main()
254 gdImageCopyMergeGray (im2, im3, 80, 70, 10, 10, 90, 50, 50); in main()
267 printf ("[Merged Image has %d colours]\n", im2->colorsTotal); in main()
268 CompareImages ("Merged (gdtest.png, gdtest_merge.png)", im2, im3); in main()
270 gdImageDestroy (im2); in main()
288 im2 = gdImageCreateFromJpeg (in); in main()
290 if (!im2) in main()
295 gdImageDestroy (im2); in main()
326 im2 = gdImageCreateFromWBMP (in); in main()
327 fprintf (stderr, "WBMP has %d colors\n", gdImageColorsTotal (im2)); in main()
329 for (i = 0; (i < gdImageColorsTotal (im2)); i++) in main()
332 gdImageRed (im2, i), in main()
333 gdImageGreen (im2, i), in main()
334 gdImageBlue (im2, i)); in main()
337 if (!im2) in main()
342 CompareImages ("WBMP test (gdtest.png, gdtest.wbmp)", ref, im2); in main()
349 gdImagePng (im2, out); in main()
351 gdImageDestroy (im2); in main()
360 CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2) in CompareImages() argument
364 cmpRes = gdImageCompare (im1, im2); in CompareImages()
388 im1->colorsTotal, im2->colorsTotal); in CompareImages()