Commit Graph

240 Commits

Author SHA1 Message Date
Xiang, Haihao 942f1c2468 Fix deprecated warning
enums marked as deprecated should not be used any more.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-27 12:54:18 +08:00
Xiang, Haihao c38f080c1d Fix a typo in VAConfigAttribValEncROI
The corresponding typo in libva has been fixed in libva 2.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-27 12:54:18 +08:00
U. Artie Eoff 4176f9ec39 test: ignore deprecated-declarations for GCC >= 6.x
In libva 2.0 the VAProfileH264Baseline declaration has been
deprecated.

In the test/Makefile.am, we use -Wall -Werror so all warnings
are treated as errors.  For GCC < 6.x, deprecated-declarations
are not flagged as warnings, thus don't break compilation.
However, GCC >= 6.x treats deprecated-declarations as warnings
and therefore breaks compilation.

Ignore deprecated-declarations with the -Wno-deprecated-declarations
compiler flag for now.

Fixes #49

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2017-09-13 15:04:41 +08:00
Xiang, Haihao f448a68386 libva-utils 2.0.0.pre1 for development
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-13 15:04:41 +08:00
Zhao Yakui 7eff5d00d4 Add vp9enc tool for testing driver
Signed-off-by: peng.chen <peng.c.chen@intel.com>
2017-09-13 13:48:44 +08:00
Xiang, Haihao d941b8b179 vavpp: Add support for P010/I010 YUV surface
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-06 09:35:00 +08:00
Xiang, Haihao e9f41e1e95 vavpp: Add support for NV12 input file
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-06 09:35:00 +08:00
Xiang, Haihao 079c03bdb5 vavpp: User can set output file format
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-06 09:35:00 +08:00
Xiang, Haihao b843b74ba6 vavpp: support YUY2 / UYVY source file
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-06 09:35:00 +08:00
Xiang, Haihao c187d36744 vavpp: User can set the source YUV file format
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-06 09:35:00 +08:00
Sirisha Muppavarapu 65ae1676d4 vavpp: Added code in the unit test to support optimization of STDE.
The current enhancement will support STDE optimization for STDE factors:
0(default), 3, 6 and 9
2017-09-06 09:35:00 +08:00
Sirisha Muppavarapu 3498707b0f vavpp: Add STDE(Skin tone detection and enhancement) test case.
In this commit, I added a testcase for VPP-STDE feature.
I also made relevant changes to the methods and the config file.
2017-09-06 09:35:00 +08:00
Li Xiaowei 62ffe376c8 vavpp: add video processing test case
Test case for deinterlacing, denoise, color balance, sharpening,
blending, scaling and some surface formats conversion
(NV12<->YV12<-->I420).

v7:
* Rename program name to vavpp
* Change noinst_PROGRAMS to bin_PROGRAMS so that the binary will be
installed.

v6:
Apply the patch to libva-utils and fix the corresponding files (Haihao)

Version5:
1). Clean dependecy on X11 in Makefile.am
2). Change bin_PROGRAMS to noinst_PROGRAMS for valgrind check

Version4:
1). Remove dependency on X11.
2). Change bin_PROGRAMS to noinst_PROGRAMS to avoid installing test
    application to system directory.
3). Correct copy right time and adjust some code style.

Version3:
1). Realloc surface attribute array if its size is smaller than the
    requirement of driver when calling vaQuerySurfaceAttrib() function.
2). Fix typo error of BLENDING_GLOBAL_ALPHA in config file.

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
2017-09-06 09:35:00 +08:00
Sreerenj Balachandran 222133a8dc FEI: Bump the required VA-API version
FEI support has been added in VA-API version 0.40.1, which
is the minum required version for the libva-utils too.

libva PR: https://github.com/01org/libva/pull/105

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2017-08-24 10:27:07 +08:00
Sreerenj Balachandran 10a5e9a62f FEI: Add test cases
Added FEI Entrypoint, ConfigAttribute and BufferTypes to test case
scenarios

libva PRs:
https://github.com/01org/libva/pull/83
https://github.com/01org/libva/pull/103

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2017-08-24 10:27:07 +08:00
Sreerenj Balachandran 9dedfb14cf FEI: vainfo: Add FEI entrypoint
libva PR:
https://github.com/01org/libva/pull/83
https://github.com/01org/libva/pull/103

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2017-08-24 10:27:07 +08:00
Xiang, Haihao 5204d45d2e Merge branch 'v1.8-branch' into master 2017-08-16 15:00:34 +08:00
Lim Siew Hoon 780b91ef32 Fix to retrieve libva version.
Fixes #41

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
2017-08-16 12:59:04 +08:00
Kelly Ledford f6c9dcfed1 test: fix GCC 7.1.1 warnings/errors
Fixes #52: add explicit braces to avoid 'ambiguous else' warning.

Signed-off-by: Kelly Ledford <kelly.ledford@intel.com>
2017-07-28 10:00:46 +08:00
Xiang, Haihao 16196be3da Replace abort() with exit(1)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-07-18 15:46:16 +08:00
Xiang, Haihao be3d349cd9 vainfo: Add '--help' to show available options
vainfo has '--display' and '--device' options, but these options are
hidden, hence add '--help' to show these options

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-07-18 15:46:16 +08:00
Xiang, Haihao f36a392a96 vainfo: add an option "--device" to specify a drm device
This option is only available when the drm display is specified in the
command line

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-07-18 15:46:16 +08:00
Xiang, Haihao 011c709b98 libva-utils 1.8.3
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-06-28 08:31:52 +08:00
Xiang, Haihao 44de5826b9 configure fails if requirement can't be met for user's explicit request
Notify user an error if user provides --enable-wayland/--enable-x11 however the
requirement can't be met. drm has been checked mandatorily

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-06-18 23:32:27 +08:00
Xiang, Haihao 0d93f1eab4 Fix compilation failures
When wayland-client meets the requirement but libva-wayland doesn't
exist, we will get the following error because USE_WAYLAND and
HAVE_VA_WAYLAND don't keep consistency

  CXXLD    mpeg2vldemo
