Commit Graph

22 Commits

Author SHA1 Message Date
Hirokazu Honda deff9753a8 Support Android build 2024-11-26 09:43:54 +08:00
Yuan, Pengxin 1258c716de Fix some coverity issues exposed in decode
Signed-off-by: Pengxin Yuan <pengxin.yuan@intel.com>
2023-11-09 14:58:24 +08:00
caij 4cd4308c39 fix scan num limitation.
Signed-off-by: caij jianxing.cai@intel.com
2023-03-22 20:07:54 +08:00
Wu, Stella 42ad12b2e5 Add Th limitation by HUFFMAN_TABLES Count
Signed-off-by: Wu, Stella <stella.wu@intel.com>
2023-03-17 14:38:35 +08:00
dingintel2021 8bd8cde5e8 [Decode] Add checking of stream_scan size
Signed-off-by: dingintel2021 <wenlong.ding@intel.com>
2023-03-17 14:29:32 +08:00
Wu, Stella 0561789702 Add Scan Num limitation
Signed-off-by: Wu, Stella <stella.wu@intel.com>
2023-03-17 11:02:16 +08:00
chuanli1 995d201450 [Decode] Components exceed the value specified by jpeg spec
jpeg components number should not exceed 4 following the spec

Signed-off-by: Liu, Chuan1 <chuan1.liu@intel.com>
2022-06-16 11:25:24 +08:00
chuanli1 ec1c44c19a [Decode] Components exceed the value specified by Jpeg spec
jpeg components number should not exceed 4 following the spec

Signed-off-by: Liu, Chuan1 <chuan1.liu@intel.com>
2022-03-20 22:45:24 -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
Jan Beich ecd10997ae autotools: drop libdrm dependency (only libva-drm is used) 2020-04-01 21:45:08 +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 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 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
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
Jun Zhao 9cf3c47d92 decode/loadjpeg: Add return value check for fread.
Check the return value to fix build warning.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
2018-01-11 08:34:21 +08:00
Victor Toso 9c129d7d0b tinyjpeg: remove 'old-style' to set struct's field
Fix 9 warnings of "use of GNU old-style field designator extension
[-Wgnu-designator]" while bulding with clang.

Signed-off-by: Victor Toso <victortoso@redhat.com>
2017-12-15 08:52:46 -08:00
Victor Toso a5a02107b2 tinyjpeg: Fix self-assign
This was introduced either as error or to avoid -Wunused-parameter
from compiler. Still, self-assign warning is part of -Wall while
unused-parameter is on -Wextra.

Let's prioritize -Wall

tinyjpeg.c:864:8: warning: explicitly assigning value of variable of
type 'struct jdec_private *' to itself [-Wself-assign]
  priv = priv;
  ~~~~ ^ ~~~~

Signed-off-by: Victor Toso <victortoso@redhat.com>
2017-12-15 08:52:46 -08:00
Victor Toso b3aa2311ca tinyjpeg: Use assigned variable
tinyjpeg.c: In function ‘parse_DHT’:
tinyjpeg.c:319:21: warning: variable ‘Th’ set but not used
   unsigned char Tc, Th;
                     ^~

Signed-off-by: Victor Toso <victortoso@redhat.com>
2017-12-15 08:52:46 -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
Daniel Charles c9af683d6c libva-utils: initial commit
libva-utils is a new git repository that will host sample applications
for libva, conformance tests and others relevant to libva

It is using the same version as libva and it should follow libva version.
It is intended to be released together with libva
It has the same license as libva

Initial functionality ports the vainfo application from libva repository.
The git history for it will remain on libva.  To port vainfo, also the
a common libva-display library was ported. The original tests for encoder
and decoder are also ported to this repository. debian folder for vainfo
was also ported

The basic tests are going to be substituted by a new set of tests based
on Gtest framework.

libva-utils will dynamically link libva, use pkg-config to compile and
link properly.

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2016-11-29 11:41:17 -08:00