Commit Graph

10 Commits

Author SHA1 Message Date
Pradeep Kumar 72db01438f Fix for pic_order_cnt_lsb to accept larger GOP
Signed-off-by: Pradeep Kumar <pradeep.kumar@intel.com>
2023-06-06 12:04:12 +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
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
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
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
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
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
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