aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/surface.c
diff options
context:
space:
mode:
authorEmeric Grange <[email protected]>2011-09-12 23:39:30 +0200
committerChristian König <[email protected]>2011-09-14 15:49:16 +0200
commitfa2a8316cebeb75626ffa3e38dbc1500e82054f6 (patch)
tree18d6db91740b543df72d6586bfb1397aeea4d7ce /src/gallium/state_trackers/vdpau/surface.c
parentc24bc6f8684abee8c9a1b263334cd7a8506657b1 (diff)
st/vdpau: Add documentation from the VDPAU API and update some traces
Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/surface.c')
-rw-r--r--src/gallium/state_trackers/vdpau/surface.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
index 4f73c40a06b..77503cfff49 100644
--- a/src/gallium/state_trackers/vdpau/surface.c
+++ b/src/gallium/state_trackers/vdpau/surface.c
@@ -36,6 +36,9 @@
#include "vdpau_private.h"
+/**
+ * Create a VdpVideoSurface.
+ */
VdpStatus
vlVdpVideoSurfaceCreate(VdpDevice device, VdpChromaType chroma_type,
uint32_t width, uint32_t height,
@@ -97,6 +100,9 @@ inv_size:
return ret;
}
+/**
+ * Destroy a VdpVideoSurface.
+ */
VdpStatus
vlVdpVideoSurfaceDestroy(VdpVideoSurface surface)
{
@@ -113,6 +119,9 @@ vlVdpVideoSurfaceDestroy(VdpVideoSurface surface)
return VDP_STATUS_OK;
}
+/**
+ * Retrieve the parameters used to create a VdpVideoSurface.
+ */
VdpStatus
vlVdpVideoSurfaceGetParameters(VdpVideoSurface surface,
VdpChromaType *chroma_type,
@@ -132,6 +141,10 @@ vlVdpVideoSurfaceGetParameters(VdpVideoSurface surface,
return VDP_STATUS_OK;
}
+/**
+ * Copy image data from a VdpVideoSurface to application memory in a specified
+ * YCbCr format.
+ */
VdpStatus
vlVdpVideoSurfaceGetBitsYCbCr(VdpVideoSurface surface,
VdpYCbCrFormat destination_ycbcr_format,
@@ -152,6 +165,10 @@ vlVdpVideoSurfaceGetBitsYCbCr(VdpVideoSurface surface,
return VDP_STATUS_NO_IMPLEMENTATION;
}
+/**
+ * Copy image data from application memory in a specific YCbCr format to
+ * a VdpVideoSurface.
+ */
VdpStatus
vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface,
VdpYCbCrFormat source_ycbcr_format,