Browse Source

mmal: Move video_output plugin into hw/mmal module

As the mmal modules will require some shared code in the future move them out
of the split directory structure into a hw/mmal subdirectory, like it
is handled with vdpau plugins already.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
pull/24/head
Julian Scheel 12 years ago
committed by Rémi Denis-Courmont
parent
commit
1d2b56c68b
  1. 25
      configure.ac
  2. 6
      modules/Makefile.am
  3. 8
      modules/hw/mmal/Makefile.am
  4. 0
      modules/hw/mmal/vout.c
  5. 8
      modules/video_output/Modules.am

25
configure.ac

@ -3515,31 +3515,33 @@ AC_SUBST(KVA_LIBS)
AM_CONDITIONAL([HAVE_KVA], [test "${have_kva}" = "yes"])
dnl
dnl MMAL vout plugin
dnl MMAL plugin
dnl
AC_ARG_ENABLE(mmal-vout,
AS_HELP_STRING([--enable-mmal-vout],
[Multi-Media Abstraction Layer (MMAL) based vout plugin for Raspberry Pi (default enable)]))
if test "${enable_mmal_vout}" != "no"; then
AC_ARG_ENABLE(mmal,
AS_HELP_STRING([--enable-mmal],
[Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)]))
if test "${enable_mmal}" != "no"; then
VLC_SAVE_FLAGS
LDFLAGS="${LDFLAGS} -L/opt/vc/lib"
CPPFLAGS="${CPPFLAGS} -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
AC_CHECK_HEADERS(interface/mmal/mmal.h,
[ AC_CHECK_LIB(bcm_host, vc_tv_unregister_callback_full, [
VLC_ADD_PLUGIN([mmal_vout])
VLC_ADD_LDFLAGS([mmal_vout],[ -L/opt/vc/lib ])
VLC_ADD_CFLAGS([mmal_vout],[ -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux ])
VLC_ADD_LIBS([mmal_vout],[ -lbcm_host -lmmal ]) ], [
AS_IF([test "${enable_mmal_vout}" = "yes"],
have_mmal="yes"
VLC_ADD_PLUGIN([mmal])
VLC_ADD_LDFLAGS([mmal],[ -L/opt/vc/lib ])
VLC_ADD_CFLAGS([mmal],[ -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux ])
VLC_ADD_LIBS([mmal],[ -lbcm_host -lmmal ]) ], [
AS_IF([test "${enable_mmal}" = "yes"],
[ AC_MSG_ERROR([Cannot find bcm library...]) ],
[ AC_MSG_WARN([Cannot find bcm library...]) ])
],
[])
] , [ AS_IF([test "${enable_mmal_vout}" = "yes"],
] , [ AS_IF([test "${enable_mmal}" = "yes"],
[ AC_MSG_ERROR([Cannot find development headers for mmal...]) ],
[ AC_MSG_WARN([Cannot find development headers for mmal...]) ]) ])
VLC_RESTORE_FLAGS
fi
AM_CONDITIONAL([HAVE_MMAL], [test "${have_mmal}" = "yes"])
dnl
dnl Audio plugins
@ -4263,6 +4265,7 @@ AC_CONFIG_FILES([
modules/video_output/Makefile
modules/visualization/Makefile
modules/hw/vdpau/Makefile
modules/hw/mmal/Makefile
])
AM_COND_IF([HAVE_WIN32], [

6
modules/Makefile.am

@ -16,7 +16,8 @@ EXTRA_SUBDIRS = \
access_output \
mux \
stream_out \
hw/vdpau
hw/vdpau \
hw/mmal
SUBDIRS = . $(BASE_SUBDIRS)
DIST_SUBDIRS = . $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
@ -26,6 +27,9 @@ endif
if HAVE_VDPAU
SUBDIRS += hw/vdpau
endif
if HAVE_MMAL
SUBDIRS += hw/mmal
endif
TESTS =

8
modules/hw/mmal/Makefile.am

@ -0,0 +1,8 @@
include $(top_srcdir)/modules/common.am
mmaldir = $(pluginsdir)/mmal
libmmal_vout_plugin_la_SOURCES = vout.c
libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal)
libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(mmaldir)' $(LDFLAGS_mmal) -lm
libmmal_vout_plugin_la_LIBADD = $(LIBS_mmal)
mmal_LTLIBRARIES = libmmal_vout_plugin.la

0
modules/video_output/mmal.c → modules/hw/mmal/vout.c

8
modules/video_output/Modules.am

@ -251,14 +251,6 @@ libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libcaca_plugin.la
vout_LTLIBRARIES += $(LTLIBcaca)
### MMAL ###
libmmal_vout_plugin_la_SOURCES = mmal.c
libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal_vout)
libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' $(LDFLAGS_mmal_vout) -lm
libmmal_vout_plugin_la_LIBADD = $(LIBS_mmal_vout)
EXTRA_LTLIBRARIES += libmmal_vout_plugin.la
vout_LTLIBRARIES += $(LTLIBmmal_vout)
### Common ###
libvdummy_plugin_la_SOURCES = vdummy.c

Loading…
Cancel
Save