Mercurial > hg > forks > geeqie
diff configure.in @ 2673:bef1f1a91df9
Fix #541: Showing existing, or maybe generating thumbnails for MP4 and WEBM
https://github.com/BestImageViewer/geeqie/issues/541
Preview and thumbnails of video clips can be displayed. Clips can be run via a defined external program
author | Tomasz Golinski <tomaszg@math.uwb.edu.pl> |
---|---|
date | Fri, 24 Nov 2017 10:27:12 +0000 |
parents | 0dc5dd177e54 |
children | 00da4e1bf128 10ca4efb9d48 66ce340f0cd9 4903104ff447 |
line wrap: on
line diff
--- a/configure.in Fri Nov 24 10:07:58 2017 +0000 +++ b/configure.in Fri Nov 24 10:27:12 2017 +0000 @@ -366,6 +366,32 @@ AC_SUBST(TIFF_CFLAGS) AC_SUBST(TIFF_LIBS) +# libffmpegthumbnailer support +# ---------------------------------------------------------------------- + +AC_ARG_ENABLE([ffmpegthumbnailer], + AC_HELP_STRING([--disable-ffmpegthumbnailer], [disable ffmpegthumbnailer support for generating thumbnails of video files]), + [ffmpegthumbnailer=$enableval], [ffmpegthumbnailer=auto]) + +if test "x${ffmpegthumbnailer}" != "xno"; then + PKG_CHECK_MODULES(FFMPEGTHUMBNAILER, [libffmpegthumbnailer >= 2.0.0], + [ + HAVE_FFMPEGTHUMBNAILER=yes + AC_DEFINE(HAVE_FFMPEGTHUMBNAILER, 1, [define to enable ffmpegthumbnailer support]) + AC_CHECK_MEMBER([video_thumbnailer.prefer_embedded_metadata], [AC_DEFINE(HAVE_FFMPEGTHUMBNAILER_METADATA, 1, [define if ffmpegthumbnailer supports embedded metadata])], [], [[#include <libffmpegthumbnailer/videothumbnailerc.h>]]) + AC_CHECK_MEMBER([image_data.image_data_width], [AC_DEFINE(HAVE_FFMPEGTHUMBNAILER_RGB, 1, [define if ffmpegthumbnailer supports raw RGB output])], [], [[#include <libffmpegthumbnailer/videothumbnailerc.h>]]) + AC_CHECK_LIB([ffmpegthumbnailer], [video_thumbnailer_set_size], [AC_DEFINE(HAVE_FFMPEGTHUMBNAILER_WH, 1, [define if ffmpegthumbnailer supports specifying size by width/height])]) + ], + [ + HAVE_FFMPEGTHUMBNAILER=no + ]) +else + HAVE_FFMPEGTHUMBNAILER=disabled +fi + +AM_CONDITIONAL(HAVE_FFMPEGTHUMBNAILER, [test "x$HAVE_FFMPEGTHUMBNAILER" = xyes]) +AC_SUBST(FFMPEGTHUMBNAILER_CFLAGS) +AC_SUBST(FFMPEGTHUMBNAILER_LIBS) # Exiv2 support # ---------------------------------------------------------------------- @@ -613,6 +639,7 @@ Libchamplain: $HAVE_LIBCHAMPLAIN Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK Lua: $HAVE_LUA + FFmpegthumbnailer: $HAVE_FFMPEGTHUMBNAILER Documentation: Doxygen: $DX_DOXYGEN