summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/presentation.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-03-18 01:06:41 +0100
committerChristian König <[email protected]>2011-03-19 00:06:46 +0100
commit49f4aff75ce781fb71383a5ffe44e51e34ff1bf3 (patch)
tree446f60e7dc39b1cc7991609bbe656023102fef2c /src/gallium/state_trackers/vdpau/presentation.c
parentb90f569a0f8578a20b9ee2997396b6c3ddd3b573 (diff)
vdpau: make indention and formating more sane
Diffstat (limited to 'src/gallium/state_trackers/vdpau/presentation.c')
-rw-r--r--src/gallium/state_trackers/vdpau/presentation.c132
1 files changed, 64 insertions, 68 deletions
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
index 5f545d0bb27..d4f67379ed2 100644
--- a/src/gallium/state_trackers/vdpau/presentation.c
+++ b/src/gallium/state_trackers/vdpau/presentation.c
@@ -31,119 +31,115 @@
#include <util/u_memory.h>
VdpStatus
-vlVdpPresentationQueueTargetDestroy (VdpPresentationQueueTarget presentation_queue_target)
+vlVdpPresentationQueueTargetDestroy(VdpPresentationQueueTarget presentation_queue_target)
{
-
- return VDP_STATUS_NO_IMPLEMENTATION;
+ return VDP_STATUS_NO_IMPLEMENTATION;
}
VdpStatus
-vlVdpPresentationQueueCreate ( VdpDevice device,
- VdpPresentationQueueTarget presentation_queue_target,
- VdpPresentationQueue *presentation_queue)
+vlVdpPresentationQueueCreate(VdpDevice device,
+ VdpPresentationQueueTarget presentation_queue_target,
+ VdpPresentationQueue *presentation_queue)
{
- debug_printf("[VDPAU] Creating PresentationQueue\n");
- VdpStatus ret;
- vlVdpPresentationQueue *pq = NULL;
-
- if (!presentation_queue)
- return VDP_STATUS_INVALID_POINTER;
-
+ debug_printf("[VDPAU] Creating PresentationQueue\n");
+ VdpStatus ret;
+ vlVdpPresentationQueue *pq = NULL;
+
+ if (!presentation_queue)
+ return VDP_STATUS_INVALID_POINTER;
+
vlVdpDevice *dev = vlGetDataHTAB(device);
if (!dev)
return VDP_STATUS_INVALID_HANDLE;
vlVdpPresentationQueueTarget *pqt = vlGetDataHTAB(presentation_queue_target);
if (!pqt)
- return VDP_STATUS_INVALID_HANDLE;
-
- if (dev != pqt->device)
- return VDP_STATUS_HANDLE_DEVICE_MISMATCH;
+ return VDP_STATUS_INVALID_HANDLE;
+
+ if (dev != pqt->device)
+ return VDP_STATUS_HANDLE_DEVICE_MISMATCH;
pq = CALLOC(1, sizeof(vlVdpPresentationQueue));
if (!pq)
return VDP_STATUS_RESOURCES;
-
- *presentation_queue = vlAddDataHTAB(pq);
+
+ *presentation_queue = vlAddDataHTAB(pq);
if (*presentation_queue == 0) {
ret = VDP_STATUS_ERROR;
goto no_handle;
}
-
- return VDP_STATUS_OK;
- no_handle:
- FREE(pq);
- return ret;
+ return VDP_STATUS_OK;
+no_handle:
+ FREE(pq);
+ return ret;
}
VdpStatus
-vlVdpPresentationQueueDestroy (VdpPresentationQueue presentation_queue)
+vlVdpPresentationQueueDestroy(VdpPresentationQueue presentation_queue)
{
-
- return VDP_STATUS_NO_IMPLEMENTATION;
+ return VDP_STATUS_NO_IMPLEMENTATION;
}
VdpStatus
-vlVdpPresentationQueueSetBackgroundColor ( VdpPresentationQueue presentation_queue,
- VdpColor *const background_color)
+vlVdpPresentationQueueSetBackgroundColor(VdpPresentationQueue presentation_queue,
+ VdpColor *const background_color)
{
- if (!background_color)
- return VDP_STATUS_INVALID_POINTER;
-
- return VDP_STATUS_NO_IMPLEMENTATION;
+ if (!background_color)
+ return VDP_STATUS_INVALID_POINTER;
+
+ return VDP_STATUS_NO_IMPLEMENTATION;
}
VdpStatus
-vlVdpPresentationQueueGetBackgroundColor ( VdpPresentationQueue presentation_queue,
- VdpColor *const background_color)
+vlVdpPresentationQueueGetBackgroundColor(VdpPresentationQueue presentation_queue,
+ VdpColor *const background_color)
{
- if (!background_color)
- return VDP_STATUS_INVALID_POINTER;
-
- return VDP_STATUS_NO_IMPLEMENTATION;
+ if (!background_color)
+ return VDP_STATUS_INVALID_POINTER;
+
+ return VDP_STATUS_NO_IMPLEMENTATION;
}
VdpStatus
-vlVdpPresentationQueueGetTime ( VdpPresentationQueue presentation_queue,
- VdpTime *current_time)
+vlVdpPresentationQueueGetTime(VdpPresentationQueue presentation_queue,
+ VdpTime *current_time)
{
- if (!current_time)
- return VDP_STATUS_INVALID_POINTER;
-
- return VDP_STATUS_NO_IMPLEMENTATION;
+ if (!current_time)
+ return VDP_STATUS_INVALID_POINTER;
+
+ return VDP_STATUS_NO_IMPLEMENTATION;
}
VdpStatus
-vlVdpPresentationQueueDisplay ( VdpPresentationQueue presentation_queue,
- VdpOutputSurface surface,
- uint32_t clip_width,
- uint32_t clip_height,
- VdpTime earliest_presentation_time)
+vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
+ VdpOutputSurface surface,
+ uint32_t clip_width,
+ uint32_t clip_height,
+ VdpTime earliest_presentation_time)
{
-
- return VDP_STATUS_NO_IMPLEMENTATION;
+ return VDP_STATUS_NO_IMPLEMENTATION;
}
VdpStatus
-vlVdpPresentationQueueBlockUntilSurfaceIdle ( VdpPresentationQueue presentation_queue,
- VdpOutputSurface surface,
- VdpTime *first_presentation_time)
+vlVdpPresentationQueueBlockUntilSurfaceIdle(VdpPresentationQueue presentation_queue,
+ VdpOutputSurface surface,
+ VdpTime *first_presentation_time)
{
- if (!first_presentation_time)
- return VDP_STATUS_INVALID_POINTER;
-
- return VDP_STATUS_NO_IMPLEMENTATION;
+ if (!first_presentation_time)
+ return VDP_STATUS_INVALID_POINTER;
+
+ return VDP_STATUS_NO_IMPLEMENTATION;
}
VdpStatus
-vlVdpPresentationQueueQuerySurfaceStatus ( VdpPresentationQueue presentation_queue,
- VdpOutputSurface surface,
- VdpPresentationQueueStatus *status,
- VdpTime *first_presentation_time)
+vlVdpPresentationQueueQuerySurfaceStatus(VdpPresentationQueue presentation_queue,
+ VdpOutputSurface surface,
+ VdpPresentationQueueStatus *status,
+ VdpTime *first_presentation_time)
{
- if (!(status && first_presentation_time))
- return VDP_STATUS_INVALID_POINTER;
-
- return VDP_STATUS_NO_IMPLEMENTATION;
-} \ No newline at end of file
+ if (!(status && first_presentation_time))
+ return VDP_STATUS_INVALID_POINTER;
+
+ return VDP_STATUS_NO_IMPLEMENTATION;
+}