Commit Graph

376 Commits

Author SHA1 Message Date
Carl Zhang 25f021c69c exclude the files from gtest in unify_type script
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-09-29 20:59:40 -04:00
Carl Zhang 42dd2b216e unify the code styles using the style_unify script
use astyle to unify the code style
copy the style_unify script from
https://github.com/intel/libva/blob/master/style_unify

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-09-29 20:59:40 -04:00
Frédéric CHANAL 4cd0cc294b h264encode, hevcencode: fix integer overflow for high definition
When used with for instance 4K UHD (-h 2160 -w 3840) h264encode and
hevcencode `codebuf_size` computation is wrong due to overflow and leads
to "setup_encode:vaCreateBuffer (1349) failed,exit" error

Also fix the frame_bitrate integer overflow
2021-09-22 02:13:41 -04:00
Carl Zhang b2c650bb73 libva-utils 2.13.0.pre1
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-07-01 11:30:38 -04:00
Furong Zhang fa08e4dbfd Added Planar BGR support.
1. Use FourCC VA_FOURCC_BGRP to indicate Planar BGR format;
2. Share the same surface layout VA_RT_FORMAT_RGBP as Planar RGB.

Signed-off-by: Furong Zhang <furong.zhang@intel.com>
2021-06-28 14:42:18 +08:00
Carl Zhang 20a290f53d update NEWS for libva-utils 2.12.0
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-06-21 10:35:00 -04:00
Carl Zhang a09593a7d8 remove version check for test vaInitialize_vaTerminate
it is used to fix such issue, version from libva-utils and libva is different.
because older libva-utils should also work with newer libva.

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-06-21 15:09:13 +08:00
Furong Zhang ccd884f166 Added 3DLUT sample code and configuration file.
Signed-off-by: Furong Zhang <furong.zhang@intel.com>
2021-05-07 16:42:35 +08:00
Carl Zhang 133931dfe6 libva-utils 2.12.0.pre1
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-05-07 10:24:00 -04:00
Dmitry Rogozhkin c25e0db5fd ci: fix freebsd build by switching to vmactions/freebsd-vm@v0.1.3
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
2021-04-02 10:38:30 -07:00
jianxing cai 97f3debe6b add check of malloc result for jpegenc 2021-03-26 09:56:12 +08:00
Carl Zhang 6c8d7e8f96 update NEWS for libva-utils 2.11.0
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-03-23 08:06:33 -04:00
Carl Zhang 324793b98f libva-utils 2.11.0.pre1
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2021-03-23 07:35:56 -04:00
Dmitry Rogozhkin c6e1d0181e vainfo: add VA_RC_TCBRC to reported caps list
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
2021-03-23 11:42:17 +08:00
Emmanuel Gil Peyrot 1534bf097c jpegenc: Allow encoding a 4K frame
Such a frame takes 12 MiB in YUV, which is bigger than the stack size of
most operating systems.

Instead of allocating the buffer on the stack, use malloc().

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2021-03-23 11:41:32 +08:00
Sudarshan S c5d65443f2 h264encode : Added low_power command line option
h264encode utilty failed to run on the platforms where only low-power
(VAEntryPointEncSliceLPi)entrypoints are supported . This change adds
a low_power command line option.
2021-02-22 09:05:59 +08:00
Jan Beich f82446444f ci: upgrade FreeBSD to 12.2
freebsd-vm@v0.0.7 uses FreeBSD 12.1 which has reached EOL on 2021-01-31.
FreeBSD Project doesn't keep old packages for /latest and /quarterly.
Once 12.2 packages are built there would be none for 12.1 except for
/release_1 which is more than 1 year old.
2021-02-20 13:27:27 +08:00
Ryan T Huang 5c7c51d49e Enable new caps for VAConfigAttribEncryption 2021-02-19 13:18:46 +08:00
Dmitry Rogozhkin 3aa3a7bc67 ci: enable github actions
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
2021-01-26 14:23:18 +08:00
Carl Zhang 83728b910d update NEWS for libva-utils 2.10.0
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2020-12-18 09:38:21 -05:00
Sephy Zhao 8560422b08 add Mediacopy Sample code 2020-12-18 13:53:10 +08:00
Shawn Li 9b7ab47e87 Enable new caps for rate control
Signed-off-by: Shawn Li <shawn.li@intel.com>
2020-12-14 09:16:14 +08:00
Miguel Casas e078ccf09f Add support for a --repeat command line option to vp8enc. This
addresses https://github.com/intel/libva-utils/issues/209.
2020-12-04 21:46:34 +08:00
Shawn Li c1535bb7e7 fix one null pointer dereference risk
Signed-off-by: Shawn Li <shawn.li@intel.com>
2020-09-22 16:27:20 +08:00
Shawn Li c63c2b984d Fix one KW issue
Signed-off-by: Shawn Li <shawn.li@intel.com>
2020-09-17 15:10:12 +08:00
Carl Zhang 6f62480422 update NEWS for libva-utils 2.9.0
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2020-09-11 18:08:30 -04:00
Tianhao Liu 1bc9c8311e Fix KW issues
Signed-off-by: Tianhao Liu <tianhao.liu@intel.com>
2020-08-25 15:19:20 +08:00
Haihao Xiang b4048ae967 vavpp: Add support for csc with RGBP 2020-08-20 10:17:26 +08:00
Carl Zhang 1764831f5d libva-utils 2.9.0.pre1
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2020-07-17 05:18:28 -04:00
Carl Zhang 2ada79ec45 update NEWS for 2.8.0
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2020-06-26 00:20:19 +08:00
U. Artie Eoff f5a83e630e test: cast VA_STATUS_ERROR_UNKNOWN to VAStatus type
This fixes a GCC 10.0.1 compiler error for the
VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF conversion from
unsigned to int.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2020-05-13 09:45:10 -07:00
U. Artie Eoff 5220b01a7e test/fixture: fix GCC 10.0.1 error with drmDevicePaths
drmDevicePaths is static/constant and only used in one
method (getDisplay).  Thus, it is unnecessary to declare
it as a member variable.  Instead, just declare and
initialize in getDisplay and use proper C++ semantics.

This also fixes a GCC 10.0.1 error due to improper
C++11 constructor list-initialization syntax:

  error: list-initialize for non-class type must not
         be parenthesized.

Fixes #191

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2020-05-13 09:45:10 -07:00
Carl Zhang c85cfdd5fe libva-utils 2.8.0.pre1
bump master version to 2.8.0.pre1

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2020-04-01 18:12:25 -04:00
Carl Zhang 392194c7fd combined NEWS of 2.6.0 and 2.7.0
1. fix the version mentioned in previous commit d9578c7d00
   correct version in the commit is 2.7.0, such as:

   update NEWS for libva-utils 2.7.0

2. cherry pick ece1e5f100 from v2.6-branch
    it is NEWS update for v2.6.0

3. libva-utils 2.7.0 will be branch from this commit not previous one
    master version will be bumped to 2.8.0.pre1

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2020-04-01 17:59:47 -04:00
Carl Zhang d9578c7d00 update NEWS for libva-utils 2.6.0
libva-utils 2.6.0 will be branch from this commit
master version will be bumped to 2.7.0.pre1

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2020-04-01 17:29:21 -04:00
Jan Beich f7f23fe825 meson: add missing samples 2020-04-01 21:46:20 +08:00
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