vdpau: Add support for mixer attributes
[mesa.git] / src / gallium / state_trackers / vdpau / bitmap.c
index f1a9d9a6828d6391fad5b33de1a1920533f0763c..8c7dbe529e854ee2670e2c8ae05832d809c3cb9a 100644 (file)
  **************************************************************************/
 
 #include <vdpau/vdpau.h>
+
 #include "vdpau_private.h"
-#include <util/u_debug.h>
 
+/**
+ * Create a VdpBitmapSurface.
+ */
 VdpStatus
-vlVdpBitmapSurfaceCreate(      VdpDevice device, 
-                                                       VdpRGBAFormat rgba_format, 
-                                                       uint32_t width, uint32_t height, 
-                                                       VdpBool frequently_accessed, 
-                                                       VdpBitmapSurface *surface)
+vlVdpBitmapSurfaceCreate(VdpDevice device,
+                         VdpRGBAFormat rgba_format,
+                         uint32_t width, uint32_t height,
+                         VdpBool frequently_accessed,
+                         VdpBitmapSurface *surface)
 {
-       debug_printf("[VDPAU] Creating a bitmap surface\n");
-       if (!surface)
-               return VDP_STATUS_INVALID_POINTER;
+   VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating a bitmap surface\n");
+   if (!surface)
+      return VDP_STATUS_INVALID_POINTER;
 
-       return VDP_STATUS_NO_IMPLEMENTATION;
+   return VDP_STATUS_NO_IMPLEMENTATION;
 }
 
+/**
+ * Destroy a VdpBitmapSurface.
+ */
 VdpStatus
-vlVdpBitmapSurfaceDestroy ( VdpBitmapSurface  surface )
+vlVdpBitmapSurfaceDestroy(VdpBitmapSurface surface)
 {
-       
-       return VDP_STATUS_NO_IMPLEMENTATION;
+   return VDP_STATUS_NO_IMPLEMENTATION;
 }
 
+/**
+ * Retrieve the parameters used to create a VdpBitmapSurface.
+ */
 VdpStatus
-vlVdpBitmapSurfaceGetParameters (      VdpBitmapSurface  surface,
-                                                                       VdpRGBAFormat  *rgba_format, 
-                                                                       uint32_t *width, uint32_t *height, 
-                                                                       VdpBool  *frequently_accessed)
+vlVdpBitmapSurfaceGetParameters(VdpBitmapSurface surface,
+                                VdpRGBAFormat *rgba_format,
+                                uint32_t *width, uint32_t *height,
+                                VdpBool *frequently_accessed)
 {
-       if (!(rgba_format && width && height && frequently_accessed))
-               return VDP_STATUS_INVALID_POINTER;
-       
-       return VDP_STATUS_NO_IMPLEMENTATION;
+   if (!(rgba_format && width && height && frequently_accessed))
+      return VDP_STATUS_INVALID_POINTER;
+
+   return VDP_STATUS_NO_IMPLEMENTATION;
 }
 
+/**
+ * Copy image data from application memory in the surface's native format to
+ * a VdpBitmapSurface.
+ */
 VdpStatus
-vlVdpBitmapSurfacePutBitsNative (      VdpBitmapSurface  surface, 
-                                                                       void const *const *source_data, 
-                                                                       uint32_t const *source_pitches, 
-                                                                       VdpRect  const *destination_rect )
+vlVdpBitmapSurfacePutBitsNative(VdpBitmapSurface surface,
+                                void const *const *source_data,
+                                uint32_t const *source_pitches,
+                                VdpRect const *destination_rect)
 {
-       if (!(source_data && source_pitches && destination_rect))
-               return VDP_STATUS_INVALID_POINTER;
-       
-       return VDP_STATUS_NO_IMPLEMENTATION;
-}
\ No newline at end of file
+   if (!(source_data && source_pitches && destination_rect))
+      return VDP_STATUS_INVALID_POINTER;
+
+   return VDP_STATUS_NO_IMPLEMENTATION;
+}