Commit bdb1d86a authored by Julian Scheel's avatar Julian Scheel Committed by Rémi Denis-Courmont

mmal: Move codec plugin into hw/mmal module

The mmal codec plugin is built as a part of the mmal module now. This drops
the ability to en-/disable codec support independently from the vout, but in
fact currently there is no mmal implementation which wouldn't support both
modules, so it seems sane to build them together as this unclutters the
configure scripts a little.
Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 1d2b56c6
...@@ -2151,33 +2151,6 @@ then ...@@ -2151,33 +2151,6 @@ then
VLC_ADD_CFLAGS([omxil omxil_vout],[-DRPI_OMX]) VLC_ADD_CFLAGS([omxil omxil_vout],[-DRPI_OMX])
fi fi
dnl
dnl MMAL codec plugin
dnl
AC_ARG_ENABLE(mmal-codec,
AS_HELP_STRING([--enable-mmal-codec],
[Multi-Media Abstraction Layer (MMAL) based codec plugin for Raspberry Pi (default enable)]))
if test "${enable_mmal_codec}" != "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, bcm_host_init, [
VLC_ADD_PLUGIN([mmal_codec])
VLC_ADD_LDFLAGS([mmal_codec],[ -L/opt/vc/lib ])
VLC_ADD_CFLAGS([mmal_codec],[ -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux ])
VLC_ADD_LIBS([mmal_codec],[ -lbcm_host -lmmal ]) ], [
AS_IF([test "${enable_mmal_codec}" = "yes"],
[ AC_MSG_ERROR([Cannot find bcm library...]) ],
[ AC_MSG_WARN([Cannot find bcm library...]) ])
],
[])
] , [ AS_IF([test "${enable_mmal_codec}" = "yes"],
[ AC_MSG_ERROR([Cannot find development headers for mmal...]) ],
[ AC_MSG_WARN([Cannot find development headers for mmal...]) ]) ])
VLC_RESTORE_FLAGS
fi
dnl dnl
dnl CrystalHD codec plugin dnl CrystalHD codec plugin
dnl dnl
......
...@@ -389,16 +389,6 @@ codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la ...@@ -389,16 +389,6 @@ codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
endif endif
### MMAL ###
libmmal_codec_plugin_la_SOURCES = codec/mmal.c
libmmal_codec_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal_codec)
libmmal_codec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' $(LDFLAGS_mmal_codec)
libmmal_codec_plugin_la_LIBADD = $(LIBS_mmal_codec)
EXTRA_LTLIBRARIES += libmmal_codec_plugin.la
codec_LTLIBRARIES += $(LTLIBmmal_codec)
### X26x encoders ### ### X26x encoders ###
libx265_plugin_la_SOURCES = codec/x265.c libx265_plugin_la_SOURCES = codec/x265.c
......
include $(top_srcdir)/modules/common.am include $(top_srcdir)/modules/common.am
mmaldir = $(pluginsdir)/mmal mmaldir = $(pluginsdir)/mmal
AM_CFLAGS += $(CFLAGS_mmal)
AM_LDFLAGS += -rpath '$(mmaldir)' $(LDFLAGS_mmal)
libmmal_vout_plugin_la_SOURCES = vout.c libmmal_vout_plugin_la_SOURCES = vout.c
libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal) libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS)
libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(mmaldir)' $(LDFLAGS_mmal) -lm libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -lm
libmmal_vout_plugin_la_LIBADD = $(LIBS_mmal) libmmal_vout_plugin_la_LIBADD = $(LIBS_mmal)
mmal_LTLIBRARIES = libmmal_vout_plugin.la mmal_LTLIBRARIES = libmmal_vout_plugin.la
libmmal_codec_plugin_la_SOURCES = codec.c
libmmal_codec_plugin_la_CFLAGS = $(AM_CFLAGS)
libmmal_codec_plugin_la_LDFLAGS = $(AM_LDFLAGS)
libmmal_codec_plugin_la_LIBADD = $(LIBS_mmal)
mmal_LTLIBRARIES += libmmal_codec_plugin.la
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment