| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Bump VA-API version to 1.7.0 pre1 and libva to 2.7.0 pre1
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
|
| |
remove extraneous closing brace
fixes #365
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
| |
fixes #355
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
|
|
|
|
| |
add multiple backend driver support part 3
enable vaGetDriverNameByIndex for DRM
add comments for the implementation
mv authenticate operation into vaGetNumCandidates function
from vaGetDriverName.
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
|
|
|
| |
add multiple backend driver support part 2
try to open driver one by one
1. get candidates number
2. try to load driver one by one until one driver loaded successfully
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
add multiple backend driver support part 1
add new function pointer in va_backend.h
vaGetCandidatesNum is used to get driver candidates number
vaGetDriverNameByIndex is used to get driver name by candidate index
and basic implementation of va_getDriverCandidateNum and va_getDriverNameByIndex
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
| |
Bump VA-API version to 1.6.0 pre1 and libva to 2.6.0 pre1
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
| |
strdup may return NULL when out of memory.
If we pass this NULL to strtok_r,it returns unflushed token from previous
strtok_r call. It's unexpected result.
|
|
|
|
|
|
| |
only take effect when the call failed
Signed-off-by: intel <carl.zhang@intel.com>
|
|
|
|
|
|
| |
Bump VA-API version to 1.5.0 pre1 and libva to 2.5.0 pre1
Signed-off-by: intel <carl.zhang@intel.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Using strncat() and strncpy() may lead to string truncation, which
might generate other issues.
This patch replaces the usage of strncat() and strncpy() to generate
the driver path, with snprintf() safetly.
See more information here:
https://developers.redhat.com/blog/2018/05/24/detecting-string-truncation-with-gcc-8/
|
|
|
|
| |
Signed-off-by: Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@intel.com>
|
|
|
|
|
|
| |
utils/Log.h and ctuils/Log.h replaced by log/log.h on android
Change-Id: Icd26ca44cdf7079f43738cd38a511953aaae78c8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The UID restriction has no effect, since any code capable of calling
vaSetDriverName() can also edit the internals of the structure itself.
(This check was inherited from the environment variable setting, where
it does do something.)
The name whitelist prevents loading drivers not currently named on the
list, such as the Mesa and V4L2-request drivers. I don't believe there
is any reason to prevent loading another driver, and it is already
possible via the LIBVA_DRIVER_NAME environment variable.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
| |
Bump VA-API version to 1.4.0 pre1 and libva to 2.4.0 pre1
Signed-off-by: XinfengZhang <carl.zhang@intel.com>
|
|
|
|
|
|
| |
Bump VA-API version to 1.3.0 pre1 and libva to 2.3.0
Signed-off-by: XinfengZhang <carl.zhang@intel.com>
|
|
|
|
|
|
| |
Update NEWS and Bump VA API version to 1.2.0
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
|
|
|
|
|
|
|
| |
Add new VA STATUS ERROR to indicate allocated buffer size is
not enough for input or output.
Signed-off-by: ChenXiaomin <xiaomin.chen@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
|
|
| |
when add a new VAStatus type, need to update vaErrorStr.
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
|
|
|
|
|
|
| |
max_display_attributes maybe is zero, because driver dont support display attribute
Signed-off-by: XinfengZhang <carl.zhang@intel.com>
|
|
|
|
| |
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
|
| |
application can query/get attribute of processing rate by VAConfigAttribProcessingRate
and query the processing rate of driver by vaQueryProcessingRate
Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
| |
standard usage: permb control buffer, it is always a 2D buffer related with MB Postion
Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
|
|
|
|
|
|
|
|
| |
This adds a mechanism for drivers to propagate arbitrary log messages
back to the API user. It is intended to be used to replace all use of
logging to stdout/stderr in drivers.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
|
| |
This will be required to set common options on a newly-created driver
context.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
| |
Encode/ENC/Pre-ENC, and VPP in future.
Signed-off-by: Artem Shaporenko artem.shaporenko@intel.com
|
|
|
|
|
|
|
| |
Thanks to Sreerenj Balachandran <sreerenj.balachandran@intel.com> for
noticing this error.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the logging callbacks into the display context, rather than
having them as global state. Add user-context parameter as well so
that users can distinguish between callbacks in different instances.
The default behaviour does not change, and LIBVA_MESSAGING_LEVEL
continues to be respected in that case.
Since we're breaking API here, also rename vaMessageCallback to
VAMessageCallback to be consistent with all other types.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
|
| |
This is slightly cleaner, and will be required to set common
options on a newly-created display.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
| |
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
|
|
| |
ABI was broken in the previous versions, so we will bump the VA API version
to 1.0.0 and library version to 2.0.0 for next release. Some data
structures will be changed or removed in the next commits
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previous to this commit, changing verbosity level
was only possible at build time via the definition
of ENABLE_VA_MESSAGING.
Now it's possible to choose a verbosity level between
{0, 1, 2} by modifying /etc/libva.conf or by setting
the corresponding environment variable LIBVA_MESSAGING_LEVEL.
Signed-off-by: Giuseppe <giuscri@gmail.com>
|
|
|
|
|
|
|
|
| |
/etc/libav.conf was spelled incorrectly,
some lines were bad indented because of
mixed tabs and spaces.
Signed-off-by: Giuseppe <giuscri@gmail.com>
|
|
|
|
|
|
| |
To support older versions, just check if ALOGx are defined.
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
|
|
|
|
|
|
|
|
| |
on by default, but allows optional disabling.
fixes #21
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
|
|
|
|
|
|
| |
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99375
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
|
|
|
|
|
|
|
|
|
| |
This lets any application using libva choose the best way to report
info and error messages to the user, for example graphical application
can open a popup on errors and write info messages in the toolbar.
Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
|
|
|
|
|
|
|
|
|
|
|
| |
The function strncpy() does not guarantee to nul terminate the
destination. In most cases, this cannot be triggered, but it is also
used to parse user environment variables. These are allowed to be longer
than 1023 characters, effectively resulting in an unterminated string.
I've adjusted other places as well, because it won't hurt.
https://bugs.freedesktop.org/show_bug.cgi?id=96677
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Libva has a limited tracing function before. If more than one context is created
in one instance, then this tracing can't work and output wrong log messages.
This patch fixes this problem. Tracing is possible while multiple contexts are
being used.
Each log file name is suffixed by thread id. This file has all log message from
this thread. Each surface or codedbuf dump file name is suffixed by context id.
This file has all surface or codedbuf data of this context.
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
Tested-by: Daniel Charles <daniel.charles@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
|
|
|
|
|
| |
va_GetDriverName fails to find the vdpau driver returning
something != SUCCESS and the driver name is not used at all.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72822
Change-Id: I29ef398bf066badedc25de10873975ad0479dccf
Signed-off-by: Philippe Coval <rzr@gna.org>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sometimes there exist multiple backend vaapi drivers on one system. In such case
user hopes to load the specific driver based on the request. Currently it can
be specified by using LIBVA_DRIVER_NAME environment. But it is not convenient.
So one API is added to allow the user to specify the loaded backend vaapi driver.
And it is called by using the following sequence:
>vaGetDisplay(
>vaSetDriverName(va_dpy, driver_name)
>vaInitialize
V1->V2: Use the reserved space to store override_driver_name based on Haihao's
suggestion.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
|
|
|
|
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 2fb37255e7c9ccb76e65ea74466f5ffafe9c68c0)
Conflicts:
configure.ac
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
|
| |
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 7f1b4be6623f5fe65063581252d2b68bd77fd076)
|
|
|
|
|
| |
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit ce00603a8d58f2e25c7a6bb312f60fda0833e042)
|
|
|
|
|
| |
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit e39ebdd95062995e4bdf082d50bd7d9005a3be6c)
|