提交 ecab16ed authored 作者: Seven Du's avatar Seven Du 提交者: Michael Jerris

FS-7516: add mod_imagick

use the magick-core API
We have pdfs and gifs
auto play gif and png
yeah, you can play video files with imgk

video only
requires ffmpeg binary
need autoplay=(1000/FPS)
上级 f364a419
......@@ -111,6 +111,7 @@ event_handlers/mod_event_socket
#event_handlers/mod_odbc_cdr
#event_handlers/mod_rayo
#event_handlers/mod_snmp
#formats/mod_imagick
formats/mod_local_stream
formats/mod_native_file
#formats/mod_portaudio_stream
......
......@@ -1256,6 +1256,10 @@ PKG_CHECK_MODULES([OPENCV], [opencv >= 2.4.9.1],[
AM_CONDITIONAL([HAVE_OPENCV],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_OPENCV],[false])])
PKG_CHECK_MODULES([MAGICK], [ImageMagick >= 6.0.0],[
AM_CONDITIONAL([HAVE_MAGICK],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_MAGICK],[false])])
PKG_CHECK_MODULES([MEMCACHED], [libmemcached >= 0.31],[
AM_CONDITIONAL([HAVE_MEMCACHED],[true])
MEMCACHED_LIBS="${MEMCACHED_LIBS} -lpthread"
......@@ -1643,6 +1647,7 @@ AC_CONFIG_FILES([Makefile
src/mod/event_handlers/mod_snmp/Makefile
src/mod/event_handlers/mod_event_zmq/Makefile
src/mod/formats/mod_avformat/Makefile
src/mod/formats/mod_imagick/Makefile
src/mod/formats/mod_local_stream/Makefile
src/mod/formats/mod_native_file/Makefile
src/mod/formats/mod_shell_stream/Makefile
......
include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_imagick
if HAVE_MAGICK
mod_LTLIBRARIES = mod_imagick.la
mod_imagick_la_SOURCES = mod_imagick.c
mod_imagick_la_CFLAGS = $(AM_CFLAGS) $(MAGICK_CFLAGS)
mod_imagick_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(MAGICK_LIBS)
mod_imagick_la_LDFLAGS = -avoid-version -module -no-undefined -shared
else
install: error
all: error
error:
$(error You must install libmagickcore-dev to build mod_imagick)
endif
#Mac
#LOCAL_CFLAGS=-I/usr/local/Cellar/imagemagick/6.8.9-8/include/ImageMagick-6
#LOCAL_LDFLAGS=-L/usr/local/Cellar/imagemagick/6.8.9-8/lib -lMagickCore-6.Q16
LOCAL_CFLAGS=-I/usr/include/ImageMagick
LOCAL_LDFLAGS=-L/usr/lib/x86_64-linux-gnu -lMagickCore
BASE=../../../..
include $(BASE)/build/modmake.rules
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论