summaryrefslogtreecommitdiff
path: root/va
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.
* 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-161-5/+5
| | | | ld: error: unable to find library -ldl
* build: respect SYSCONFDIR for libva.confJan Beich2020-10-163-2/+3
| | | | 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* [trace] av1 decode buffers traceIlya Sergeev2020-03-191-2/+179
|
* Add HEVC REXT and SCC trace for decoding.Yan Wang2020-03-181-3/+184
| | | | Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
* add matrix_coefficients into VADecPictureParameterBufferAV12.7.0.pre1Carl Zhang2020-03-051-0/+3
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* change the variable name style of va_dec_av1Carl Zhang2020-03-051-8/+9
| | | | Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* change the format of va_dec_av1.h to unix styleCarl Zhang2020-03-051-656/+656
| | | | | | Fixes #384 and delete trailing white space Signed-off-by: Carl Zhang <carl.zhang@intel.com>
* am: include va_dec_av1.h in makefile.amU. Artie Eoff2020-03-041-0/+1
| | | | | | Fixes #382 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* Add av1 decode interfaceszefuli2020-03-043-2/+663
| | | | Signed-off-by: zefuli <zefu.li@intel.com>
* Return error when no va devices available.Lepton Wu2020-02-261-4/+4
| | | | Signed-off-by: Lepton Wu <ytht.net@gmail.com>
* 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>
* Add 2 FourCC for 10bit RGB(without Alpha) format: X2R10G10B10 and X2B10G10R10.Furong Zhang2020-02-121-0/+8
| | | | Signed-off-by: Furong Zhang <furong.zhang@intel.com>
* fix android build issue and remove some trailing whitespaceCarl Zhang2020-02-102-4/+3
| | | | | | | remove extraneous closing brace fixes #365 Signed-off-by: Carl Zhang <carl.zhang@intel.com>