Commit ae1e8b4a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdpau: VDPAU hardware decoding with avcodec

This requires bleeding-edge libavcodec.
parent b97a1a06
...@@ -2970,6 +2970,44 @@ AS_IF([test "${enable_xcb}" != "no"], [ ...@@ -2970,6 +2970,44 @@ AS_IF([test "${enable_xcb}" != "no"], [
]) ])
AM_CONDITIONAL([HAVE_XCB], [test "${have_xcb}" = "yes"]) AM_CONDITIONAL([HAVE_XCB], [test "${have_xcb}" = "yes"])
dnl
dnl VDPAU needs X11 and avcodec
dnl
AC_ARG_ENABLE(vdpau,
[AS_HELP_STRING([--enable-vdpau],
[VDPAU hardware decoder support (default auto)])])
have_vdpau="no"
AS_IF([test "${enable_vdpau}" != "no"], [
PKG_CHECK_MODULES([VDPAU], [vdpau], [
have_vdpau="yes"
AC_MSG_NOTICE([VDPAU acceleration activated])
], [
AS_IF([test -n "${enable_vdpau}"], [
AC_MSG_ERROR([${VDPAU_PKG_ERRORS}.])
])
])
AS_IF([test "${no_x}" = "yes"], [
AC_MSG_ERROR([VDPAU requires Xlib (X11).])
])
])
dnl AM_CONDITIONAL([HAVE_VDPAU], [test "${have_vdpau}" = "yes"])
have_avcodec_vdpau="no"
AS_IF([test "${have_vdpau}" = "yes"], [
PKG_CHECK_EXISTS([libavutil >= 0.52.4 libavcodec >= 54.36.0], [
have_avcodec_vdpau="yes"
], [
AS_IF([test -n "${enable_vdpau}"], [
AC_MSG_ERROR([libavutil >= 0.52.4 and libavcodec >= 54.36.0 are required for VDPAU decoding.])
], [
AC_MSG_WARN([libavutil >= 0.52.4 and libavcodec >= 54.36.0 are required for VDPAU decoding.])
])
])
])
AM_CONDITIONAL([HAVE_AVCODEC_VDPAU], [test "${have_avcodec_vdpau}" = "yes"])
dnl dnl
dnl SDL module dnl SDL module
dnl dnl
......
...@@ -351,6 +351,7 @@ $Id$ ...@@ -351,6 +351,7 @@ $Id$
* vc1: VC-1 Video demuxer * vc1: VC-1 Video demuxer
* vcd: input module for accessing Video CDs * vcd: input module for accessing Video CDs
* vcdx: input module for accessing Video CDs with navigation & stills * vcdx: input module for accessing Video CDs with navigation & stills
* vdpau: VDPAU hardware-accelerated decoding
* vdummy: dummy video display * vdummy: dummy video display
* visual: visualisation system * visual: visualisation system
* vmem: memory video driver * vmem: memory video driver
......
...@@ -153,6 +153,16 @@ if HAVE_AVCODEC_VDA ...@@ -153,6 +153,16 @@ if HAVE_AVCODEC_VDA
libvlc_LTLIBRARIES += libvda_plugin.la libvlc_LTLIBRARIES += libvda_plugin.la
endif endif
libvdpau_plugin_la_SOURCES = avcodec/vdpau.c
libvdpau_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS) \
$(X_CFLAGS) $(CFLAGS_avcodec)
libvdpau_plugin_la_LIBADD = $(AM_LIBADD) $(VDPAU_LIBS) \
$(X_LIBS) $(X_PRE_LIBS) -lX11 $(LIBS_avcodec)
libvdpau_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_avcodec)
if HAVE_AVCODEC_VDPAU
libvlc_LTLIBRARIES += libvdpau_plugin.la
endif
### XWD ### ### XWD ###
libxwd_plugin_la_SOURCES = xwd.c libxwd_plugin_la_SOURCES = xwd.c
libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS) libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS)
......
This diff is collapsed.
...@@ -352,6 +352,7 @@ modules/codec/avcodec/encoder.c ...@@ -352,6 +352,7 @@ modules/codec/avcodec/encoder.c
modules/codec/avcodec/fourcc.c modules/codec/avcodec/fourcc.c
modules/codec/avcodec/vaapi.c modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vda.c modules/codec/avcodec/vda.c
modules/codec/avcodec/vdpau.c
modules/codec/avcodec/video.c modules/codec/avcodec/video.c
modules/codec/cc.c modules/codec/cc.c
modules/codec/cc.h modules/codec/cc.h
......
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