lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.05-pre 47 lines 1.6 kB view raw
1From 53ce5fe7e73d7ed95c9e12b52dd4984723f865fa Mon Sep 17 00:00:00 2001 2From: =?UTF-8?q?Zdenko=20Podobn=C3=BD?= <zdenop@gmail.com> 3Date: Sun, 6 Apr 2014 21:25:27 +0200 4Subject: [PATCH] fix build with leptonica 1.70 5 6--- 7 configure.ac | 1 + 8 src/jbig2.cc | 13 +++++++++---- 9 2 files changed, 10 insertions(+), 4 deletions(-) 10 11diff --git a/configure.ac b/configure.ac 12index fe37c22..753a607 100644 13--- a/configure.ac 14+++ b/configure.ac 15@@ -55,6 +55,7 @@ AC_CHECK_LIB([lept], [findFileFormatStream], [], [ 16 echo "Error! Leptonica not detected." 17 exit -1 18 ]) 19+AC_CHECK_FUNCS(expandBinaryPower2Low,,) 20 # test for function - it should detect leptonica dependecies 21 22 # Check for possible dependancies of leptonica. 23diff --git a/src/jbig2.cc b/src/jbig2.cc 24index e10f042..515c1ef 100644 25--- a/src/jbig2.cc 26+++ b/src/jbig2.cc 27@@ -130,11 +130,16 @@ segment_image(PIX *pixb, PIX *piximg) { 28 // input color image, so we have to do it this way... 29 // is there a better way? 30 // PIX *pixd = pixExpandBinary(pixd4, 4); 31- PIX *pixd = pixCreate(piximg->w, piximg->h, 1); 32- pixCopyResolution(pixd, piximg); 33- if (verbose) pixInfo(pixd, "mask image: "); 34- expandBinaryPower2Low(pixd->data, pixd->w, pixd->h, pixd->wpl, 35+ PIX *pixd; 36+#ifdef HAVE_EXPANDBINARYPOWER2LOW 37+ pixd = pixCreate(piximg->w, piximg->h, 1); 38+ pixCopyResolution(pixd, piximg); 39+ expandBinaryPower2Low(pixd->data, pixd->w, pixd->h, pixd->wpl, 40 pixd4->data, pixd4->w, pixd4->h, pixd4->wpl, 4); 41+#else 42+ pixd = pixExpandBinaryPower2(pixd4, 4); 43+#endif 44+ if (verbose) pixInfo(pixd, "mask image: "); 45 46 pixDestroy(&pixd4); 47 pixDestroy(&pixsf4);