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
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>
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>
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>
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.
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.
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>
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>
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>
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>