summaryrefslogtreecommitdiffstats
path: root/src/plugins/multimedia/ffmpeg/qffmpegvaapisymbols.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rework dependencies stubs for FFmpegArtem Dyomin2024-05-141-127/+0
| | | | | | | | | | | | | | | | * Move the stub utils from the plugin to QtMM so that shared stubs could reuse them. * Make the stubs as singletons instead of a static object to address initialization races and allow lazy loading (it's optional now). * Decouple stubs definition: one file and singleton per stubbed lib. It gives us an advantage to create shared stubs separately, they are to be implemented in the next CR. Task-number: QTBUG-120990 Pick-to: 6.7 6.5 Change-Id: I2158a49073b1e66d1bbfcb993b7746a4bd45048f Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* FFmpeg/VAAPI: Enable finding libva shared libraries from cacheLars Sutterud2024-05-021-3/+4
| | | | | | | | | | | | | | | | | | This change prevents an issue where Qt fails to load the VA-API shared library libva, even though FFmpeg manages to find it. By adding the version number of the latest libva.so file as an argument to the overloaded function QLibrary::resolve, we make it possible for Qt to find libva in the cache if FFmpeg has already loaded it. Libva so files are numbered with VA-API version + 1, according to the source files: https://github.com/intel/libva/blob/master/configure.ac#L64 E.g. VA-API version 1.14 generates the filename libva.so.2 Pick-to: 6.7 6.5 Task-number: QTBUG-124586 Change-Id: I76c5a13d5f421272cff0ccfc613ec7cf0b148b06 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
* Remove deprecated avcodec_closePavel Dubsky2024-04-271-1/+4
| | | | | | | | | | | Since FFmpeg n7.0 avcodec_close is marked as deprecated. According to the documentation avcodec_free_context should be used which is already true therefore the removal shouldn't cause any problems. Task-number: QTBUG-124482 Pick-to: 6.7.1 6.7 6.5 Change-Id: Ia2bdec8e9560441f99cc159b341ef60c1a39e88f Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
* Fix build with vaapi versions < 1.9.0Artem Dyomin2023-11-101-1/+6
| | | | | | | | | The function vaSyncBuffer was introduced in 1.9.0. Task-number: QTBUG-118510 Pick-to: 6.6 6.5 Change-Id: Icebabc981de1fa5e1738d092479686221da07987 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
* ffmpeg: guard vaapi includesSamuli Piippo2023-09-081-0/+4
| | | | | | | | Headers might not be available. Pick-to: 6.6 6.5 Change-Id: I1a5e2b9da202e7f19e85f004aa1fc3143d921db5 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
* Implement dynamic resolve vaapi symbolsArtem Dyomin2023-08-311-0/+114
Let's get rid of the linking vaapi dependency, load and resolve in runtime instead. Pick-to: 6.5 6.6 Change-Id: Icbc72470c935c1ae711c5457c8e85e4f96977a3b Reviewed-by: Lars Knoll <lars@knoll.priv.no>