Commit Graph

44 Commits

Author SHA1 Message Date
Carl Zhang 30da35aaa3 clean some unused variables and functions
some variables was defined but not used.
some static functions was defined but not used.

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2024-02-01 15:56:46 +08:00
Carl Zhang 7adaf8bbfb unify the coding style
some new code was not unified
so run style_unify.sh again

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
2024-02-01 15:56:46 +08:00
Alex1 Zhang b0389f427b Fixed VPP coverity issues.
Signed-off-by: Alex1 Zhang alex1.zhang@intel.com
2023-11-09 22:11:22 +08:00
David Heidelberg 370c1e1f60 meson: guard code introduced after libva 1.10 release
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
2023-06-06 12:04:34 +08:00
Furong Zhang 3c5f3fba49 Changed H2S configuration template.
Signed-off-by: Furong Zhang <furong.zhang@intel.com>
2023-01-10 17:16:34 +08:00
Furong Zhang 7ac1be860a Correct maximum display luminance per VAAPI definition.
VAAPI defines the maximum display luminance as in the unit of 0.0001nits.

Signed-off-by: Furong Zhang <furong.zhang@intel.com>
2023-01-10 09:55:49 +08:00
Nicolas Chauvet de2bc68216 meson: add missing tools
The vacopy vpp3dlut vpphdr_tm tools are available in autotools but are
missing with meson. Add them

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2022-10-14 19:28:10 -07:00
caij 66665cf8e2 null check for vpphdr buffer ptr
null check for vpphdr buffer ptr

Signed-off-by: caij jianxing.cai@intel.com
2022-06-23 10:08:57 +08:00
Cai, Jianxing 066b27764e fix hdr local variable pointer access issue
local variable will be freed after return, so need the
caller to convey it

Signed-off-by: caij <jianxing.cai@intel.com>
2022-05-16 17:30:45 +08:00
Furong Zhang 11bc130893 Added HDR10 Tone Mapping sample code including H2H and H2S config files.
Signed-off-by: Furong Zhang <furong.zhang@intel.com>
2022-04-27 17:20:44 +08: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
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
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
Sephy Zhao 8560422b08 add Mediacopy Sample code 2020-12-18 13:53:10 +08: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
Jan Beich f7f23fe825 meson: add missing samples 2020-04-01 21:46:20 +08:00
Jan Beich ecd10997ae autotools: drop libdrm dependency (only libva-drm is used) 2020-04-01 21:45:08 +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
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
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
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
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
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
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 90e524f551 Fix resource leak
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 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
Xu Guangxin 9c42f5ae8b android: remove vaPutSurface dependency
vaPutSurface only used in libva-utils. The actual application/omx
implementation never use it.
It will introduce many header files in android framework.Android change
rapidly, the directory or file name changed in versionto version. It's
hard to catch up and maintain support for many versionof android.
2018-01-26 10:33:56 +08:00
Xiang, Haihao 7b4827ed5e vavpp: read / write RGB32 surface
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-12-19 12:30:08 -08:00
Xiang, Haihao 2385910bee Build libva-utils on Android
Add new Android.mk in the top source directory and some sub-directories,
update some existent Android.mk files. Then I fixed compilation errors

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-09-29 14:51:42 +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