Add swig interface to libva

parent 80154e6c
Pipeline #1322 passed with stage
in 14 minutes and 15 seconds
......@@ -350,7 +350,7 @@ SWIG_SRC = unix/androidlib.i unix/egl.i unix/gles.i unix/gles3.i unix/gl.i \
unix/soil.i unix/soil2.i unix/xlib.i unix/ios-gles.i unix/ios-gles3.i \
unix/freetype_gl.i unix/wingdi.i unix/winuser.i unix/wayland.i \
unix/gps.i unix/vulkan.i unix/harfbuzz.i unix/gobject.i unix/gst.i \
unix/avcodec.i unix/pulse.i unix/opus.i
unix/avcodec.i unix/pulse.i unix/opus.i unix/va.i
EXTRA_DOC = code.fs objects.fs oof.fs moofglos.fs regexp.fs fft.fs \
@NO_CROSS@ mkdir.fs cilk.fs coverage.fs $(LIBCC_SRC)
......
......@@ -1532,6 +1532,11 @@ if test x$has_swig = xyes || test -f $srcdir/unix/opus-fsi.c; then
AC_CHECK_HEADER(opus/opus.h, SWIGMODULES="$SWIGMODULES opus.fs"
SWIGLIBS="$SWIGLIBS opus.fs",), ,)
fi
if test x$has_swig = xyes || test -f $srcdir/unix/va-fsi.c; then
AC_CHECK_LIB(va,vaCreateContext,
AC_CHECK_HEADER(va/va.h, SWIGMODULES="$SWIGMODULES va.fs"
SWIGLIBS="$SWIGLIBS va.fs",), ,)
fi
if test x$has_swig = xyes || test -f $srcdir/unix/gst-fsi.c; then
CPPFLAGS_1="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS `pkg-config --cflags gstreamer-gl-1.0`"
......
// this file is in the public domain
%module va
%insert("include")
%{
#include <va/va.h>
#include <va/va_backend.h>
%}
%apply long long { int64_t }
// exec: sed -e 's/^c-library/vocabulary va``get-current also va definitions``c-library/g' -e 's/^end-c-library/end-c-library`previous set-current/g' | tr '`' '\n'
// prep: sed -e 's,\(^ *[^} ].*_bit.*$\),// \1,g' -e 's,\(^ *[^} ].*_fields.*$\),// \1,g' -e 's,\(^ *[^} ].*_flags.*$\),// \1,g' -e 's,\(^ *[^} ].*_mb.*$\),// \1,g' -e 's,\(^ *[^} ].*_VAEncFEIMVPredictor.*_ref_idx.*$\),// \1,g' -e 's,\(^ *[^} ].*VADriverVTable.*$\),// \1,g'
%include <va/va.h>
%include <va/va_dec_hevc.h>
%include <va/va_dec_jpeg.h>
%include <va/va_dec_vp8.h>
%include <va/va_dec_vp9.h>
%include <va/va_dec_av1.h>
%include <va/va_enc_hevc.h>
%include <va/va_fei_hevc.h>
%include <va/va_enc_h264.h>
%include <va/va_enc_jpeg.h>
%include <va/va_enc_mpeg2.h>
%include <va/va_enc_vp8.h>
%include <va/va_enc_vp9.h>
%include <va/va_fei.h>
%include <va/va_fei_h264.h>
%include <va/va_vpp.h>
%include <va/va_backend.h>
%include <va/va_backend_wayland.h>
%include <va/va_backend_glx.h>
%include <va/va_backend_vpp.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