Commit Graph

240 Commits

Author SHA1 Message Date
Jan Beich 337669666d sfcsample: drop unused Linux-only header
VDecAccelVA.cpp:35:10: fatal error: 'linux/fb.h' file not found
 #include <linux/fb.h>
          ^~~~~~~~~~~~
2020-04-01 21:45:08 +08:00
Jan Beich ecd10997ae autotools: drop libdrm dependency (only libva-drm is used) 2020-04-01 21:45:08 +08:00
Jan Beich 3f75ccede6 autotools: drop unused X11 dependencies 2020-04-01 21:45:08 +08:00
shawnli2 bbe6788f0a Add 10/12bit RT format check
Fix VaCreatconfig attribute check fail issue caused by missing some 10/12bit RT format

Signed-off-by: Shawn Li <shawn.li@intel.com>
2020-04-01 21:25:15 +08:00
Ed Baker bd01ba5a6b Ifdef va_x11 in VP sample for usrptr
When updating libva-utils from 2.4.0 to 2.6.0 in Chrome OS I bumped into
the following error:
portage/media-video/libva-utils-2.6.0-r1/work/libva-utils-2.6.0/videoprocess/vppscaling_n_out_usrptr.cpp:41:10: fatal error:
      'va/va_x11.h' file not found

Signed-off-by: Edward Baker <edward.baker@intel.com>
2020-03-19 16:32:18 +08:00
U. Artie Eoff ab0806b440 test/createsurfaces: add some scoped traces
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2019-12-13 21:01:36 +08:00
U. Artie Eoff 641735b586 test/streamable: add VAConfigAttrib and VASurfaceAttrib
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2019-12-13 21:01:36 +08:00
Du, Kelly 287f3a581f Modify output CS settings for Chroma siting on Linux
Signed-off-by: Du, Kelly <kelly.du@intel.com>
2019-12-10 10:37:50 +08:00
shawnli2 0e012b1794 Align libva attribute check
Fix VaCreatconfig attribute check fail issue caused by missing two ratecontrol bitmasks.

Signed-off-by: Shawn Li shawn.li@intel.com
2019-12-03 10:00:25 +08:00
Dmitry Ermilov cbbadf0301 Added displaying supported config attributes
Usage: vainfo -a

Example of output:
VAProfileMPEG2Simple/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 1920
    VAConfigAttribMaxPictureHeight         : 1920
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
2019-11-27 10:53:14 +08:00
kelly-du 81b5929f2b add the VP samples README.
Signed-off-by: kelly-du <kelly.du@intel.com>
2019-08-13 17:22:19 +08:00
Du, Kelly 456c8b913b add VP sample for usrptr and 1:N output
Signed-off-by: Du, Kelly <kelly.du@intel.com>
2019-08-13 17:20:43 +08:00
Carl Zhang 87d7724693 libva 2.6.0.pre1
Bump master version to 2.6.0.pre1

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2019-07-08 06:34:30 -04:00
Carl Zhang c9fb70035d update NEWS for libva-utils 2.5.0
libva-utils 2.5.0 will be branch from this commit
master version will be bumped to 2.6.0.pre1

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2019-07-08 04:57:14 -04:00
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