diff options
author | popcornmix <popcornmix@gmail.com> | 2014-09-10 21:35:12 +0100 |
---|---|---|
committer | popcornmix <popcornmix@gmail.com> | 2014-10-02 15:52:18 +0100 |
commit | 3a9e558d0ca886838b2c358e43ac53d9192bdc08 (patch) | |
tree | f655580362d42c320aa709c87437afbebddbae26 /configure.in | |
parent | 9a71c809465bb27d7f823f6a4242861adc9f8250 (diff) |
[mmal] Add MMAL decoder and MMAL renderer for Raspberry Pi
While omxplayer is the best performing player on the Pi (and the only option for raw Blu-Rays)
there are some reasons to use dvdplayer on a Pi:
DVDs with menus do not work well with omxplayer
support of software decode for SD codecs like divx3, msmpeg, sorenson spark etc
omxplayer doesn't support alsa, so can't be used with USB and I2S sound cards
dvdplayer may behave better with dodgy timestamps and packet loss, e.g. with live TV
So this PR adds hardware acceleration to dvdplayer using the MMAL api.
There is also a MMAL based video renderer. Compared to using GL, this:
saves the processing cost of YUV->RGB conversion
saves the memory cost of the RGB textures for video frames (1080p = 3MB for YUV and 8MB for RGB)
allows high quality (cubic) scaling
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 50eb8b4722..802697903b 100644 --- a/configure.in +++ b/configure.in @@ -721,6 +721,7 @@ case $use_platform in ARCH="arm" AC_DEFINE(HAS_EGLGLES, [1], [Define if supporting EGL based GLES Framebuffer]) USE_OMXLIB=1; AC_DEFINE([HAVE_OMXLIB],[1],["Define to 1 if OMX libs is enabled"]) + USE_MMAL=1; AC_DEFINE([HAS_MMAL],[1],["Define to 1 if MMAL libs is enabled"]) CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" ;; @@ -1010,7 +1011,7 @@ if test "$use_gles" = "yes"; then AC_DEFINE([HAVE_LIBEGL],[1],["Define to 1 if you have the `EGL' library (-lEGL)."]) AC_DEFINE([HAVE_LIBGLESV2],[1],["Define to 1 if you have the `GLESv2' library (-lGLESv2)."]) AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.) - LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm" + LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lmmal -lmmal_core -lmmal_util" else AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library)) AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library)) @@ -2584,6 +2585,7 @@ AC_SUBST(USE_DOXYGEN) AC_SUBST(USE_PVR_ADDONS) AC_SUBST(UPNP_DEFINES) AC_SUBST(USE_SSE4) +AC_SUBST(USE_MMAL) # pushd and popd are not available in other shells besides bash, so implement # our own pushd/popd functions |