[FFmpeg-devel] [PATCH]Possible configure support for VDPAU
Carl Eugen Hoyos
cehoyos
Mon Jan 5 03:18:03 CET 2009
Hi!
Attached patch implements configure (and shared library) support for
VDPAU.
If the library is compiled on a system where no VDPAU headers are
installed, it cannot use VDPAU. Still, this patch installs a (possibly
useless) vdpau_render.h. Is this wanted?
configure does not die if --enable-vdpau was used, but the necessary
headers are missing, but simply disables vdpau.
Carl Eugen
-------------- next part --------------
Index: configure
===================================================================
--- configure (revision 16431)
+++ configure (working copy)
@@ -84,6 +84,7 @@
echo " --enable-beosthreads use BeOS threads [no]"
echo " --enable-os2threads use OS/2 threads [no]"
echo " --enable-pthreads use pthreads [no]"
+ echo " --enable-vdpau enable VDPAU support [no]"
echo " --enable-w32threads use Win32 threads [no]"
echo " --enable-x11grab enable X11 grabbing [no]"
echo " --enable-xvmc enable XvMC support [no]"
@@ -776,6 +777,7 @@
small
static
swscale
+ vdpau
vhook
x11grab
xvmc
@@ -1041,6 +1043,7 @@
libx264_encoder_deps="libx264"
libxvid_encoder_deps="libxvid"
mpeg4aac_decoder_deps="libfaad"
+vdpau_deps="vdpau_vdpau_h vdpau_vdpau_x11_h"
# demuxers / muxers
ac3_demuxer_deps="ac3_parser"
@@ -1827,6 +1830,8 @@
check_header sys/select.h
check_header termios.h
check_header X11/extensions/XvMClib.h
+check_header vdpau/vdpau.h
+check_header vdpau/vdpau_x11.h
if ! enabled_any memalign memalign_hack && enabled need_memalign ; then
die "Error, no memalign() but SSE enabled, disable it or use --enable-memalign-hack."
@@ -2191,6 +2196,7 @@
echo "libvorbis enabled ${libvorbis-no}"
echo "libx264 enabled ${libx264-no}"
echo "libxvid enabled ${libxvid-no}"
+echo "vdpau enabled ${vdpau-no}"
echo "zlib enabled ${zlib-no}"
echo "bzlib enabled ${bzlib-no}"
echo
Index: libavcodec/Makefile
===================================================================
--- libavcodec/Makefile (revision 16431)
+++ libavcodec/Makefile (working copy)
@@ -3,7 +3,7 @@
NAME = avcodec
FFLIBS = avutil
-HEADERS = avcodec.h opt.h
+HEADERS = avcodec.h opt.h vdpau_render.h
OBJS = allcodecs.o \
audioconvert.o \
More information about the ffmpeg-devel
mailing list