[VDPAU] [PATCH] Clarify type of source_surface as VDP_INVALID_HANDLE
José Hiram Soltren
jsoltren at nvidia.com
Tue Aug 26 14:41:06 PDT 2014
(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.
---
include/vdpau/vdpau.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/vdpau/vdpau.h b/include/vdpau/vdpau.h
index 8135ffa..8141de3 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
@@ -2342,8 +2342,8 @@ typedef VdpStatus VdpOutputSurfaceRenderOutputSurface(
* missing components are treated as 1.0. For example, for
* an A8 VdpBitmapSurface, 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