Initialize vadisplay

parent bdd38a97
Pipeline #1323 passed with stage
in 13 minutes and 10 seconds
......@@ -350,7 +350,8 @@ 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/va.i
unix/avcodec.i unix/pulse.i unix/opus.i unix/va.i unix/va-glx.i \
unix/va-drm.i unix/va-x11.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)
......@@ -373,7 +374,7 @@ MINOS2_SRC = gl-helper.fs gl-terminal.fs jpeg-exif.fs linux-gl.fs \
presentation-support.fs mts-tools.fs mkv-tools.fs omx-example.fs \
mkv-tags.fs android-recorder.fs animation.fs need-x.fs font-style.fs \
text-style.fs gst-helper.fs plot.fs md-viewer.fs md-test.fs \
mem-texture.fs pulse-audio.fs opus-codec.fs
mem-texture.fs pulse-audio.fs opus-codec.fs va.fs
MINOS2_BIN = ascii.png button.png button2.png button3.png bad-gateway.png \
net2o-minos2.png lbubble.png rbubble.png white.png thumb.png
......
......@@ -1537,6 +1537,21 @@ if test x$has_swig = xyes || test -f $srcdir/unix/va-fsi.c; then
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/va-glx-fsi.c; then
AC_CHECK_LIB(va-glx,vaGetDisplayGLX,
AC_CHECK_HEADER(va/va_glx.h, SWIGMODULES="$SWIGMODULES va-glx.fs"
SWIGLIBS="$SWIGLIBS va-glx.fs",), ,)
fi
if test x$has_swig = xyes || test -f $srcdir/unix/va-x11-fsi.c; then
AC_CHECK_LIB(va-x11,vaGetDisplay,
AC_CHECK_HEADER(va/va_x11.h, SWIGMODULES="$SWIGMODULES va-x11.fs"
SWIGLIBS="$SWIGLIBS va-x11.fs",), ,)
fi
if test x$has_swig = xyes || test -f $srcdir/unix/va-drm-fsi.c; then
AC_CHECK_LIB(va-drm,vaGetDisplayDRM,
AC_CHECK_HEADER(va/va_drm.h, SWIGMODULES="$SWIGMODULES va-drm.fs"
SWIGLIBS="$SWIGLIBS va-drm.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`"
......
\ Video Accellerator driver
\ Authors: Bernd Paysan
\ Copyright (C) 2020 Free Software Foundation, Inc.
\ This file is part of Gforth.
\ Gforth is free software; you can redistribute it and/or
\ modify it under the terms of the GNU General Public License
\ as published by the Free Software Foundation, either version 3
\ of the License, or (at your option) any later version.
\ This program is distributed in the hope that it will be useful,
\ but WITHOUT ANY WARRANTY; without even the implied warranty of
\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\ GNU General Public License for more details.
\ You should have received a copy of the GNU General Public License
\ along with this program. If not, see http://www.gnu.org/licenses/.
require unix/va.fs
require unix/va-x11.fs
require unix/va-glx.fs
get-current va also definitions
debug: va( \ )
\ +db va( \ )
$100 buffer: va-error$
: ?va-ior ( n -- )
dup IF [: vaErrorStr va-error$ place
va-error$ "error \ "
! -2 throw ;] do-debug
THEN drop ;
0 Value va-dpy
0 Value profile-list
0 Value profiles#
: va-display ( dpy -- )
{ | w^ major w^ minor }
vaGetDisplay to va-dpy
va-dpy major minor vaInitialize ?va-ior
va( ." VA-API version: " major l@ 0 .r '.' emit minor l@ 0 .r cr
dup vaQueryVendorString type cr )
va-dpy vaMaxNumEntrypoints sfloats allocate throw to profile-list
va-dpy profile-list addr profiles# vaQueryConfigProfiles ?va-ior
;
previous set-current
// this file is in the public domain
%module va_drm
%insert("include")
%{
#include <va/va_drm.h>
%}
%apply long long { int64_t }
%apply SWIGTYPE * { VADisplay };
// exec: sed -e 's/^c-library/get-current also [IFDEF] va va [THEN] definitions``c-library/g' -e 's/^end-c-library/end-c-library`previous set-current/g' -e 's/va_drm"/va-drm"/g' | tr '`' '\n'
%include <va/va_drm.h>
// this file is in the public domain
%module va_glx
%insert("include")
%{
#include <va/va_glx.h>
%}
%apply long long { int64_t }
%apply SWIGTYPE * { VADisplay };
// exec: sed -e 's/^c-library/get-current also [IFDEF] va va [THEN] definitions``c-library/g' -e 's/^end-c-library/end-c-library`previous set-current/g' -e 's/va_glx"/va-glx"/g' | tr '`' '\n'
%include <va/va_glx.h>
// this file is in the public domain
%module va_x11
%insert("include")
%{
#include <va/va_x11.h>
%}
%apply long long { int64_t }
%apply SWIGTYPE * { VADisplay };
// exec: sed -e 's/^c-library/get-current also [IFDEF] va va [THEN] definitions``c-library/g' -e 's/^end-c-library/end-c-library`previous set-current/g' -e 's/va_x11"/va-x11"/g' | tr '`' '\n'
%include <va/va_x11.h>
......@@ -6,9 +6,12 @@
#include <va/va_backend.h>
%}
%apply long long { int64_t }
%apply long long { int64_t };
%apply int { int16_t, int32_t };
%apply unsigned int { uint16_t, uint32_t };
%apply SWIGTYPE * { VADisplay };
// 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'
// exec: sed -e 's/add-lib/add-lib`s" ((struct VAD:x.spx[arg0]" ptr-declare $+[]!/g' -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>
......
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