summaryrefslogtreecommitdiff
path: root/va/va.c
Commit message (Collapse)AuthorAgeFilesLines
* libva 2.7.0 pre1Carl Zhang2020-02-171-0/+1
| | | | | | 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>
* fix android build issue and remove some trailing whitespaceCarl Zhang2020-02-101-3/+3
| | | | | | | remove extraneous closing brace fixes #365 Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* adjust call sequence to ensure authenticate operation is executedCarl Zhang2020-01-071-9/+16
| | | | | | fixes #355 Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* enable driver candidate select fucntion for DRMCarl Zhang2019-12-251-4/+11
| | | | | | | | | | 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>
* enable the mutiple driver selection logic inside vaInitializeCarl Zhang2019-12-251-38/+18
| | | | | | | | | 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 backend function pointer to query candidates numberCarl Zhang2019-12-251-6/+48
| | | | | | | | | | | | 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>
* libva 2.6.0 pre1Carl Zhang2019-07-051-0/+1
| | | | | | 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>
* va_openDriver: check strdup return valueXu Guangxin2019-05-091-0/+5
| | | | | | 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.
* add return value into logsintel2019-05-091-27/+122
| | | | | | only take effect when the call failed Signed-off-by: intel <carl.zhang@intel.com>
* libva 2.5.0 pre1intel2019-03-041-0/+1
| | | | | | Bump VA-API version to 1.5.0 pre1 and libva to 2.5.0 pre1 Signed-off-by: intel <carl.zhang@intel.com>
* va: fix new line symbol in error messageVíctor Manuel Jáquez Leal2018-12-191-1/+1
|
* av: avoid driver path truncationVíctor Manuel Jáquez Leal2018-12-191-8/+18
| | | | | | | | | | | 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/
* Fix compilation warning (uninit and wrong variable types) for Android O MR1Badiuzzaman Iskhandar2018-12-191-2/+2
| | | | Signed-off-by: Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@intel.com>
* android: replace utils/Log.h with log/log.hXu Guangxin2018-12-101-1/+1
| | | | | | utils/Log.h and ctuils/Log.h replaced by log/log.h on android Change-Id: Icd26ca44cdf7079f43738cd38a511953aaae78c8
* Remove restrictions on vaSetDriverName()Mark Thompson2018-12-031-32/+0
| | | | | | | | | | | | | | 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>
* libva 2.4.0 pre1XinfengZhang2018-10-231-0/+1
| | | | | | Bump VA-API version to 1.4.0 pre1 and libva to 2.4.0 pre1 Signed-off-by: XinfengZhang <carl.zhang@intel.com>
* libva 2.3.0 pre1XinfengZhang2018-09-301-0/+1
| | | | | | Bump VA-API version to 1.3.0 pre1 and libva to 2.3.0 Signed-off-by: XinfengZhang <carl.zhang@intel.com>
* libva 2.2.0 pre12.2.0.pre1Haihao Xiang2018-06-271-0/+1
| | | | | | Update NEWS and Bump VA API version to 1.2.0 Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
* va: add new VA STATUS ERRORChenXiaomin2018-03-021-0/+2
| | | | | | | 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>
* libva 2.1.1.pre1 for developmentXiang, Haihao2018-02-021-0/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* va: add missing error status/error message map.Jun Zhao2018-01-031-0/+8
| | | | | | when add a new VAStatus type, need to update vaErrorStr. Signed-off-by: Jun Zhao <jun.zhao@intel.com>
* remove max_display_attributes value check.XinfengZhang2018-01-021-1/+0
| | | | | | max_display_attributes maybe is zero, because driver dont support display attribute Signed-off-by: XinfengZhang <carl.zhang@intel.com>
* Add a new interface for exporting surfacesMark Thompson2017-11-221-0/+17
| | | | Signed-off-by: Mark Thompson <sw@jkqxz.net>
* add support for processing ratePing Liu2017-11-211-0/+15
| | | | | | | 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>
* add 2D buffer supportCarl.Zhang2017-11-211-0/+27
| | | | | | standard usage: permb control buffer, it is always a 2D buffer related with MB Postion Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
* Add message callbacks for drivers to useMark Thompson2017-11-211-0/+22
| | | | | | | | 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>
* Move driver context allocation to common codeMark Thompson2017-11-211-0/+11
| | | | | | | This will be required to set common options on a newly-created driver context. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* New VAAPI definition for multi-frame processing applicable for Encode, FEI ↵Artem Shaporenko2017-11-211-0/+90
| | | | | | Encode/ENC/Pre-ENC, and VPP in future. Signed-off-by: Artem Shaporenko artem.shaporenko@intel.com
* Fix returning of old info callbackMark Thompson2017-10-111-1/+1
| | | | | | | Thanks to Sreerenj Balachandran <sreerenj.balachandran@intel.com> for noticing this error. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* Make logging callbacks library-safeMark Thompson2017-09-271-56/+85
| | | | | | | | | | | | | | 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>
* Move VADisplay allocation to common codeMark Thompson2017-09-271-0/+12
| | | | | | | 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>
* Move some common macro definitions to the new internal headerMark Thompson2017-09-271-3/+0
| | | | Signed-off-by: Mark Thompson <sw@jkqxz.net>
* libva 2.0.0.pre1 for developmentXiang, Haihao2017-09-271-8/+0
| | | | | | | | 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>
* Add va_MessagingInit().Giuseppe2017-06-121-0/+20
| | | | | | | | | | | | 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>
* Fix small typos.Giuseppe2017-06-121-6/+6
| | | | | | | | /etc/libav.conf was spelled incorrectly, some lines were bad indented because of mixed tabs and spaces. Signed-off-by: Giuseppe <giuscri@gmail.com>
* android: simplify Android loggingChih-Wei Huang2017-04-261-6/+12
| | | | | | To support older versions, just check if ALOGx are defined. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
* config: Add va_messaging flagSean V Kelley2017-02-061-0/+4
| | | | | | | | on by default, but allows optional disabling. fixes #21 Signed-off-by: Sean V Kelley <seanvk@posteo.de>
* va: Keep compatibility with the backend driver built against 0.39.xXiang, Haihao2017-01-291-0/+1
| | | | | | 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>
* Add callbacks for error and info messages.Emmanuel Gil Peyrot2016-10-271-0/+53
| | | | | | | | | 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>
* Properly terminate parsed environment values with '\0'.Tobias Stoeckmann2016-08-011-2/+6
| | | | | | | | | | | 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
* add the support of multiple context tracingpeng.chen2016-05-131-2/+14
| | | | | | | | | | | | | | | 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>
* Allow loading the backend driver built against VAAPI 0.38Xiang, Haihao2016-03-151-0/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* LIBVA_DRIVER_NAME needs to be used if set at allMatthew Waters2015-11-231-2/+1
| | | | | | | | | 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>
* Bump VA API to 0.38Xiang, Haihao2015-05-221-0/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Add one API to allow the user to specify the loaded backend driverZhao Yakui2015-05-221-3/+88
| | | | | | | | | | | | | | | | 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>
* libva 1.5.0.pre1 for developmentXiang, Haihao2014-12-291-0/+1
| | | | | | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 2fb37255e7c9ccb76e65ea74466f5ffafe9c68c0) Conflicts: configure.ac
* Bump VA API to 0.361.4.0.pre1Xiang, Haihao2014-09-091-0/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* vatrace: fix a overwriteAustin Yuan2014-09-091-1/+1
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 7f1b4be6623f5fe65063581252d2b68bd77fd076)
* vafool: simplify VAFOOLAustin Yuan2014-09-091-23/+11
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit ce00603a8d58f2e25c7a6bb312f60fda0833e042)
* vatrace: make LIBVA_TRACE_SURFACE work even without LIBVA_TRACEAustin Yuan2014-09-091-4/+4
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit e39ebdd95062995e4bdf082d50bd7d9005a3be6c)