From d0b1c20e8d94ed3eabaa6ec07036edad8b32c92a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 19 Jun 2013 16:24:01 +0200 Subject: Move pixmap md5 summing into pixmap.c --- fitz/image_md5.c | 11 ----------- fitz/res_pixmap.c | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 fitz/image_md5.c (limited to 'fitz') diff --git a/fitz/image_md5.c b/fitz/image_md5.c deleted file mode 100644 index aea290ec..00000000 --- a/fitz/image_md5.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "mupdf/fitz.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); -} diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c index 1d3d536f..7391c17e 100644 --- a/fitz/res_pixmap.c +++ b/fitz/res_pixmap.c @@ -1049,3 +1049,14 @@ fz_pixmap_set_resolution(fz_pixmap *pix, int res) pix->xres = res; pix->yres = res; } + +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); +} -- cgit v1.2.3