diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-06-19 16:24:01 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-06-19 19:14:46 +0200 |
commit | d0b1c20e8d94ed3eabaa6ec07036edad8b32c92a (patch) | |
tree | 4973a50cf898c4df2de72c03d3bff08896f5f4f2 | |
parent | 35ad03baf051304e0c777be194fe0e9df76ecb34 (diff) | |
download | mupdf-d0b1c20e8d94ed3eabaa6ec07036edad8b32c92a.tar.xz |
Move pixmap md5 summing into pixmap.c
-rw-r--r-- | fitz/image_md5.c | 11 | ||||
-rw-r--r-- | fitz/res_pixmap.c | 11 |
2 files changed, 11 insertions, 11 deletions
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); +} |