[VDPAU] [PATCH] Clarify type of source_surface

José Hiram Soltren jsoltren at nvidia.com
Tue Aug 26 14:24:49 PDT 2014


This is in response to the "Interpretation of the
VdpOutputSurfaceRender{Bitmap, Output}Surface spec" thread that Emil started
earlier today. Note that the authoritative version of the VDPAU API and
documentation is the version hosted on freedesktop.org. At some point in the
future, NVIDIA will update the HTML version of the VDPAI API documentation
hosted at http://http.download.nvidia.com/XFree86/vdpau/doxygen/html/index.html
and similar sites.

I propose this patch per Stephen Warren's earlier feedback:

VDPAU takes special action if source_surface is VDP_INVALID_HANDLE,
not if it is NULL.
---
 include/vdpau/vdpau.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vdpau/vdpau.h b/include/vdpau/vdpau.h
index 8135ffa..b25a7e6 100644
--- a/include/vdpau/vdpau.h
+++ b/include/vdpau/vdpau.h
@@ -2262,8 +2262,8 @@ typedef struct {
  *       missing components are treated as 1.0. For example, for
  *       an A8 VdpOutputSurface, alpha will come from the surface
  *       but red, green and blue will be treated as 1.0. If
- *       source_surface is NULL, all components will be treated
- *       as 1.0. Note that destination_surface and
+ *       source_surface is VDP_INVALID_HANDLE, all components will
+ *       be treated as 1.0. Note that destination_surface and
  *       source_surface must have been allocated via the same
  *       \ref VdpDevice "VdpDevice".
  * \param[in] source_rect The sub-rectangle of the source
-- 
1.7.10.4


More information about the VDPAU mailing list