summaryrefslogtreecommitdiff
path: root/trace
AgeCommit message (Collapse)AuthorFilesLines
2022-06-03Add tracing for AV1 picture infoHEADmasterManojGuptaBonda1-0/+365
2021-10-28Addition of comma and removing the extra bracessjambekar1-4/+3
The function dump_picture_info() has extra braces in the profiles HEVC_MAIN_444 and VP9. Because of this, the additoinal braces are added in the trace file generated by the applications like ffmpeg, mplayer and so on. The client of this generated trace file, like the python scripts that read this trace file, run into into the problem of wrongly reading the picture info or incomplete reading of picture info. Also, there was a comma missing in the VP9 profile in the dump_picture_info(). This again creates the problem of generating a trace file without a comma, which again leads to wrongly reading the picture info. To avoid this problem of wrongly reading or incomplete reading of picture info, extra braces have been removed and an additional comma is introduced in the dump_picture_info().
2020-07-29Add tracing for HEVCRangeExt picture infoManojGuptaBonda1-1/+280
2020-07-29Add tracing for VP9 picture infoManojGuptaBonda1-0/+154
2019-02-28Switch the build system to MesonAaron Plattner2-18/+8
Modify the dlclose test to pick up libvdpau.so from the right place Rename doc/Doxyfile to doc/Doxyfile.in and use Meson's configuration file support to generate the Doxyfile. Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2015-08-31Use secure_getenv(3) to improve securityJosé Hiram Soltren1-3/+5
This patch is in response to the following security vulnerabilities (CVEs) reported to NVIDIA against libvdpau: CVE-2015-5198 CVE-2015-5199 CVE-2015-5200 To address these CVEs, this patch: - replaces all uses of getenv(3) with secure_getenv(3); - uses secure_getenv(3) when available, with a fallback option; - protects VDPAU_DRIVER against directory traversal by checking for '/' On platforms where secure_getenv(3) is not available, the C preprocessor will print a warning at compile time. Then, a preprocessor macro will replace secure_getenv(3) with our getenv_wrapper(), which utilizes the check: getuid() == geteuid() && getgid() == getegid() See getuid(2) and getgid(2) for further details. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Florian Weimer <fweimer@redhat.com>
2015-05-27Add tracing for HEVC picture infoBibhuti Prusty1-0/+237
Signed-off-by: Bibhuti Bhushan Prusty <bprusty@nvidia.com> Reviewed-by: José Hiram Soltren <jsoltren@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2014-09-08vdpau_trace: Fix GCC 4.8 build warningsRobert Morell1-2/+2
vdpau_trace.cpp: In function 'void _vdp_cap_dump_video_mixer_attribute_value(VdpVideoMixerAttribute, const void*, bool)': vdpau_trace.cpp:539:48: error: cast from type 'const void*' to type 'const float (**)[3][4]' casts away qualifiers [-Werror=cast-qual] ptr = *(VdpCSCMatrix const * *)value; ^ vdpau_trace.cpp: In function 'void _vdp_cap_dump_bitstream_buffer_list(uint32_t, const VdpBitstreamBuffer*)': vdpau_trace.cpp:1175:52: error: cast from type 'const void* const' to type 'uint8_t* {aka unsigned char*}' casts away qualifiers [-Werror=cast-qual] uint8_t * ptr = (uint8_t * )buffers[0].bitstream; ^ Signed-off-by: Robert Morell <rmorell@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2014-07-19trace: properly annotate private functions as staticEmil Velikov1-3/+3
The following three were never a part of the public API and as such should have never been exported by libvdpau_trace.so Correct that by marking them as static, thus allowing the compiler to hide them from the exported namespace. _vdp_cap_init_planes_adapt_surface_video _vdp_cap_init_planes_adapt_surface_bitmap _vdp_cap_init_planes_adapt_surface_output Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2014-01-28trace: remove trailing whitespaceEmil Velikov1-6/+6
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-08-01trace: delete unused _vdp_cap_dump_pointAaron Plattner1-17/+0
Nothing actually uses VdpPoint, so this tracing function was never called. I left the VdpPoint type in vdpau.h for now, just in case anyone actually uses it themselves. Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-02-01trace: fix Coverity dead code warningsKiran Pawar1-4/+2
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2010-01-28trace: Fix a picture info bracket mismatch.Stephen Warren1-1/+1
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2009-11-17Move VDPAU drivers into their own module directory.Aaron Plattner1-2/+2
* Add a --with-module-dir configure parameter. * Pass the moduledir into the wrapper. Use it to construct the path to search for drivers. Require drivers to end in a ".1" version, in case we ever want to rev. the interface between the wrapper and the drivers. * If no driver is found in the new module dir, look for one in the default search paths. This is intended to find libvdpau_nvidia.so for drivers that predate the change to move it, and can be removed in the future. * Stash the moduledir into vdpau.pc. Drivers can find this with `pkg-config --variable=moduledir vdpau`. * Add a version to libvdpau_trace.so in case the interface between it and libvdpau.so ever changes. * Install libvdpau_trace.so.1 to moduledir instead of libdir. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com>
2009-09-04Updates for the NVIDIA 190.32 driver release.Aaron Plattner1-0/+56
Add profiles for MPEG-4 part 2, DivX 4, and DivX 5. Also add new high quality scaling options.
2009-09-02Add a check for -ldl, stolen from xorg-server's configure.ac.Aaron Plattner1-0/+3
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2009-07-08libvdpau_trace cleanupsAaron Plattner1-213/+480
2009-03-15VDPAU trace: Dump picture info for H.264 and VC-1Aaron Plattner1-40/+158
2009-03-15Trace VDP_VIDEO_MIXER_ATTRIBUTE_SKIP_CHROMA_DEINTERLACEAaron Plattner1-0/+3
I forgot to include this change in commit 1290f7c190e38f483b0203e932715a68b899e35c.
2009-01-14Disable static libraries by default and remove version info from libvdpau_trace.Aaron Plattner1-1/+1
2009-01-13Add autoconf stuff.Aaron Plattner1-0/+15
2009-01-13Initial commit.Aaron Plattner1-0/+4293