Commit Graph

376 Commits

Author SHA1 Message Date
Timo Gurr fbb17203ae meson: rename the h264enc binary to be in line with the autotools build
h264enc collides with the h264enc binary installed by openh264 and the
autotools based build names the binary h264encode.
2019-06-04 08:46:38 -07:00
intel bf00cf2fef unify NEWS format
Signed-off-by: intel <carl.zhang@intel.com>
2019-05-17 03:25:20 -07:00
kanghuaz 7be46f017c sfcsample: don't include X11 headers
X11 is never used, so don't include the headers.

Fixes #150

Signed-off-by: kanghuaz <kanghua.zhu@intel.com>
2019-05-13 09:19:03 -07:00
U. Artie Eoff a236e34e64 test: update vaInitialize_vaTerminate_Bad_vaSetDriverName
Since intel/libva#250, driver names are no longer restricted
to a whitelist.  Thus, any driver name is legal except for
a few corner cases (i.e. empty name and name > 255 chars).

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2019-05-08 20:47:02 +08:00
Bernd Kuhls d71e260497 Check for -fstack-protector
Not all toolchains provide support for -fstack-protector. This patch
provides a configure check to avoid build errors like

/home/buildroot/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/6.4.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp_nonshared
/home/buildroot/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/6.4.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp
2019-04-09 07:20:01 -07:00
Haihao Xiang 72dab0c109 vavpp: csc with AYUV format
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2019-03-13 14:04:23 +08:00
Haihao Xiang fc8944a2c4 vavpp: requires BGRA frame when saving a BGRA file
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2019-03-13 13:54:25 +08:00
intel e8045a4fd8 update NEWS for libva-utils 2.4.0
libva-utils 2.4.0 will be branch from this commit
master version will be bumped to 2.5.0.pre1

Signed-off-by: intel <carl.zhang@intel.com>
2019-02-01 18:01:16 -05:00
Haihao Xiang 780319da2d Include .h for extra dist
Otherwise the package made by 'make dist' fails to build with similar
errors below:

  CC       avcstreamoutdemo.o
avcstreamoutdemo.c:46:10: fatal error: avcstreamoutdemo.h: No such file
or directory
 #include "avcstreamoutdemo.h"
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:456: recipe for target 'avcstreamoutdemo.o' failed
make[1]: *** [avcstreamoutdemo.o] Error 1

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2019-02-01 06:59:23 -08:00
kelly-du 76df4460fb add VP sample for Blending.
Signed-off-by: kelly-du <kelly.du@intel.com>
2019-02-01 06:49:01 -08:00
kelly-du 375e4eaae3 add VP seperate sample for scaling,csc,sharpness,denoise,chromasitting.
Signed-off-by: kelly-du <kelly.du@intel.com>
2018-11-01 14:04:14 +08:00
kanghuaz 957a269f02 sample code for decode SFC
1. SFC is for decode Scalar & Format Converter
2. Shows downscaling and ARGB conversion
3. Only shows one frame

Signed-off-by: kanghuaz <kanghua.zhu@intel.com>
2018-10-26 17:45:43 +08:00
Kev 6307b68156 KJSL fix up C99 issue 2018-10-26 16:29:57 +08:00
XinfengZhang 809b18606e libva-utils 2.4.0.pre1
Bump version to 2.4.0.pre1 for future development.

release process:
1. master will always be pre release version
2. branch will have official release such as 2.3.0, 2.3.1,2.4.0
3. after branch out release branch, minor version will be bumped.

Signed-off-by: XinfengZhang <carl.zhang@intel.com>
2018-10-22 18:32:02 +08:00
XinfengZhang e35ced362c libva-utils 2.3.0 pre1
Bump libva-utils to 2.3.0

Signed-off-by: XinfengZhang <carl.zhang@intel.com>
2018-09-30 23:41:57 +08:00
Tianhao Liu a8a9d73dad add HEVC encode sample code
1. support low delay B frame
2. only support 1 frame in each reference list
3. CQP only

