summaryrefslogtreecommitdiff
path: root/fitz/image_md5.c
blob: 3e479d690a1495cfc94765612451bcb653f2428b (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "mupdf/fitz-internal.h"

void fz_md5_pixmap(fz_pixmap *pix, unsigned char digest[16])
{
	fz_md5 md5;

	fz_md5_init(&md5);
	if (pix)
		fz_md5_update(&md5, pix->samples, pix->w * pix->h * pix->n);
	fz_md5_final(&md5, digest);
}