trace: properly annotate private functions as static

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>
vdpau: do not export _vdp_DRI2* functions

Neither one is part of the public API, thus should never be used outside
of the library itself.

Add macro PRIVATE, that is used to annotate the function visibility by
setting __attribute__((visibility("hidden"))).

v2: Provide only PRIVATE macro. Requested by Aaron.

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>
Clarify type of source_surface as VDP_INVALID_HANDLE

(version 2, supercedes "Clarify type of source_surface")

VDPAU takes special action if source_surface is VDP_INVALID_HANDLE,
not if it is NULL, in both VdpOutputSurfaceRenderOutputSurface
and VdpOutputSurfaceRenderBitmapSurface.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>