Signed-off-by: Tianhao Liu <tianhao.liu@intel.com>
2018-09-07 14:33:35 +08:00
Zhengguo.Xu 9298d85ce5 Add sample code for avc decode streamout
Add new folder 'vendor/intel' and give sample code for how to use avc streamout

Signed-off-by: Zhengguo.Xu <zhengguo.xu@intel.com>
2018-09-07 10:29:19 +08:00
ottingerg 9a10ad6633 Add VP8 sample encoder application (SVCT supported)
vp8enc is a simple VP8 encoder application.
It expects yuv420p raw video input and support
CQP, CBR and VBR modes. Encoded video is stored
in the IVF container fileformat.
It supports 2 or 3 temporal layers, which can
be activated by using the '--temp_svc X' command
line.
Note that the alternate reference frame is
not used - this design decission was carried
on from libyami - in order to allow single
Layer 2 frames to be dropped independently.

vp8enc and VP8 SVCT are part part of GSOC 2018.

Fixes https://github.com/intel/libva-utils/issues/108

The following fixes were done during the merge
processs:

fix typo in vp8enc_show_help

fix numbering of long_opts and minor typos

changed comment concerning QMatrix

added dedicated input surface

remove unecessary parameter settings for KEY Frames

changed assert to return VP8ENC_FAIL in command line checks

moved is_golden_refreshed to vaapi_context

added thread support for processing the input yuv
2018-07-06 16:30:43 +08:00
Haihao Xiang 726ec7fe80 libva-utils 2.2.1.pre1 for development
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-07-05 13:41:06 +08:00
Haihao Xiang b8f5acac60 libva-utils 2.2.0 pre1
Update NEWS as well

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-06-29 15:43:10 +08:00
Haihao Xiang 1bea64e121 Add '-Wall' or '-fstack-protector' compilation flags
In addition, this fixes all warnings reported by -Wall

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-06-05 14:18:03 +08:00
tiantian 71fc4bb9ba add vainfo support in android
Signed-off-by: tiantian <tiantian.wang@intel.com>
2018-06-05 13:45:17 +08:00
U. Artie Eoff 8a6ef9ed90 test: remove i965 driver specific cases
Conformance tests should be as generic as possible and
not assume availability of any specific driver.

Fixes #93
Fixes #94
Fixes #95

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-05-30 11:18:10 -07:00
Lionel Landwerlin 5b10b33025 add meson build
v2: remove gtest meson file

v3: install binaries
    respect disabled libraries
    apply cpp_args to all test files
    add full version

v4: define HAVE_* macros

v5: Downgrade meson requirement to 0.42.0
2018-03-21 08:34:47 +08:00
Haihao Xiang 532b994ef5 Check whether the surface is found
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-19 16:18:23 +08:00
Haihao Xiang 90e524f551 Fix resource leak
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-19 16:18:23 +08:00
Haihao Xiang 527b1f97b7 Make sure the variable is initialized correctly
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-19 16:18:23 +08:00
Haihao Xiang d084e2b359 Make sure there is no out-of-bound access
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-19 16:18:23 +08:00
Haihao Xiang 4ef6c0669b Remove redundant check
This pointer has been used before the code.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-19 16:18:23 +08:00
Haihao Xiang e36fda43a7 Check pointers before using it
malloc/calloc/realloc/strdup may return NULL, so we should check the returned
pointer before using.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-19 16:18:23 +08:00
U. Artie Eoff bdc5f94758 test/get_create_config: test for packed headers special case
Driver should allow 0x0 (i.e. VA_ENC_PACKED_HEADER_NONE) value
for the VAConfigAttribEncPackedHeaders attribute during
vaCreateConfig when the attribute is supported.

This test supercedes intel/intel-vaapi-driver#361

Also see intel/intel-vaapi-driver#358 and intel/libva#178

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-03-19 09:47:02 +08:00
Haihao Xiang 5b817fa9c9 Update .travis.yml
Like what we did in commit 14a2088 for libva, the corresponding fix is
also required for libva-utils to avoid locking dpkg file by an
unattended `apt-get` call

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-15 14:55:46 +08:00
Haihao Xiang 3532d7e9da Use the new link URLs
We moved libva from github/01org to github/intel, however some files
still have links to the old 01org URLs, this commit updates these
links to the new intel URLs. In addition, this commit added a contact
email address for security issue reporting

