summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/vdpau/output.c
diff options
context:
space:
mode:
authorChristian König <deathsimple@vodafone.de>2011-03-18 01:06:41 +0100
committerChristian König <deathsimple@vodafone.de>2011-03-19 00:06:46 +0100
commit49f4aff75ce781fb71383a5ffe44e51e34ff1bf3 (patch)
tree446f60e7dc39b1cc7991609bbe656023102fef2c /src/gallium/state_trackers/vdpau/output.c
parentb90f569a0f8578a20b9ee2997396b6c3ddd3b573 (diff)
vdpau: make indention and formating more sane
Diffstat (limited to 'src/gallium/state_trackers/vdpau/output.c')
-rw-r--r--src/gallium/state_trackers/vdpau/output.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c
index 20097eaf98c..90c66481d0a 100644
--- a/src/gallium/state_trackers/vdpau/output.c
+++ b/src/gallium/state_trackers/vdpau/output.c
@@ -31,34 +31,34 @@
#include <util/u_memory.h>
VdpStatus
-vlVdpOutputSurfaceCreate ( VdpDevice device,
- VdpRGBAFormat rgba_format,
- uint32_t width, uint32_t height,
- VdpOutputSurface *surface)
+vlVdpOutputSurfaceCreate(VdpDevice device,
+ VdpRGBAFormat rgba_format,
+ uint32_t width, uint32_t height,
+ VdpOutputSurface *surface)
{
- vlVdpOutputSurface *vlsurface = NULL;
-
- debug_printf("[VDPAU] Creating output surface\n");
- if (!(width && height))
- return VDP_STATUS_INVALID_SIZE;
-
- vlVdpDevice *dev = vlGetDataHTAB(device);
- if (!dev)
+ vlVdpOutputSurface *vlsurface = NULL;
+
+ debug_printf("[VDPAU] Creating output surface\n");
+ if (!(width && height))
+ return VDP_STATUS_INVALID_SIZE;
+
+ vlVdpDevice *dev = vlGetDataHTAB(device);
+ if (!dev)
return VDP_STATUS_INVALID_HANDLE;
-
- vlsurface = CALLOC(1, sizeof(vlVdpOutputSurface));
- if (!vlsurface)
+
+ vlsurface = CALLOC(1, sizeof(vlVdpOutputSurface));
+ if (!vlsurface)
return VDP_STATUS_RESOURCES;
-
- vlsurface->width = width;
- vlsurface->height = height;
- vlsurface->format = FormatRGBAToPipe(rgba_format);
-
- *surface = vlAddDataHTAB(vlsurface);
+
+ vlsurface->width = width;
+ vlsurface->height = height;
+ vlsurface->format = FormatRGBAToPipe(rgba_format);
+
+ *surface = vlAddDataHTAB(vlsurface);
if (*surface == 0) {
FREE(dev);
- return VDP_STATUS_ERROR;
+ return VDP_STATUS_ERROR;
}
-
- return VDP_STATUS_OK;
-} \ No newline at end of file
+
+ return VDP_STATUS_OK;
+}