summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* remove deprecated variable from va_trace.cHEADmasterCarl Zhang2020-10-191-4/+0
| | | | | | fix the build warning caused by 1c5de1eb22007a5816cd831745e3c1b169bf34d0 Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* Use va_deprecatedHirokazu Honda2020-10-191-4/+3
| | | | Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
* Mark chroma_sample_position as deprecatedHirokazu Honda2020-10-191-0/+1
| | | | Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
* va/va_trace: ignore system gettid() on LinuxJan Beich2020-10-161-7/+6
| | | | | | glibc could probably use `__GLIBC_PREREQ(2, 30)` but musl doesn't expose version to consumers. Instead of dancing around various libc always use local definition.
* CI: add FreeBSD jobJan Beich2020-10-161-0/+13
| | | | Unlike Linux it uses Meson/Clang to improve coverage.
* va/va: don't try to use RTLD_NODELETE on non-Android if not availableJan Beich2020-10-161-1/+1
| | | | | | ../va/va.c:455:64: error: use of undeclared identifier 'RTLD_NODELETE' handle = dlopen( driver_path, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE ); ^
* autotools: avoid -ldl if not required or not supportedJan Beich2020-10-162-5/+10
| | | | ld: error: unable to find library -ldl
* build: respect SYSCONFDIR for libva.confJan Beich2020-10-164-4/+7
| | | | On DragonFly and FreeBSD config are installed to /usr/local/etc by default.
* autotools: unbreak --enable-wayland with BSD sedJan Beich2020-10-161-1/+1
| | | | | | | | | BSD sed doesn't support inlining argument for `i` command, so embed newlines as proposed in http://austingroupbugs.net/view.php?id=249 GEN wayland-drm-client-protocol.c sed: 1: "1i#include "sysdeps.h" ": command i expects \ followed by text
* va/va_trace: implement gettid() for BSDsJan Beich2020-10-161-5/+34
| | | | | | | | | | | | | | | ../va/va_trace.c:291:28: error: use of undeclared identifier '__NR_gettid' pid_t thd_id = syscall(__NR_gettid); ^ ../va/va_trace.c:669:28: error: use of undeclared identifier '__NR_gettid' pid_t thd_id = syscall(__NR_gettid); ^ ../va/va_trace.c:708:28: error: use of undeclared identifier '__NR_gettid' pid_t thd_id = syscall(__NR_gettid); ^ ../va/va_trace.c:1234:28: error: use of undeclared identifier '__NR_gettid' pid_t thd_id = syscall(__NR_gettid); ^
* add a bufer type to adjust context priority dynamicallyCarl Zhang2020-10-152-1/+32
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* libva 2.10.0.pre1Carl Zhang2020-10-152-2/+2
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* update NEWS for 2.9.0Carl Zhang2020-09-111-1/+13
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* Add comments for backward/forward reference to avoid confusionChen, Jason K2020-09-111-2/+2
|
* Refine the va_TraceVAPictureParameterBufferAV1.He Junyan2020-09-071-37/+129
| | | | Signed-off-by: He Junyan <junyan.he@intel.com>
* Add SCC fields trace for HEVC SCC encoding.2.9.0.pre2He Junyan2020-08-211-0/+6
| | | | Signed-off-by: He Junyan <junyan.he@intel.com>
* Modify comments in av1 decoder interfacesHirokazu Honda2020-08-171-4/+9
| | | | Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
* Add FOURCC code for Y212 and Y412 format.Yan Wang2020-08-131-0/+12
| | | | Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
* Update mailing listSherry Lin2020-08-072-2/+2
| | | | | | Fixes #411 Signed-off-by: Sherry Lin <sherry.lin@intel.com>
* Add interpolation method for scaling.2.9.0.pre1FurongZhang2020-07-222-0/+10
| | | | Signed-off-by: FurongZhang <furong.zhang@intel.com>
* add attributes for context priority settingCarl Zhang2020-07-192-0/+17
| | | | | | | application could set priority for each VAContext then HW will check the priority for the tasks related with the VAContext Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* libva 2.9.0 pre1Carl Zhang2020-07-162-3/+3
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* Add vaSyncBuffer for output buffers synchronizationDmitry Ermilov2020-06-305-1/+93
| | | | | | Added notes about different ways for synchronization. Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
* Add vaSyncSurface2 with timeoutDmitry Ermilov2020-06-235-1/+84
| | | | | | Fixes #397 Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
* update NEWS for 2.8.0Carl Zhang2020-06-221-1/+25
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* va_trace:enable return value trace for successful function callCarl Zhang2020-06-171-3/+0
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* trace: divide va_TraceEndPicture to two seperate functionCarl Zhang2020-06-173-8/+21
| | | | | | seperate the log and dump Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* va_trace: add support for VAProfileHEVCSccMain444_10Haihao Xiang2020-06-161-2/+5
|
* Fixes file descriptor leakGavin Stark2020-06-092-2/+8
| | | | | | | | | | | | | | If code calls va_isDRI2Connected multiple times there is no protection against calling open(device_name, O_RDWR) again and losing the reference to the original file descriptor. A recent change (bc8a12) calls the method twice each time libva is initialized, thus causing a leak of device file descriptors. This change moves the initializing of the fd and auth_type to the creation of the dri_state and then checks to see if they have already been initialized. If so, the method va_isDRIConnected returns true and fills in driver_name.
* add fourcc code for P012 formatXinpeng Sun2020-06-091-0/+6
| | | | Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com>
* travis: Add a test that code files don't have the exec bit setMichael Weiss2020-06-051-1/+7
| | | | | | | | | | C source code and header files shouldn't be executable. This is a problem that already occurred pretty often in the past and was e.g. fixed in 5d8c5ae, be95415, and 8352ab9. Therefore it seems like a good idea to add a CI check to prevent this issue from reappearing (probably mostly accidents due to wrong Git configurations, etc.). Signed-off-by: Michael Weiss <dev.primeos@gmail.com>
* Remove the execute bit from all source code filesMichael Weiss2020-06-054-0/+0
| | | | | | | | | | C source code and header files shouldn't be executable. When building libva via Meson the affected files would be installed with the execute file mode bit set (with GNU Autotools this wasn't the case). To check: find -name '*.[ch]' -executable Signed-off-by: Michael Weiss <dev.primeos@gmail.com>
* meson: Allow for libdir and includedir to be absolute pathsMichael Weiss2020-06-052-3/+3
| | | | | | | | | | | | | | Meson allows to use absolute paths for libdir and includedir [0]. But if they're absolute paths one must not append the prefix. The join_paths() function [1] nicely supports both relative and absolute paths. This is e.g. important for Nixpkgs (i.e. Nix(OS)) where binaries and library files are usually installed under different prefixes. [0]: https://github.com/mesonbuild/meson/commit/a513bcfde613f2a0403f7b0cd34d4bd62674c1d8 [1]: https://mesonbuild.com/Reference-manual.html#join_paths Signed-off-by: Michael Weiss <dev.primeos@gmail.com>
* Fix format string warningsJiri Kucera2020-05-251-9/+9
|
* Fix clang warning (reading garbage)Jiri Kucera2020-05-251-2/+2
| | | | | | | | | | | In function `vaCopySurfaceGLX_impl_libva`, if `pSurfaceGLX->gl_context` points to `struct OpenGLContextState` memory object with all its members set to 0, the first call of `gl_set_current_context` returns true without setting the `old_cs`. Then, in the following next call of `gl_set_current_context`, `&old_cs` will point to random data on the stack. Similarly for `vaDestroySurfaceGLX_impl_libva`.
* add definition to enforce both reflist not emptyCarl Zhang2020-05-251-0/+2
| | | | | | | it is a suppliment of https://github.com/intel/libva/pull/220 to distinguish P frame and low delay B frame Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* vatrace: List correct field names in va_TraceVAPictureParameterBufferHEVCRuben Gonzalez2020-05-111-1/+1
| | | | | | Original field names were copied from va_TraceVAPictureParameterBufferH264 Signed-off-by: Ruben Gonzalez <rgonzalez@fluendo.com>
* change the return value to be UNIMPLEMENTED when the function pointer is NULLCarl Zhang2020-05-111-1/+1
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* remove check of vaPutSurface implementationCarl Zhang2020-05-111-1/+0
| | | | | | | Fixes #361 some backend driver does not implement vaPutSurface Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* Add new slice structure flag for CAPS reportingAlexei Leonenko2020-04-221-2/+6
| | | | | | Introduce new CAPS flag, fix typos in flag descriptions. Signed-off-by: Alexei Leonenko <alexei.leonenko@intel.com>
* VA/X11: VAAPI driver mapping for iris DRI driverU. Artie Eoff2020-04-171-0/+2
| | | | | | Fixes #396 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* VA/X11: enable driver candidate selection for DRI2U. Artie Eoff2020-04-171-14/+112
| | | | | | | Map the i965 DRI driver to iHD and i965 vaapi driver candidates. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* Add SCC flags to enable/disable featuresTianhao Liu2020-04-161-2/+23
| | | | | | Enable/Disable IBC and palette mode Signed-off-by: Tianhao Liu <tianhao.liu@intel.com>
* Fix HDR10 MaxCLL and MaxFALL documentationU. Artie Eoff2020-04-131-4/+4
| | | | | | | | | | | | MaxCLL and MaxFALL should be in units of 1 nit as specified in CEA-861.3, Appendix A. A uint16_t is not large enough to specify the full range of possible MaxCLL/MaxFALL values in units of 0.0001 cd/m^2. So conclude that the documentation was just a copy/paste error. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* Add VAProfileHEVCSccMain444_10 for HEVCTianhao Liu2020-04-072-1/+3
| | | | Signed-off-by: Tianhao Liu <tianhao.liu@intel.com>
* libva 2.8.0 pre1Carl Zhang2020-04-072-3/+3
| | | | | | Bump VA-API version to 1.8.0 pre1 and libva to 2.8.0 pre1 Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* change the compatible list to be dynamic oneCarl Zhang2020-04-071-12/+8
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* Convert VAProfileAV1Profile0 VAProfileAV1Profile1 to stringTianhao Liu2020-04-021-0/+2
| | | | Signed-off-by: Tianhao Liu <tianhao.liu@intel.com>
* update NEWS for 2.7.0Carl Zhang2020-03-271-2/+11
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* [trace] av1 decode buffers traceIlya Sergeev2020-03-191-2/+179
|