https://github.com/intel/libva-utils/issues/103

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-03-15 11:04:26 +08:00
Haihao Xiang c77a46cd92 Merge branch 'v2.1-branch' into master 2018-03-08 13:34:39 +08:00
Haihao Xiang 66d6d25b74 libva-utils 2.1.0
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-02-12 14:38:32 +08:00
Xiang, Haihao fb32e18b31 libva-utils 2.1.1.pre1 for development
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2018-02-02 09:04:13 +08:00
Xiang, Haihao 9a1ef8933f libva-utils 2.1.0.pre1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2018-01-31 14:11:00 +08:00
U. Artie Eoff 46226d7722 test: abort test if vaapi initialization fails
If doInitialize() fails, then abort the test early to
avoid segmentation faults.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-30 11:09:42 -08:00
U. Artie Eoff a2eb0525a1 test/display_attribs: handle unimplemented display attribs
Drivers aren't required to implement display attribute
support.  Thus, handle and validate paths where this
is the case.

Fixes #96

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-30 11:09:42 -08:00
U. Artie Eoff 3356f4178c test: refactor skip test semantics
Allow custom skip test message.

Basic checks to determine whether a test should be
skipped could fail (e.g. query profiles/entrypoints
to determine if test should be skipped).  Thus, don't
log test as skipped if there are any failures before
the test fixture destructs.

Fixes #99

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-30 11:09:42 -08:00
U. Artie Eoff 3dd134f678 test/createbuffer: fix bugs in createbuffer tests
vaCreateBuffer needs the sizeof the actual buffer
data structure associated with the buffer type, which
could be profile specific.

Previous test logic was passing the sizeof the
buffer "type" enum, which is wrong.

Fix the tests so that the correct buffer size is
calculated based on profile specific buffer types.

Several buffer types were removed from the previous test
parameters since their size may be application specific,
arbitrary, and/or require additional setup beyond the
capabilities of the current buffer test cases.  These
rules will need to be fleshed-out and tests for them
added later on.

Fixes #89

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-30 11:09:42 -08:00
U. Artie Eoff c372f8bcfe test/data: define separate profile lists per codec
Add definitions to group together common profiles
based on codec.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-30 11:09:42 -08:00
U. Artie Eoff e55d151580 test/fixture: remove legacy profile/entrypoint methods
No more tests are using the legacy profile/entrypoint
methods.  So remove them.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00
U. Artie Eoff 92b640059e test/get_create_config: use new profile/entrypoint fixture methods
Use new profile/entrypoint fixture methods and refactor
to simplify logic.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00
U. Artie Eoff c3364439d6 test/createsurfaces: use new profile/entrypoint fixture methods
Use new profile/entrypoint fixture methods and refactor
to simplify logic.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00
U. Artie Eoff 558055cf0d test/createcontext: use new profile/entrypoint fixture methods
Use new profile/entrypoint fixture methods and refactor
to simplify logic.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00
U. Artie Eoff b489e134ef test/createbuffer: use new profile/entrypoint fixture methods
Use new profile/entrypoint fixture methods and refactor
to simplify logic.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00
U. Artie Eoff ef9b0c8ba5 test/config_attribs: use new profile/entrypoint fixture methods
Use new profile/entrypoint fixture methods and refactor
to simplify logic.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00
U. Artie Eoff b570a28ea4 test/fixture: remove doGetMaxNumConfigAttribs
The result of doGetMaxNumConfigAttribs is only needed
by queryConfigAttributes.  Thus, just call
vaMaxNumConfigAttributes in queryConfigAttributes when
necessary (it should have low call overhead).  This
also removes the need to use a member state variable.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00
U. Artie Eoff 15fb08bd93 test/fixture: add new profile/entrypoint methods
Existing profile/entrypoint methods require too
much state overhead in the fixture and force tests
to make multiple calls to different methods to get
the information they need.  Thus, add new methods
for profile/entrypoint queries so tests can regain
more control and simplicity.  These new methods
also do not require member variables to operate.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-01-29 13:35:50 +08:00