../common/.libs/libva-display.a(libva_display_la-va_display.o):(.data.rel+0x0):
undefined reference to `va_display_hooks_wayland'
collect2: error: ld returned 1 exit status

This fixes https://github.com/01org/libva-utils/issues/42

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-06-18 23:32:27 +08:00
Xiang, Haihao 89d1a17a2f putsurface_wayland: fix segmentation fault in multithreads
Otherwise thread1 will dereference a NULL pointer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-06-16 16:45:19 +08:00
Xiang, Haihao d7da46e6c0 Bump libva-utils to 1.8.4.pre1 for development
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-06-13 00:02:38 +08:00
Xiang, Haihao 98d7d6c469 Update NEWS
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-06-12 10:08:53 +08:00
U. Artie Eoff fa13114b64 README.md: update Slack Team invite URL
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
(cherry picked from commit 71746d755e)
2017-06-12 10:03:58 +08:00
Pengfei Qu a6c6e5957a add the frame number as the cmd line input parameter
when --frames with <=0, it will be ignored.

Fixes #37

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
(cherry picked from commit 2fc915d489)
2017-06-12 10:03:49 +08:00
Pengfei Qu fbb45cd1ac Enable direct_spatial_mv_pred_flag for B frame
this flag also improve the quality.

Fixes #28

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
(cherry picked from commit aa7809c33a)
2017-06-12 10:03:49 +08:00
U. Artie Eoff 9b17f09677 putsurface: include wayland-client.h instead of wayland-server.h
putsurface_wayland is a wayland client and should not include
the wayland-server.h header file.  Instead, include the
wayland-client.h header instead.

Fixes #34

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
(cherry picked from commit 5f391c0f0e)
2017-06-12 10:03:29 +08:00
Pengfei Qu 0d6e1452aa ENC: add AUD NAL unit at the beginning of pic
v0:fix the buffer release.

Fixes #32

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
(cherry picked from commit 30143fa7a4)
2017-06-12 10:03:15 +08:00
Nicolas Chauvet 5f5137b7d7 libva-utils: Switch AC_PROG_LIBTOOL to LT_INIT
fedora-review complain on this old deprecated macro - rhbz#1437937

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
(cherry picked from commit 3e0dc1575c)
2017-06-12 10:03:01 +08:00
Xiang, Haihao 6ccfd0fec2 Bump libva-utils 1.8.3.pre1 for development
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit ac663c8e4f)
2017-06-12 10:02:03 +08:00
U. Artie Eoff 71746d755e README.md: update Slack Team invite URL
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2017-05-26 10:28:59 +08:00
Xiang, Haihao 0702da4d89 libva-utils 1.8.2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-05-23 00:07:47 +08:00
Xiang, Haihao ac663c8e4f Bump libva-utils 1.8.3.pre1 for development
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-05-16 13:30:23 +08:00
Xiang, Haihao 4dde364eeb libva-utils 1.8.2.pre1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-05-15 15:33:56 +08:00
Pengfei Qu 2fc915d489 add the frame number as the cmd line input parameter
when --frames with <=0, it will be ignored.

Fixes #37

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
2017-04-21 12:11:43 +08:00
Pengfei Qu aa7809c33a Enable direct_spatial_mv_pred_flag for B frame
this flag also improve the quality.

Fixes #28

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
2017-04-20 22:02:50 +08:00
Xiang, Haihao 857a511cf2 Merge branch 'v1.8-branch' into 01org--master
Conflicts:
	configure.ac
2017-04-19 12:24:52 +08:00
U. Artie Eoff 5f391c0f0e putsurface: include wayland-client.h instead of wayland-server.h
putsurface_wayland is a wayland client and should not include
the wayland-server.h header file.  Instead, include the
wayland-client.h header instead.

Fixes #34

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2017-04-19 08:37:18 +08:00
Xiang, Haihao 667b89be34 libva-utils 1.8.1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-04-10 16:16:12 +08:00
Pengfei Qu 30143fa7a4 ENC: add AUD NAL unit at the beginning of pic
v0:fix the buffer release.

Fixes #32

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
2017-04-07 15:54:24 +08:00
Xiang, Haihao 0bb87bae2b Bump libva-utils 1.8.2.pre1 for development
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-04-06 21:14:54 +08:00
Xiang, Haihao fe547fe0b7 libva-utils 1.8.1.pre1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-04-06 21:11:47 +08:00
Nicolas Chauvet 3e0dc1575c libva-utils: Switch AC_PROG_LIBTOOL to LT_INIT
fedora-review complain on this old deprecated macro - rhbz#1437937

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2017-04-06 12:05:54 +08:00
Xiang, Haihao 95b96fad4f libva-utils 1.8.0
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-03-31 15:51:22 +08:00
Xiang, Haihao d9946cd4d6 Bump pre-release to 1.8.0.pre3
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-03-27 21:47:38 +08:00