Skip to content

Commit

Permalink
Merge pull request #701 from MediaArea/decklink
Browse files Browse the repository at this point in the history
Enable capture from Blackmagic DeckLink interface
  • Loading branch information
dericed authored May 30, 2023
2 parents f745a00 + a5cbef7 commit d611acb
Show file tree
Hide file tree
Showing 7 changed files with 938 additions and 14 deletions.
5 changes: 5 additions & 0 deletions Project/GNU/CLI/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ if BUILD_AVFCTL
bin_SCRIPTS += ../../../tools/avfctl/avfctl
endif

if BUILD_DECKLINK
dvrescue_SOURCES += ../../../Source/Common/DecklinkWrapper.cpp \
../../../Source/Common/Output_Mkv.cpp
endif

if BUILD_LNX1394
dvrescue_SOURCES += ../../../Source/Common/LinuxWrapper.cpp
endif
Expand Down
13 changes: 13 additions & 0 deletions Project/GNU/CLI/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dnl -------------------------------------------------------------------------
dnl Test if we are at the good place
dnl
AC_INIT(../../../Source/CLI/CLI_Main.cpp)
AC_LANG([C++])

dnl -------------------------------------------------------------------------
dnl sets build, host, target variables and the same with _alias
Expand Down Expand Up @@ -50,13 +51,15 @@ AC_ARG_ENABLE(arch-x86_64, AC_HELP_STRING([--enable-arch-x86_64], [Cre
AC_ARG_ENABLE(staticlibs, AC_HELP_STRING([--enable-staticlibs], [Use static libmediainfo and libzen]), , enable_staticlibs=no)
AC_ARG_ENABLE(avfctl, AC_HELP_STRING([--enable-avfctl], [Build avfctl tool (macOS only)]), , enable_avfctl=yes)
AC_ARG_ENABLE(capture, AC_HELP_STRING([--enable-capture], [Use libavc1394 and libdc1394 for capture support on linux]), , enable_capture=yes)
AC_ARG_ENABLE(decklink, AC_HELP_STRING([--enable-decklink], [Enable capture from Blackmagic capture devices]), , enable_decklink=no)

dnl -------------------------------------------------------------------------
dnl Arguments - With
dnl
AC_ARG_WITH(macosx-sdk, AC_HELP_STRING([--with-macosx-sdk], [Force the Mac SDK]), , with_macosx_sdk=no)
AC_ARG_WITH(macosx-version-min, AC_HELP_STRING([--with-macosx-version-min], [Force the Mac Version]), , with_macosx_version_min=no)
AC_ARG_WITH(dll, AC_HELP_STRING([--with-dll], [Do not link to libmediainfo, dynamic loading]), , with_dll=no)
AC_ARG_WITH(decklink-sdk, AC_HELP_STRING([--with-decklink-sdk], [Path of the decklink SDK]), , with_decklink_sdk=no)

dnl #########################################################################
dnl ### Options from elsewhere
Expand Down Expand Up @@ -99,6 +102,16 @@ if test "$host_macos" = "yes" -a "$enable_avfctl" = "yes" ; then
AC_DEFINE(ENABLE_AVFCTL)
fi

AM_CONDITIONAL([BUILD_DECKLINK], [test "$host_macos" = "yes" -a "$enable_decklink" = "yes"])
if test "$host_macos" = "yes" -a "$enable_decklink" = "yes" ; then
AC_DEFINE(ENABLE_CAPTURE)
AC_DEFINE(ENABLE_DECKLINK)
if test "$with_decklink_sdk" != "no" ; then
CXXFLAGS="$CXXFLAGS -I$with_decklink_sdk/include"
fi
AC_CHECK_HEADERS([DeckLinkAPI.h], , [AC_MSG_ERROR([Blackmagic DeckLink SDK is not found])])
fi

dnl #########################################################################
dnl ### MediaInfo flags
dnl #########################################################################
Expand Down
Loading

0 comments on commit d611acb

Please sign in to comment.