[VDPAU] [PATCH] Clarify type of source_surface as VDP_INVALID_HANDLE
Aaron Plattner
aplattner at nvidia.com
Thu Aug 28 09:24:28 PDT 2014
On 08/27/2014 01:13 AM, Christian König wrote:
> 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>
Thanks guys. Pushed:
6cb973e59d7b..a5c724f8d9e7 master -> master
>> ---
>> 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
--
Aaron
More information about the VDPAU
mailing list