[VDPAU] [PATCH] Clarify type of source_surface as VDP_INVALID_HANDLE
Christian König
christian.koenig at amd.com
Wed Aug 27 01:13:45 PDT 2014
Am 26.08.2014 um 23:41 schrieb José Hiram Soltren:
> (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 at amd.com>
> ---
> 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
More information about the VDPAU
mailing list