forked from KolibriOS/kolibrios
sdk: build libva
git-svn-id: svn://kolibrios.org@5362 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
87
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/Makefile.am
Normal file
87
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/Makefile.am
Normal file
@@ -0,0 +1,87 @@
|
||||
# Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the
|
||||
# "Software"), to deal in the Software without restriction, including
|
||||
# without limitation the rights to use, copy, modify, merge, publish,
|
||||
# distribute, sub license, and/or sell copies of the Software, and to
|
||||
# permit persons to whom the Software is furnished to do so, subject to
|
||||
# the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the
|
||||
# next paragraph) shall be included in all copies or substantial portions
|
||||
# of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
test_01 \
|
||||
test_02 \
|
||||
test_03 \
|
||||
test_04 \
|
||||
test_05 \
|
||||
test_06 \
|
||||
test_07 \
|
||||
test_08 \
|
||||
test_09 \
|
||||
test_10 \
|
||||
test_11 \
|
||||
$(NULL)
|
||||
|
||||
AM_CFLAGS = \
|
||||
-DIN_LIBVA \
|
||||
-I$(top_srcdir) \
|
||||
$(X11_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
TEST_LIBS = \
|
||||
$(top_builddir)/va/libva.la \
|
||||
$(top_builddir)/va/libva-x11.la \
|
||||
$(X11_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
test_01_LDADD = $(TEST_LIBS)
|
||||
test_01_SOURCES = test_01.c
|
||||
|
||||
test_02_LDADD = $(TEST_LIBS)
|
||||
test_02_SOURCES = test_02.c
|
||||
|
||||
test_03_LDADD = $(TEST_LIBS)
|
||||
test_03_SOURCES = test_03.c
|
||||
|
||||
test_04_LDADD = $(TEST_LIBS)
|
||||
test_04_SOURCES = test_04.c
|
||||
|
||||
test_05_LDADD = $(TEST_LIBS)
|
||||
test_05_SOURCES = test_05.c
|
||||
|
||||
test_06_LDADD = $(TEST_LIBS)
|
||||
test_06_SOURCES = test_06.c
|
||||
|
||||
test_07_LDADD = $(TEST_LIBS)
|
||||
test_07_SOURCES = test_07.c
|
||||
|
||||
test_08_LDADD = $(TEST_LIBS)
|
||||
test_08_SOURCES = test_08.c
|
||||
|
||||
test_09_LDADD = $(TEST_LIBS)
|
||||
test_09_SOURCES = test_09.c
|
||||
|
||||
test_10_LDADD = $(TEST_LIBS)
|
||||
test_10_SOURCES = test_10.c
|
||||
|
||||
test_11_LDADD = $(TEST_LIBS)
|
||||
test_11_SOURCES = test_11.c
|
||||
|
||||
EXTRA_DIST = test_common.c test_x11.c
|
||||
|
||||
valgrind: $(noinst_PROGRAMS)
|
||||
for a in $(noinst_PROGRAMS); do \
|
||||
valgrind --leak-check=full --show-reachable=yes .libs/$$a; \
|
||||
done
|
761
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/Makefile.in
Normal file
761
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/Makefile.in
Normal file
@@ -0,0 +1,761 @@
|
||||
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the
|
||||
# "Software"), to deal in the Software without restriction, including
|
||||
# without limitation the rights to use, copy, modify, merge, publish,
|
||||
# distribute, sub license, and/or sell copies of the Software, and to
|
||||
# permit persons to whom the Software is furnished to do so, subject to
|
||||
# the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the
|
||||
# next paragraph) shall be included in all copies or substantial portions
|
||||
# of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
noinst_PROGRAMS = test_01$(EXEEXT) test_02$(EXEEXT) test_03$(EXEEXT) \
|
||||
test_04$(EXEEXT) test_05$(EXEEXT) test_06$(EXEEXT) \
|
||||
test_07$(EXEEXT) test_08$(EXEEXT) test_09$(EXEEXT) \
|
||||
test_10$(EXEEXT) test_11$(EXEEXT)
|
||||
subdir = test/basic
|
||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||
$(top_srcdir)/depcomp
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
PROGRAMS = $(noinst_PROGRAMS)
|
||||
am_test_01_OBJECTS = test_01.$(OBJEXT)
|
||||
test_01_OBJECTS = $(am_test_01_OBJECTS)
|
||||
am__DEPENDENCIES_1 =
|
||||
am__DEPENDENCIES_2 = $(top_builddir)/va/libva.la \
|
||||
$(top_builddir)/va/libva-x11.la $(am__DEPENDENCIES_1)
|
||||
test_01_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
am__v_lt_0 = --silent
|
||||
am__v_lt_1 =
|
||||
am_test_02_OBJECTS = test_02.$(OBJEXT)
|
||||
test_02_OBJECTS = $(am_test_02_OBJECTS)
|
||||
test_02_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_03_OBJECTS = test_03.$(OBJEXT)
|
||||
test_03_OBJECTS = $(am_test_03_OBJECTS)
|
||||
test_03_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_04_OBJECTS = test_04.$(OBJEXT)
|
||||
test_04_OBJECTS = $(am_test_04_OBJECTS)
|
||||
test_04_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_05_OBJECTS = test_05.$(OBJEXT)
|
||||
test_05_OBJECTS = $(am_test_05_OBJECTS)
|
||||
test_05_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_06_OBJECTS = test_06.$(OBJEXT)
|
||||
test_06_OBJECTS = $(am_test_06_OBJECTS)
|
||||
test_06_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_07_OBJECTS = test_07.$(OBJEXT)
|
||||
test_07_OBJECTS = $(am_test_07_OBJECTS)
|
||||
test_07_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_08_OBJECTS = test_08.$(OBJEXT)
|
||||
test_08_OBJECTS = $(am_test_08_OBJECTS)
|
||||
test_08_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_09_OBJECTS = test_09.$(OBJEXT)
|
||||
test_09_OBJECTS = $(am_test_09_OBJECTS)
|
||||
test_09_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_10_OBJECTS = test_10.$(OBJEXT)
|
||||
test_10_OBJECTS = $(am_test_10_OBJECTS)
|
||||
test_10_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
am_test_11_OBJECTS = test_11.$(OBJEXT)
|
||||
test_11_OBJECTS = $(am_test_11_OBJECTS)
|
||||
test_11_DEPENDENCIES = $(am__DEPENDENCIES_2)
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CFLAGS) $(CFLAGS)
|
||||
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||
am__v_CC_0 = @echo " CC " $@;
|
||||
am__v_CC_1 =
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(test_01_SOURCES) $(test_02_SOURCES) $(test_03_SOURCES) \
|
||||
$(test_04_SOURCES) $(test_05_SOURCES) $(test_06_SOURCES) \
|
||||
$(test_07_SOURCES) $(test_08_SOURCES) $(test_09_SOURCES) \
|
||||
$(test_10_SOURCES) $(test_11_SOURCES)
|
||||
DIST_SOURCES = $(test_01_SOURCES) $(test_02_SOURCES) \
|
||||
$(test_03_SOURCES) $(test_04_SOURCES) $(test_05_SOURCES) \
|
||||
$(test_06_SOURCES) $(test_07_SOURCES) $(test_08_SOURCES) \
|
||||
$(test_09_SOURCES) $(test_10_SOURCES) $(test_11_SOURCES)
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DOXYGEN = @DOXYGEN@
|
||||
DRM_CFLAGS = @DRM_CFLAGS@
|
||||
DRM_LIBS = @DRM_LIBS@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGL_CFLAGS = @EGL_CFLAGS@
|
||||
EGL_LIBS = @EGL_LIBS@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GLX_CFLAGS = @GLX_CFLAGS@
|
||||
GLX_LIBS = @GLX_LIBS@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBDRM_VERSION = @LIBDRM_VERSION@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVA_DRIVERS_PATH = @LIBVA_DRIVERS_PATH@
|
||||
LIBVA_LT_LDFLAGS = @LIBVA_LT_LDFLAGS@
|
||||
LIBVA_LT_VERSION = @LIBVA_LT_VERSION@
|
||||
LIBVA_MAJOR_VERSION = @LIBVA_MAJOR_VERSION@
|
||||
LIBVA_MICRO_VERSION = @LIBVA_MICRO_VERSION@
|
||||
LIBVA_MINOR_VERSION = @LIBVA_MINOR_VERSION@
|
||||
LIBVA_VERSION = @LIBVA_VERSION@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
TODAY = @TODAY@
|
||||
VA_API_MAJOR_VERSION = @VA_API_MAJOR_VERSION@
|
||||
VA_API_MICRO_VERSION = @VA_API_MICRO_VERSION@
|
||||
VA_API_MINOR_VERSION = @VA_API_MINOR_VERSION@
|
||||
VA_API_VERSION = @VA_API_VERSION@
|
||||
VERSION = @VERSION@
|
||||
WAYLAND_API_VERSION = @WAYLAND_API_VERSION@
|
||||
WAYLAND_CFLAGS = @WAYLAND_CFLAGS@
|
||||
WAYLAND_LIBS = @WAYLAND_LIBS@
|
||||
WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
|
||||
WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
|
||||
X11_CFLAGS = @X11_CFLAGS@
|
||||
X11_LIBS = @X11_LIBS@
|
||||
XEXT_CFLAGS = @XEXT_CFLAGS@
|
||||
XEXT_LIBS = @XEXT_LIBS@
|
||||
XFIXES_CFLAGS = @XFIXES_CFLAGS@
|
||||
XFIXES_LIBS = @XFIXES_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgconfigdir = @pkgconfigdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
wayland_protocoldir = @wayland_protocoldir@
|
||||
wayland_scanner = @wayland_scanner@
|
||||
AM_CFLAGS = \
|
||||
-DIN_LIBVA \
|
||||
-I$(top_srcdir) \
|
||||
$(X11_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
TEST_LIBS = \
|
||||
$(top_builddir)/va/libva.la \
|
||||
$(top_builddir)/va/libva-x11.la \
|
||||
$(X11_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
test_01_LDADD = $(TEST_LIBS)
|
||||
test_01_SOURCES = test_01.c
|
||||
test_02_LDADD = $(TEST_LIBS)
|
||||
test_02_SOURCES = test_02.c
|
||||
test_03_LDADD = $(TEST_LIBS)
|
||||
test_03_SOURCES = test_03.c
|
||||
test_04_LDADD = $(TEST_LIBS)
|
||||
test_04_SOURCES = test_04.c
|
||||
test_05_LDADD = $(TEST_LIBS)
|
||||
test_05_SOURCES = test_05.c
|
||||
test_06_LDADD = $(TEST_LIBS)
|
||||
test_06_SOURCES = test_06.c
|
||||
test_07_LDADD = $(TEST_LIBS)
|
||||
test_07_SOURCES = test_07.c
|
||||
test_08_LDADD = $(TEST_LIBS)
|
||||
test_08_SOURCES = test_08.c
|
||||
test_09_LDADD = $(TEST_LIBS)
|
||||
test_09_SOURCES = test_09.c
|
||||
test_10_LDADD = $(TEST_LIBS)
|
||||
test_10_SOURCES = test_10.c
|
||||
test_11_LDADD = $(TEST_LIBS)
|
||||
test_11_SOURCES = test_11.c
|
||||
EXTRA_DIST = test_common.c test_x11.c
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/basic/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu test/basic/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
clean-noinstPROGRAMS:
|
||||
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list || exit $$?; \
|
||||
test -n "$(EXEEXT)" || exit 0; \
|
||||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list
|
||||
|
||||
test_01$(EXEEXT): $(test_01_OBJECTS) $(test_01_DEPENDENCIES) $(EXTRA_test_01_DEPENDENCIES)
|
||||
@rm -f test_01$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_01_OBJECTS) $(test_01_LDADD) $(LIBS)
|
||||
|
||||
test_02$(EXEEXT): $(test_02_OBJECTS) $(test_02_DEPENDENCIES) $(EXTRA_test_02_DEPENDENCIES)
|
||||
@rm -f test_02$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_02_OBJECTS) $(test_02_LDADD) $(LIBS)
|
||||
|
||||
test_03$(EXEEXT): $(test_03_OBJECTS) $(test_03_DEPENDENCIES) $(EXTRA_test_03_DEPENDENCIES)
|
||||
@rm -f test_03$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_03_OBJECTS) $(test_03_LDADD) $(LIBS)
|
||||
|
||||
test_04$(EXEEXT): $(test_04_OBJECTS) $(test_04_DEPENDENCIES) $(EXTRA_test_04_DEPENDENCIES)
|
||||
@rm -f test_04$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_04_OBJECTS) $(test_04_LDADD) $(LIBS)
|
||||
|
||||
test_05$(EXEEXT): $(test_05_OBJECTS) $(test_05_DEPENDENCIES) $(EXTRA_test_05_DEPENDENCIES)
|
||||
@rm -f test_05$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_05_OBJECTS) $(test_05_LDADD) $(LIBS)
|
||||
|
||||
test_06$(EXEEXT): $(test_06_OBJECTS) $(test_06_DEPENDENCIES) $(EXTRA_test_06_DEPENDENCIES)
|
||||
@rm -f test_06$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_06_OBJECTS) $(test_06_LDADD) $(LIBS)
|
||||
|
||||
test_07$(EXEEXT): $(test_07_OBJECTS) $(test_07_DEPENDENCIES) $(EXTRA_test_07_DEPENDENCIES)
|
||||
@rm -f test_07$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_07_OBJECTS) $(test_07_LDADD) $(LIBS)
|
||||
|
||||
test_08$(EXEEXT): $(test_08_OBJECTS) $(test_08_DEPENDENCIES) $(EXTRA_test_08_DEPENDENCIES)
|
||||
@rm -f test_08$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_08_OBJECTS) $(test_08_LDADD) $(LIBS)
|
||||
|
||||
test_09$(EXEEXT): $(test_09_OBJECTS) $(test_09_DEPENDENCIES) $(EXTRA_test_09_DEPENDENCIES)
|
||||
@rm -f test_09$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_09_OBJECTS) $(test_09_LDADD) $(LIBS)
|
||||
|
||||
test_10$(EXEEXT): $(test_10_OBJECTS) $(test_10_DEPENDENCIES) $(EXTRA_test_10_DEPENDENCIES)
|
||||
@rm -f test_10$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_10_OBJECTS) $(test_10_LDADD) $(LIBS)
|
||||
|
||||
test_11$(EXEEXT): $(test_11_OBJECTS) $(test_11_DEPENDENCIES) $(EXTRA_test_11_DEPENDENCIES)
|
||||
@rm -f test_11$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_11_OBJECTS) $(test_11_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_01.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_02.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_03.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_04.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_05.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_06.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_07.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_08.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_09.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_10.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_11.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-am
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-am
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-am
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
|
||||
clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \
|
||||
ctags-am distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags tags-am uninstall uninstall-am
|
||||
|
||||
|
||||
valgrind: $(noinst_PROGRAMS)
|
||||
for a in $(noinst_PROGRAMS); do \
|
||||
valgrind --leak-check=full --show-reachable=yes .libs/$$a; \
|
||||
done
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
42
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_01.c
Normal file
42
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_01.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Initialize & Terminate"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
}
|
||||
|
||||
void test()
|
||||
{
|
||||
test_init();
|
||||
|
||||
test_terminate();
|
||||
}
|
42
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_02.c
Normal file
42
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_02.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Query profiles"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
}
|
||||
|
||||
void test()
|
||||
{
|
||||
test_profiles();
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
test_terminate();
|
||||
}
|
67
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_03.c
Normal file
67
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_03.c
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Query entrypoints for all profiles"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
test_profiles();
|
||||
}
|
||||
|
||||
void test()
|
||||
{
|
||||
int max_entrypoints;
|
||||
int num_entrypoints;
|
||||
int i, j;
|
||||
max_entrypoints = vaMaxNumEntrypoints(va_dpy);
|
||||
status("vaMaxEntryPoints = %d\n", max_entrypoints);
|
||||
ASSERT(max_entrypoints > 0);
|
||||
|
||||
VAEntrypoint *entrypoints = malloc(max_entrypoints * sizeof(VAEntrypoint));
|
||||
ASSERT(entrypoints);
|
||||
|
||||
for(i = 0; i < num_profiles; i++)
|
||||
{
|
||||
memset(entrypoints, 0xff, max_entrypoints * sizeof(VAEntrypoint));
|
||||
va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaQueryConfigEntryPoints(%s) reports %d entrypoints\n", profile2string(profiles[i]), num_entrypoints);
|
||||
ASSERT(num_entrypoints <= max_entrypoints);
|
||||
ASSERT(num_entrypoints > 0);
|
||||
for(j = 0; j < num_entrypoints; j++)
|
||||
{
|
||||
status(" entrypoint %d [%s]\n", entrypoints[j], entrypoint2string(entrypoints[j]));
|
||||
}
|
||||
}
|
||||
|
||||
free(entrypoints);
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
test_terminate();
|
||||
}
|
84
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_04.c
Normal file
84
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_04.c
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Get config attributes for all profiles / entrypoints"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
test_profiles();
|
||||
}
|
||||
|
||||
#define DEADVALUE 0xdeaddead
|
||||
|
||||
void test()
|
||||
{
|
||||
VAConfigAttrib attributes[] = {
|
||||
{ type: VAConfigAttribRTFormat, value: DEADVALUE },
|
||||
{ type: VAConfigAttribSpatialResidual, value: DEADVALUE },
|
||||
{ type: VAConfigAttribSpatialClipping, value: DEADVALUE },
|
||||
{ type: VAConfigAttribIntraResidual, value: DEADVALUE },
|
||||
{ type: VAConfigAttribEncryption, value: DEADVALUE }
|
||||
};
|
||||
int max_entrypoints;
|
||||
int num_entrypoints;
|
||||
int num_attribs = sizeof(attributes) / sizeof(VAConfigAttrib);
|
||||
int i, j, k;
|
||||
max_entrypoints = vaMaxNumEntrypoints(va_dpy);
|
||||
ASSERT(max_entrypoints > 0);
|
||||
VAEntrypoint *entrypoints = malloc(max_entrypoints * sizeof(VAEntrypoint));
|
||||
ASSERT(entrypoints);
|
||||
|
||||
VAConfigAttrib *attrib_list = (VAConfigAttrib *) malloc(sizeof(attributes));
|
||||
ASSERT(attrib_list);
|
||||
|
||||
for(i = 0; i < num_profiles; i++)
|
||||
{
|
||||
va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
for(j = 0; j < num_entrypoints; j++)
|
||||
{
|
||||
memcpy(attrib_list, attributes, sizeof(attributes));
|
||||
status("vaGetConfigAttributes for %s, %s\n", profile2string(profiles[i]), entrypoint2string(entrypoints[j]));
|
||||
va_status = vaGetConfigAttributes(va_dpy, profiles[i], entrypoints[j], attrib_list, num_attribs);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
for(k = 0; k < num_attribs; k++)
|
||||
{
|
||||
status(" %d -> %08x\n", attrib_list[k].type, attrib_list[k].value);
|
||||
ASSERT(attrib_list[k].value != DEADVALUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(attrib_list);
|
||||
free(entrypoints);
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
test_terminate();
|
||||
}
|
77
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_05.c
Normal file
77
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_05.c
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Create/destroy configs for all profiles / entrypoints"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
test_profiles();
|
||||
}
|
||||
|
||||
void test()
|
||||
{
|
||||
int max_entrypoints;
|
||||
int num_entrypoints;
|
||||
int i, j, k;
|
||||
int config_count = 0;
|
||||
max_entrypoints = vaMaxNumEntrypoints(va_dpy);
|
||||
ASSERT(max_entrypoints > 0);
|
||||
VAEntrypoint *entrypoints = malloc(max_entrypoints * sizeof(VAEntrypoint));
|
||||
ASSERT(entrypoints);
|
||||
|
||||
VAConfigID *configs = malloc(max_entrypoints * num_profiles * sizeof(VAConfigID));
|
||||
|
||||
for(i = 0; i < num_profiles; i++)
|
||||
{
|
||||
va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
for(j = 0; j < num_entrypoints; j++)
|
||||
{
|
||||
status("vaCreateConfig for %s, %s\n", profile2string(profiles[i]), entrypoint2string(entrypoints[j]));
|
||||
va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count]));
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaCreateConfig returns %08x\n", configs[config_count]);
|
||||
config_count++;
|
||||
}
|
||||
}
|
||||
|
||||
for(i = 0; i < config_count; i++)
|
||||
{
|
||||
status("vaDestroyConfig for config %08x\n", configs[i]);
|
||||
va_status = vaDestroyConfig( va_dpy, configs[i] );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
free(configs);
|
||||
free(entrypoints);
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
test_terminate();
|
||||
}
|
123
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_06.c
Normal file
123
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_06.c
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Get config attributes from configs"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
int max_entrypoints;
|
||||
VAEntrypoint *entrypoints;
|
||||
|
||||
VAConfigID *configs;
|
||||
int config_count = 0;
|
||||
|
||||
|
||||
|
||||
void pre()
|
||||
{
|
||||
int i, j, k;
|
||||
|
||||
test_init();
|
||||
test_profiles();
|
||||
|
||||
max_entrypoints = vaMaxNumEntrypoints(va_dpy);
|
||||
ASSERT(max_entrypoints > 0);
|
||||
entrypoints = malloc(max_entrypoints * sizeof(VAEntrypoint));
|
||||
ASSERT(entrypoints);
|
||||
|
||||
configs = malloc(max_entrypoints * num_profiles * sizeof(VAConfigID));
|
||||
ASSERT(configs);
|
||||
|
||||
// Create configs
|
||||
for(i = 0; i < num_profiles; i++)
|
||||
{
|
||||
int num_entrypoints;
|
||||
va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
for(j = 0; j < num_entrypoints; j++)
|
||||
{
|
||||
va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count]));
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
config_count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void test()
|
||||
{
|
||||
int i, j, k;
|
||||
int max_attribs;
|
||||
|
||||
max_attribs = vaMaxNumConfigAttributes(va_dpy);
|
||||
ASSERT(max_attribs > 0);
|
||||
|
||||
VAConfigAttrib *attrib_list = malloc(max_attribs * sizeof(VAConfigAttrib));
|
||||
|
||||
config_count = 0;
|
||||
for(i = 0; i < num_profiles; i++)
|
||||
{
|
||||
int num_entrypoints;
|
||||
|
||||
va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
for(j = 0; j < num_entrypoints; j++)
|
||||
{
|
||||
VAProfile profile= -1;
|
||||
VAEntrypoint entrypoint = -1;
|
||||
int num_attribs = -1;
|
||||
|
||||
status("Checking vaQueryConfigAttributes for %s, %s\n", profile2string(profiles[i]), entrypoint2string(entrypoints[j]));
|
||||
memset(attrib_list, 0xff, max_attribs * sizeof(VAConfigAttrib));
|
||||
|
||||
va_status = vaQueryConfigAttributes(va_dpy, configs[config_count], &profile, &entrypoint, attrib_list, &num_attribs);
|
||||
config_count++;
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
ASSERT( profile == profiles[i] );
|
||||
ASSERT( entrypoint == entrypoints[j] );
|
||||
ASSERT( num_attribs >= 0 );
|
||||
for(k = 0; k < num_attribs; k++)
|
||||
{
|
||||
status(" %d -> %08x\n", attrib_list[k].type, attrib_list[k].value);
|
||||
ASSERT(attrib_list[k].value != VA_ATTRIB_NOT_SUPPORTED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(attrib_list);
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < config_count; i++)
|
||||
{
|
||||
va_status = vaDestroyConfig( va_dpy, configs[i] );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
free(configs);
|
||||
free(entrypoints);
|
||||
test_terminate();
|
||||
}
|
119
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_07.c
Normal file
119
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_07.c
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Create and destory surfaces"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
}
|
||||
|
||||
#define DEAD_SURFACE_ID (VASurfaceID) 0xbeefdead
|
||||
|
||||
void test_unique_surfaces(VASurfaceID *surface_list1, int surface_count1, VASurfaceID *surface_list2, int surface_count2)
|
||||
{
|
||||
int i,j;
|
||||
|
||||
for(i = 0; i < surface_count1; i++)
|
||||
{
|
||||
for(j = 0; j < surface_count2; j++)
|
||||
{
|
||||
if ((surface_list1 == surface_list2) && (i == j)) continue;
|
||||
ASSERT(surface_list1[i] != VA_INVALID_SURFACE);
|
||||
ASSERT(surface_list2[j] != VA_INVALID_SURFACE);
|
||||
ASSERT(surface_list1[i] != surface_list2[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void test()
|
||||
{
|
||||
VASurfaceID surfaces_1[1+1];
|
||||
VASurfaceID surfaces_4[4+1];
|
||||
VASurfaceID surfaces_16[16+1];
|
||||
VASurfaceID surfaces_6[6+1];
|
||||
|
||||
memset(surfaces_1, 0xff, sizeof(surfaces_1));
|
||||
memset(surfaces_4, 0xff, sizeof(surfaces_4));
|
||||
memset(surfaces_16, 0xff, sizeof(surfaces_16));
|
||||
memset(surfaces_6, 0xff, sizeof(surfaces_6));
|
||||
|
||||
status("vaCreateSurfaces 1 surface\n");
|
||||
surfaces_1[1] = DEAD_SURFACE_ID;
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_1, 1, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
ASSERT( DEAD_SURFACE_ID == surfaces_1[1] ); /* bounds check */
|
||||
|
||||
status("vaCreateSurfaces 4 surfaces\n");
|
||||
surfaces_4[4] = DEAD_SURFACE_ID;
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_4, 4, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
ASSERT( DEAD_SURFACE_ID == surfaces_4[4] ); /* bounds check */
|
||||
|
||||
status("vaCreateSurfaces 16 surfaces\n");
|
||||
surfaces_16[16] = DEAD_SURFACE_ID;
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_16, 16, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
ASSERT( DEAD_SURFACE_ID == surfaces_16[16] ); /* bounds check */
|
||||
|
||||
test_unique_surfaces(surfaces_1, 1, surfaces_4, 4);
|
||||
test_unique_surfaces(surfaces_4, 4, surfaces_16, 4);
|
||||
test_unique_surfaces(surfaces_4, 4, surfaces_16, 16);
|
||||
test_unique_surfaces(surfaces_4, 1, surfaces_16, 16);
|
||||
test_unique_surfaces(surfaces_1, 16, surfaces_16, 16);
|
||||
|
||||
status("vaDestroySurface 4 surfaces\n");
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces_4, 4);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaCreateSurfaces 6 surfaces\n");
|
||||
surfaces_6[6] = DEAD_SURFACE_ID;
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_6, 6, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
ASSERT( DEAD_SURFACE_ID == surfaces_6[6] ); /* bounds check */
|
||||
|
||||
test_unique_surfaces(surfaces_1, 1, surfaces_6, 6);
|
||||
test_unique_surfaces(surfaces_6, 6, surfaces_16, 16);
|
||||
test_unique_surfaces(surfaces_1, 6, surfaces_16, 6);
|
||||
|
||||
status("vaDestroySurface 16 surfaces\n");
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces_16, 16);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaDestroySurface 1 surface\n");
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces_1, 1);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaDestroySurface 6 surfaces\n");
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces_6, 6);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
test_terminate();
|
||||
}
|
92
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_08.c
Normal file
92
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_08.c
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Create and destory surfaces of different sizes"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
}
|
||||
|
||||
#define DEAD_SURFACE_ID (VASurfaceID) 0xbeefdead
|
||||
|
||||
void test_unique_surfaces(VASurfaceID *surface_list, int surface_count)
|
||||
{
|
||||
int i,j;
|
||||
|
||||
for(i = 0; i < surface_count; i++)
|
||||
{
|
||||
ASSERT(surface_list[i] != VA_INVALID_SURFACE);
|
||||
for(j = 0; j < i; j++)
|
||||
{
|
||||
if (i == j) continue;
|
||||
ASSERT(surface_list[i] != surface_list[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
typedef struct test_size { int w; int h; } test_size_t;
|
||||
|
||||
test_size_t test_sizes[] = {
|
||||
{ 10, 10 },
|
||||
{ 128, 128 },
|
||||
{ 176, 144 },
|
||||
{ 144, 176 },
|
||||
{ 352, 288 },
|
||||
{ 399, 299 },
|
||||
{ 640, 480 },
|
||||
{ 1280, 720 }
|
||||
};
|
||||
|
||||
#define NUM_SIZES (sizeof(test_sizes) / sizeof(test_size_t))
|
||||
|
||||
void test()
|
||||
{
|
||||
VASurfaceID surfaces[NUM_SIZES+1];
|
||||
unsigned int i;
|
||||
|
||||
memset(surfaces, 0xff, sizeof(surfaces));
|
||||
|
||||
for(i = 0; i < NUM_SIZES; i++)
|
||||
{
|
||||
status("vaCreateSurfaces create %dx%d surface\n", test_sizes[i].w, test_sizes[i].h);
|
||||
surfaces[i+1] = DEAD_SURFACE_ID;
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, test_sizes[i].w, test_sizes[i].h, &surfaces[i], 1, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
ASSERT( DEAD_SURFACE_ID == surfaces[i+1] );
|
||||
}
|
||||
|
||||
test_unique_surfaces(surfaces, NUM_SIZES);
|
||||
|
||||
status("vaDestroySurface all surfaces\n");
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces, NUM_SIZES);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
test_terminate();
|
||||
}
|
109
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_09.c
Normal file
109
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_09.c
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Create/destroy contexts for all profiles / entrypoints"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
test_profiles();
|
||||
}
|
||||
|
||||
void test()
|
||||
{
|
||||
int max_entrypoints;
|
||||
int num_entrypoints;
|
||||
int i, j, k;
|
||||
int config_count = 0;
|
||||
max_entrypoints = vaMaxNumEntrypoints(va_dpy);
|
||||
ASSERT(max_entrypoints > 0);
|
||||
VAEntrypoint *entrypoints = malloc(max_entrypoints * sizeof(VAEntrypoint));
|
||||
ASSERT(entrypoints);
|
||||
|
||||
VAConfigID *configs = malloc(max_entrypoints * num_profiles * sizeof(VAConfigID));
|
||||
VAContextID *contexts = malloc(max_entrypoints * num_profiles * sizeof(VAContextID));
|
||||
|
||||
for(i = 0; i < num_profiles; i++)
|
||||
{
|
||||
va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
for(j = 0; j < num_entrypoints; j++)
|
||||
{
|
||||
status("vaCreateConfig for %s, %s\n", profile2string(profiles[i]), entrypoint2string(entrypoints[j]));
|
||||
va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count]));
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaCreateConfig returns %08x\n", configs[config_count]);
|
||||
config_count++;
|
||||
}
|
||||
}
|
||||
|
||||
int width = 352;
|
||||
int height = 288;
|
||||
int surface_count = 4;
|
||||
int total_surfaces = config_count * surface_count;
|
||||
|
||||
VASurfaceID *surfaces = malloc(total_surfaces * sizeof(VASurfaceID));
|
||||
|
||||
// TODO: Don't assume VA_RT_FORMAT_YUV420 is supported / needed for each config
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
for(i = 0; i < config_count; i++)
|
||||
{
|
||||
status("vaCreateContext with config %08x\n", configs[i]);
|
||||
int flags = 0;
|
||||
va_status = vaCreateContext( va_dpy, configs[i], width, height, flags, surfaces + i*surface_count, surface_count, &contexts[i] );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
for(i = 0; i < config_count; i++)
|
||||
{
|
||||
status("vaDestroyContext for context %08x\n", contexts[i]);
|
||||
va_status = vaDestroyContext( va_dpy, contexts[i] );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
for(i = 0; i < config_count; i++)
|
||||
{
|
||||
status("vaDestroyConfig for config %08x\n", configs[i]);
|
||||
va_status = vaDestroyConfig( va_dpy, configs[i] );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
free(contexts);
|
||||
free(configs);
|
||||
free(surfaces);
|
||||
free(entrypoints);
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
test_terminate();
|
||||
}
|
140
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_10.c
Normal file
140
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_10.c
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Create and destroy buffers"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
VAConfigID config;
|
||||
VAContextID context;
|
||||
VASurfaceID *surfaces;
|
||||
int total_surfaces;
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
|
||||
va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, NULL, 0, &config);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaCreateConfig returns %08x\n", config);
|
||||
|
||||
int width = 352;
|
||||
int height = 288;
|
||||
int surface_count = 4;
|
||||
total_surfaces = surface_count;
|
||||
|
||||
surfaces = malloc(total_surfaces * sizeof(VASurfaceID));
|
||||
|
||||
// TODO: Don't assume VA_RT_FORMAT_YUV420 is supported / needed for each config
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaCreateContext with config %08x\n", config);
|
||||
int flags = 0;
|
||||
va_status = vaCreateContext( va_dpy, config, width, height, flags, surfaces, surface_count, &context );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
void test_unique_buffers(VABufferID *buffer_list, int buffer_count)
|
||||
{
|
||||
int i,j;
|
||||
|
||||
for(i = 0; i < buffer_count; i++)
|
||||
{
|
||||
for(j = 0; j < i; j++)
|
||||
{
|
||||
ASSERT(buffer_list[i] != buffer_list[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
VABufferType buffer_types[] =
|
||||
{
|
||||
VAPictureParameterBufferType,
|
||||
VAIQMatrixBufferType,
|
||||
VABitPlaneBufferType,
|
||||
VASliceGroupMapBufferType,
|
||||
VASliceParameterBufferType,
|
||||
VASliceDataBufferType,
|
||||
VAMacroblockParameterBufferType,
|
||||
VAResidualDataBufferType,
|
||||
VADeblockingParameterBufferType,
|
||||
};
|
||||
|
||||
unsigned int buffer_sizes[] =
|
||||
{
|
||||
sizeof(VAPictureParameterBufferMPEG4),
|
||||
sizeof(VAIQMatrixBufferH264),
|
||||
32*1024,
|
||||
48*1024,
|
||||
sizeof(VASliceParameterBufferMPEG2),
|
||||
128*1024,
|
||||
sizeof(VAMacroblockParameterBufferMPEG2),
|
||||
32*1024,
|
||||
15*1024,
|
||||
};
|
||||
|
||||
|
||||
#define NUM_BUFFER_TYPES (sizeof(buffer_types) / sizeof(VABufferType))
|
||||
|
||||
#define DEAD_BUFFER_ID ((VABufferID) 0x1234ffff)
|
||||
|
||||
void test()
|
||||
{
|
||||
VABufferID buffer_ids[NUM_BUFFER_TYPES+1];
|
||||
unsigned int i;
|
||||
memset(buffer_ids, 0xff, sizeof(buffer_ids));
|
||||
for(i=0; i < NUM_BUFFER_TYPES; i++)
|
||||
{
|
||||
buffer_ids[i+1] = DEAD_BUFFER_ID;
|
||||
va_status = vaCreateBuffer(va_dpy, context, buffer_types[i], buffer_sizes[i], 1, NULL, &buffer_ids[i]);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
ASSERT( DEAD_BUFFER_ID == buffer_ids[i+1] ); /* Bounds check */
|
||||
}
|
||||
test_unique_buffers(buffer_ids, NUM_BUFFER_TYPES);
|
||||
|
||||
for(i=0; i < NUM_BUFFER_TYPES; i++)
|
||||
{
|
||||
va_status = vaDestroyBuffer(va_dpy, buffer_ids[i]);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
}
|
||||
|
||||
void post()
|
||||
{
|
||||
status("vaDestroyContext for context %08x\n", context);
|
||||
va_status = vaDestroyContext( va_dpy, context );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaDestroyConfig for config %08x\n", config);
|
||||
va_status = vaDestroyConfig( va_dpy, config );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
free(surfaces);
|
||||
|
||||
test_terminate();
|
||||
}
|
179
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_11.c
Normal file
179
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_11.c
Normal file
@@ -0,0 +1,179 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define TEST_DESCRIPTION "Map and unmap buffers"
|
||||
|
||||
#include "test_common.c"
|
||||
|
||||
VAConfigID config;
|
||||
VAContextID context;
|
||||
VASurfaceID *surfaces;
|
||||
int total_surfaces;
|
||||
|
||||
void pre()
|
||||
{
|
||||
test_init();
|
||||
|
||||
va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, NULL, 0, &config);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaCreateConfig returns %08x\n", config);
|
||||
|
||||
int width = 352;
|
||||
int height = 288;
|
||||
int surface_count = 4;
|
||||
total_surfaces = surface_count;
|
||||
|
||||
surfaces = malloc(total_surfaces * sizeof(VASurfaceID));
|
||||
|
||||
// TODO: Don't assume VA_RT_FORMAT_YUV420 is supported / needed for each config
|
||||
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces, NULL, 0);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaCreateContext with config %08x\n", config);
|
||||
int flags = 0;
|
||||
va_status = vaCreateContext( va_dpy, config, width, height, flags, surfaces, surface_count, &context );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
}
|
||||
|
||||
void test_unique_buffers(VABufferID *buffer_list, int buffer_count)
|
||||
{
|
||||
int i,j;
|
||||
|
||||
for(i = 0; i < buffer_count; i++)
|
||||
{
|
||||
for(j = 0; j < i; j++)
|
||||
{
|
||||
ASSERT(buffer_list[i] != buffer_list[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
VABufferType buffer_types[] =
|
||||
{
|
||||
VAPictureParameterBufferType,
|
||||
VAIQMatrixBufferType,
|
||||
VABitPlaneBufferType,
|
||||
VASliceGroupMapBufferType,
|
||||
VASliceParameterBufferType,
|
||||
VASliceDataBufferType,
|
||||
VAMacroblockParameterBufferType,
|
||||
VAResidualDataBufferType,
|
||||
VADeblockingParameterBufferType,
|
||||
};
|
||||
|
||||
unsigned int buffer_sizes[] =
|
||||
{
|
||||
sizeof(VAPictureParameterBufferMPEG4),
|
||||
sizeof(VAIQMatrixBufferH264),
|
||||
32*1024,
|
||||
48*1024,
|
||||
sizeof(VASliceParameterBufferMPEG2),
|
||||
128*1024,
|
||||
sizeof(VAMacroblockParameterBufferMPEG2),
|
||||
32*1024,
|
||||
15*1024,
|
||||
};
|
||||
|
||||
|
||||
#define NUM_BUFFER_TYPES (sizeof(buffer_types) / sizeof(VABufferType))
|
||||
|
||||
#define DEAD_BUFFER_ID ((VABufferID) 0x1234ffff)
|
||||
|
||||
void test()
|
||||
{
|
||||
VABufferID buffer_ids[NUM_BUFFER_TYPES+1];
|
||||
uint32_t *input_data[NUM_BUFFER_TYPES];
|
||||
unsigned int i, j;
|
||||
memset(buffer_ids, 0xff, sizeof(buffer_ids));
|
||||
for(i=0; i < NUM_BUFFER_TYPES; i++)
|
||||
{
|
||||
uint32_t *data;
|
||||
|
||||
input_data[i] = malloc(buffer_sizes[i]+4);
|
||||
ASSERT(input_data[i]);
|
||||
|
||||
/* Generate input data */
|
||||
for(j = buffer_sizes[i] / 4; j--;)
|
||||
{
|
||||
input_data[i][j] = random();
|
||||
}
|
||||
|
||||
/* Copy to secondary buffer */
|
||||
data = malloc(buffer_sizes[i]);
|
||||
ASSERT(data);
|
||||
memcpy(data, input_data[i], buffer_sizes[i]);
|
||||
|
||||
/* Create buffer and fill with data */
|
||||
va_status = vaCreateBuffer(va_dpy, context, buffer_types[i], buffer_sizes[i], 1, data, &buffer_ids[i]);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaCreateBuffer created buffer %08x of type %d\n", buffer_ids[i], buffer_types[i]);
|
||||
|
||||
/* Wipe secondary buffer */
|
||||
memset(data, 0, buffer_sizes[i]);
|
||||
free(data);
|
||||
}
|
||||
|
||||
for(i=0; i < NUM_BUFFER_TYPES; i++)
|
||||
{
|
||||
void *data = NULL;
|
||||
/* Fetch VA Buffer */
|
||||
va_status = vaMapBuffer(va_dpy, buffer_ids[i], &data);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaMapBuffer mapped buffer %08x\n", buffer_ids[i]);
|
||||
|
||||
/* Compare data */
|
||||
ASSERT( memcmp(input_data[i], data, buffer_sizes[i]) == 0 );
|
||||
}
|
||||
|
||||
for(i=0; i < NUM_BUFFER_TYPES; i++)
|
||||
{
|
||||
va_status = vaUnmapBuffer(va_dpy, buffer_ids[i]);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
va_status = vaDestroyBuffer(va_dpy, buffer_ids[i]);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
free(input_data[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void post()
|
||||
{
|
||||
status("vaDestroyContext for context %08x\n", context);
|
||||
va_status = vaDestroyContext( va_dpy, context );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaDestroyConfig for config %08x\n", config);
|
||||
va_status = vaDestroyConfig( va_dpy, config );
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
free(surfaces);
|
||||
|
||||
test_terminate();
|
||||
}
|
161
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_common.c
Normal file
161
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_common.c
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <va/va.h>
|
||||
#ifdef ANDROID
|
||||
#include <va/va_android.h>
|
||||
#else
|
||||
#include <va/va_x11.h>
|
||||
#endif
|
||||
#include "assert.h"
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
#define ASSERT assert
|
||||
|
||||
void status(const char *msg, ...);
|
||||
#ifdef ANDROID
|
||||
#include "test_android.c"
|
||||
#else
|
||||
#include "test_x11.c"
|
||||
#endif
|
||||
|
||||
Display *dpy;
|
||||
VADisplay va_dpy;
|
||||
VAStatus va_status;
|
||||
int major_version, minor_version;
|
||||
int print_status = 0;
|
||||
int num_profiles;
|
||||
VAProfile *profiles = NULL;
|
||||
|
||||
void pre();
|
||||
void test();
|
||||
void post();
|
||||
|
||||
void status(const char *msg, ...)
|
||||
{
|
||||
if (!print_status) return;
|
||||
va_list args;
|
||||
printf("--- ");
|
||||
va_start(args, msg);
|
||||
vfprintf(stdout, msg, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
const char *name = strrchr(argv[0], '/');
|
||||
if (name)
|
||||
name++;
|
||||
else
|
||||
name = argv[0];
|
||||
printf("*** %s: %s\n", name, TEST_DESCRIPTION);
|
||||
pre();
|
||||
print_status = 1;
|
||||
test();
|
||||
print_status = 0;
|
||||
post();
|
||||
printf("*** %s: Finished\n", name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define PROFILE(profile) case VAProfile##profile: return("VAProfile" #profile);
|
||||
|
||||
const char *profile2string(VAProfile profile)
|
||||
{
|
||||
switch(profile)
|
||||
{
|
||||
PROFILE(None)
|
||||
PROFILE(MPEG2Simple)
|
||||
PROFILE(MPEG2Main)
|
||||
PROFILE(MPEG4Simple)
|
||||
PROFILE(MPEG4AdvancedSimple)
|
||||
PROFILE(MPEG4Main)
|
||||
PROFILE(H263Baseline)
|
||||
PROFILE(H264Baseline)
|
||||
PROFILE(H264Main)
|
||||
PROFILE(H264High)
|
||||
PROFILE(H264ConstrainedBaseline)
|
||||
PROFILE(H264MultiviewHigh)
|
||||
PROFILE(H264StereoHigh)
|
||||
PROFILE(VC1Simple)
|
||||
PROFILE(VC1Main)
|
||||
PROFILE(VC1Advanced)
|
||||
PROFILE(JPEGBaseline)
|
||||
PROFILE(VP8Version0_3)
|
||||
}
|
||||
ASSERT(0);
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
#define ENTRYPOINT(profile) case VAEntrypoint##profile: return("VAEntrypoint" #profile);
|
||||
|
||||
const char *entrypoint2string(VAEntrypoint entrypoint)
|
||||
{
|
||||
switch(entrypoint)
|
||||
{
|
||||
ENTRYPOINT(VLD)
|
||||
ENTRYPOINT(IZZ)
|
||||
ENTRYPOINT(IDCT)
|
||||
ENTRYPOINT(MoComp)
|
||||
ENTRYPOINT(Deblocking)
|
||||
ENTRYPOINT(EncSlice)
|
||||
ENTRYPOINT(EncPicture)
|
||||
ENTRYPOINT(VideoProc)
|
||||
}
|
||||
ASSERT(0);
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
|
||||
void test_profiles()
|
||||
{
|
||||
int max_profiles;
|
||||
int i;
|
||||
max_profiles = vaMaxNumProfiles(va_dpy);
|
||||
status("vaMaxNumProfiles = %d\n", max_profiles);
|
||||
ASSERT(max_profiles > 0);
|
||||
profiles = malloc(max_profiles * sizeof(VAProfile));
|
||||
ASSERT(profiles);
|
||||
|
||||
va_status = vaQueryConfigProfiles(va_dpy, profiles, &num_profiles);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
|
||||
status("vaQueryConfigProfiles reports %d profiles\n", num_profiles);
|
||||
ASSERT(num_profiles <= max_profiles);
|
||||
ASSERT(num_profiles > 0);
|
||||
|
||||
if (print_status)
|
||||
{
|
||||
for(i = 0; i < num_profiles; i++)
|
||||
{
|
||||
status(" profile %d [%s]\n", profiles[i], profile2string(profiles[i]));
|
||||
}
|
||||
}
|
||||
}
|
61
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_x11.c
Normal file
61
contrib/sdk/sources/vaapi/libva-1.4.1/test/basic/test_x11.c
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
Display *dpy;
|
||||
VADisplay va_dpy;
|
||||
VAStatus va_status;
|
||||
VAProfile *profiles ;
|
||||
int major_version, minor_version;
|
||||
|
||||
void test_init()
|
||||
{
|
||||
dpy = XOpenDisplay(NULL);
|
||||
ASSERT( dpy );
|
||||
status("XOpenDisplay: dpy = %08x\n", dpy);
|
||||
|
||||
va_dpy = vaGetDisplay(dpy);
|
||||
ASSERT( va_dpy );
|
||||
status("vaGetDisplay: va_dpy = %08x\n", va_dpy);
|
||||
|
||||
va_status = vaInitialize(va_dpy, &major_version, &minor_version);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaInitialize: major = %d minor = %d\n", major_version, minor_version);
|
||||
}
|
||||
|
||||
void test_terminate()
|
||||
{
|
||||
va_status = vaTerminate(va_dpy);
|
||||
ASSERT( VA_STATUS_SUCCESS == va_status );
|
||||
status("vaTerminate\n");
|
||||
|
||||
XCloseDisplay(dpy);
|
||||
status("XCloseDisplay\n");
|
||||
|
||||
if (profiles)
|
||||
{
|
||||
free(profiles);
|
||||
profiles = NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user