Skip to content

Commit 01d714b

Browse files
committed
[ePicLoad]
* complete refactor * change code style * add webp support * add more scaling options using libswscale * several fixes and improvements
1 parent bd59bba commit 01d714b

File tree

7 files changed

+1765
-1350
lines changed

7 files changed

+1765
-1350
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ AC_CHECK_LIB([jpeg], [jpeg_set_defaults], [LIBJPEG_LIBS="-ljpeg"], [AC_MSG_ERROR
5353
AC_SUBST(LIBJPEG_LIBS)
5454
AC_CHECK_LIB([ungif], [DGifOpen], [LIBGIF_LIBS="-lungif"], [AC_CHECK_LIB([gif], [DGifOpen], [LIBGIF_LIBS="-lgif"], [AC_MSG_ERROR([Could not find libgif or libungif])])])
5555
AC_SUBST(LIBGIF_LIBS)
56+
AC_CHECK_LIB([webp], [WebPDecodeRGB],[LIBWEBP_LIBS="-lwebp" AC_DEFINE([HAVE_WEBP], [1], [Define if libwebp is available])], [AC_MSG_WARN([Could not find libwebp, WebP support will be disabled.])])
57+
AC_SUBST(LIBWEBP_LIBS)
58+
59+
PKG_CHECK_MODULES([SWSCALE], [libswscale], [
60+
AC_DEFINE([HAVE_SWSCALE], [1], [Define if libswscale is available])
61+
], [
62+
AC_MSG_WARN([Could not find libswscale, scaling support will be disabled.])
63+
])
5664

5765
AC_ARG_WITH(e2rev,
5866
AS_HELP_STRING([--with-e2rev],[value of E2REV, $withval]),

0 commit comments

Comments
 (0)