im2               173 ext/gd/gd.c    	ZEND_ARG_INFO(0, im2)
im2              1555 ext/gd/gd.c    	gdImagePtr im1, im2;
im2              1565 ext/gd/gd.c    	if ((im2 = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM2), "Image", le_gd)) == NULL) {
im2              1569 ext/gd/gd.c    	result = gdImageColorMatch(im1, im2);
im2              2788 ext/gd/libgd/gd.c int gdImageCompare (gdImagePtr im1, gdImagePtr im2)
im2              2795 ext/gd/libgd/gd.c 	if (im1->interlace != im2->interlace) {
im2              2799 ext/gd/libgd/gd.c 	if (im1->transparent != im2->transparent) {
im2              2803 ext/gd/libgd/gd.c 	if (im1->trueColor != im2->trueColor) {
im2              2808 ext/gd/libgd/gd.c 	if (im1->sx != im2->sx) {
im2              2810 ext/gd/libgd/gd.c 		if (im2->sx < im1->sx) {
im2              2811 ext/gd/libgd/gd.c 			sx = im2->sx;
im2              2816 ext/gd/libgd/gd.c 	if (im1->sy != im2->sy) {
im2              2818 ext/gd/libgd/gd.c 		if (im2->sy < im1->sy) {
im2              2819 ext/gd/libgd/gd.c 			sy = im2->sy;
im2              2823 ext/gd/libgd/gd.c 	if (im1->colorsTotal != im2->colorsTotal) {
im2              2830 ext/gd/libgd/gd.c 			p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y);
im2              2832 ext/gd/libgd/gd.c 			if (gdImageRed(im1, p1) != gdImageRed(im2, p2)) {
im2              2836 ext/gd/libgd/gd.c 			if (gdImageGreen(im1, p1) != gdImageGreen(im2, p2)) {
im2              2840 ext/gd/libgd/gd.c 			if (gdImageBlue(im1, p1) != gdImageBlue(im2, p2)) {
im2              2846 ext/gd/libgd/gd.c 			if (gdImageAlpha(im1, p1) != gdImageAlpha(im2, p2)) {
im2               572 ext/gd/libgd/gd.h int gdImageColorMatch(gdImagePtr im1, gdImagePtr im2);
im2               804 ext/gd/libgd/gd.h int gdImageCompare(gdImagePtr im1, gdImagePtr im2);
im2                15 ext/gd/libgd/gd_color.c int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2)
im2                26 ext/gd/libgd/gd_color.c 	if( im2->trueColor ) {
im2                29 ext/gd/libgd/gd_color.c 	if( (im1->sx != im2->sx) || (im1->sy != im2->sy) ) {
im2                32 ext/gd/libgd/gd_color.c 	if (im2->colorsTotal<1) {
im2                36 ext/gd/libgd/gd_color.c 	buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0);
im2                37 ext/gd/libgd/gd_color.c 	memset( buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal );
im2                41 ext/gd/libgd/gd_color.c 			color = im2->pixels[y][x];
im2                52 ext/gd/libgd/gd_color.c 	for (color=0; color<im2->colorsTotal; color++) {
im2                55 ext/gd/libgd/gd_color.c 			im2->red[color]		= *(bp++) / count;
im2                56 ext/gd/libgd/gd_color.c 			im2->green[color]	= *(bp++) / count;
im2                57 ext/gd/libgd/gd_color.c 			im2->blue[color]	= *(bp++) / count;
im2                58 ext/gd/libgd/gd_color.c 			im2->alpha[color]	= *(bp++) / count;
im2                14 ext/gd/libgd/gdtest.c void CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2);
im2                22 ext/gd/libgd/gdtest.c   gdImagePtr im, ref, im2, im3;
im2                70 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromPng (in);
im2                73 ext/gd/libgd/gdtest.c   CompareImages ("GD->PNG File->GD", ref, im2);
im2                76 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2                80 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromPngCtx (ctx);
im2                82 ext/gd/libgd/gdtest.c   CompareImages ("GD->PNG ptr->GD", ref, im2);
im2                84 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               102 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromGd2 (in);
im2               105 ext/gd/libgd/gdtest.c   CompareImages ("GD->GD2 File->GD", ref, im2);
im2               108 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               114 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromGd2Ctx (ctx);
im2               117 ext/gd/libgd/gdtest.c   CompareImages ("GD->GD2 ptr->GD", ref, im2);
im2               119 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               137 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromGd (in);
im2               140 ext/gd/libgd/gdtest.c   CompareImages ("GD->GD File->GD", ref, im2);
im2               143 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               149 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromGdCtx (ctx);
im2               152 ext/gd/libgd/gdtest.c   CompareImages ("GD->GD ptr->GD", ref, im2);
im2               154 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               165 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromPngSource (&imgsrc);
im2               168 ext/gd/libgd/gdtest.c   if (im2 == NULL)
im2               174 ext/gd/libgd/gdtest.c       CompareImages ("GD Source", ref, im2);
im2               175 ext/gd/libgd/gdtest.c       gdImageDestroy (im2);
im2               196 ext/gd/libgd/gdtest.c       im2 = gdImageCreateFromPng (in);
im2               199 ext/gd/libgd/gdtest.c       CompareImages ("GD Sink", ref, im2);
im2               200 ext/gd/libgd/gdtest.c       gdImageDestroy (im2);
im2               214 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromPng (in);
im2               227 ext/gd/libgd/gdtest.c   CompareImages ("GD2Part (gdtest_200_300_150_100.png, gdtest.gd2(part))", im2, im3);
im2               229 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               241 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromPng (in);
im2               250 ext/gd/libgd/gdtest.c   gdImageCopyMerge (im2, im3, 150, 200, 10, 10, 90, 50, 50);
im2               251 ext/gd/libgd/gdtest.c   gdImageCopyMerge (im2, im3, 180, 70, 10, 10, 90, 50, 50);
im2               253 ext/gd/libgd/gdtest.c   gdImageCopyMergeGray (im2, im3, 250, 160, 10, 10, 90, 50, 50);
im2               254 ext/gd/libgd/gdtest.c   gdImageCopyMergeGray (im2, im3, 80, 70, 10, 10, 90, 50, 50);
im2               267 ext/gd/libgd/gdtest.c   printf ("[Merged Image has %d colours]\n", im2->colorsTotal);
im2               268 ext/gd/libgd/gdtest.c   CompareImages ("Merged (gdtest.png, gdtest_merge.png)", im2, im3);
im2               270 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               288 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromJpeg (in);
im2               290 ext/gd/libgd/gdtest.c   if (!im2)
im2               295 ext/gd/libgd/gdtest.c   gdImageDestroy (im2);
im2               326 ext/gd/libgd/gdtest.c       im2 = gdImageCreateFromWBMP (in);
im2               327 ext/gd/libgd/gdtest.c       fprintf (stderr, "WBMP has %d colors\n", gdImageColorsTotal (im2));
im2               329 ext/gd/libgd/gdtest.c       for (i = 0; (i < gdImageColorsTotal (im2)); i++)
im2               332 ext/gd/libgd/gdtest.c 		   gdImageRed (im2, i),
im2               333 ext/gd/libgd/gdtest.c 		   gdImageGreen (im2, i),
im2               334 ext/gd/libgd/gdtest.c 		   gdImageBlue (im2, i));
im2               337 ext/gd/libgd/gdtest.c       if (!im2)
im2               342 ext/gd/libgd/gdtest.c       CompareImages ("WBMP test (gdtest.png, gdtest.wbmp)", ref, im2);
im2               349 ext/gd/libgd/gdtest.c       gdImagePng (im2, out);
im2               351 ext/gd/libgd/gdtest.c       gdImageDestroy (im2);
im2               360 ext/gd/libgd/gdtest.c CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2)
im2               364 ext/gd/libgd/gdtest.c   cmpRes = gdImageCompare (im1, im2);
im2               388 ext/gd/libgd/gdtest.c 	      im1->colorsTotal, im2->colorsTotal);