summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorThomas Balling Sørensen <tball@tball-laptop.(none)>2010-10-28 09:40:25 +0200
committerThomas Balling Sørensen <tball@tball-laptop.(none)>2010-10-28 09:40:25 +0200
commitfd2cbe94dfaa98b79c16fb81d7bac84c5c683249 (patch)
tree175cead3761f57e9d98ca7b57460264f942eb503 /src/gallium
parent6b6310e67ce1d2c5729d91c704302282998ed35e (diff)
vl: small typos and stuff
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/va/va_config.c2
-rw-r--r--src/gallium/state_trackers/va/va_private.h4
-rw-r--r--src/gallium/state_trackers/va/va_surface.c112
3 files changed, 60 insertions, 58 deletions
diff --git a/src/gallium/state_trackers/va/va_config.c b/src/gallium/state_trackers/va/va_config.c
index 1bec28c29a2..5756c2f155d 100644
--- a/src/gallium/state_trackers/va/va_config.c
+++ b/src/gallium/state_trackers/va/va_config.c
@@ -42,7 +42,7 @@ VAStatus vlVaConfigProfiles( VADriverContextP ctx,
VAStatus vlVaConfigEntrypoints( VADriverContextP ctx,
VAProfile profile,
- VAEntypoint *entypoint_list,
+ VAEntrypoint *entypoint_list,
int *num_entrypoints)
{
if (!ctx)
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index 3c9922e64fc..bd037c89606 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -40,6 +40,8 @@ VAStatus __vaDriverInit_0_31 (VADriverContextP ctx);
// Private functions:
struct VADriverVTable vlVaGetVtable();
+
+// Vtable functions:
VAStatus vlVaTerminate (VADriverContextP ctx);
VAStatus vlVaQueryConfigProfiles (VADriverContextP ctx, VAProfile *profile_list,int *num_profiles);
VAStatus vlVaQueryConfigEntrypoints (VADriverContextP ctx, VAProfile profile, VAEntrypoint *entrypoint_list, int *num_entrypoints);
@@ -55,7 +57,7 @@ VAStatus vlVaCreateBuffer (VADriverContextP ctx,VAContextID context,VABufferType
VAStatus vlVaBufferSetNumElements (VADriverContextP ctx,VABufferID buf_id,unsigned int num_elements);
VAStatus vlVaMapBuffer (VADriverContextP ctx,VABufferID buf_id,void **pbuf);
VAStatus vlVaUnmapBuffer (VADriverContextP ctx,VABufferID buf_id);
-VAStatus vlVaDestroyBuffers (VADriverContextP ctx,VABufferID buffer_id);
+VAStatus vlVaDestroyBuffer (VADriverContextP ctx,VABufferID buffer_id);
VAStatus vlVaBeginPicture (VADriverContextP ctx,VAContextID context,VASurfaceID render_target);
VAStatus vlVaRenderPicture (VADriverContextP ctx,VAContextID context,VABufferID *buffers,int num_buffers);
VAStatus vlVaEndPicture (VADriverContextP ctx,VAContextID context);
diff --git a/src/gallium/state_trackers/va/va_surface.c b/src/gallium/state_trackers/va/va_surface.c
index 314aa7c3d96..ad241adaf41 100644
--- a/src/gallium/state_trackers/va/va_surface.c
+++ b/src/gallium/state_trackers/va/va_surface.c
@@ -30,91 +30,91 @@
#include "va_private.h"
VAStatus vlVaCreateSurfaces( VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces)
+ int width,
+ int height,
+ int format,
+ int num_surfaces,
+ VASurfaceID *surfaces)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
VAStatus vlVaDestroySurfaces( VADriverContextP ctx,
- VASurfaceID *surface_list,
- int num_surfaces)
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ VASurfaceID *surface_list,
+ int num_surfaces)
+{
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
VAStatus vlVaSyncSurface( VADriverContextP ctx,
- VASurfaceID render_target)
+ VASurfaceID render_target)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
VAStatus vlVaQuerySurfaceStatus( VADriverContextP ctx,
- VASurfaceID render_target,
- VASurfaceStatus *status)
+ VASurfaceID render_target,
+ VASurfaceStatus *status)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
VAStatus vlVaPutSurface( VADriverContextP ctx,
- VASurfaceID surface,
- void* draw,
- short srcx,
- short srcy,
- unsigned short srcw,
- unsigned short srch,
- short destx,
- short desty,
- unsigned short destw,
- unsigned short desth,
- VARectangle *cliprects,
- unsigned int number_cliprects,
- unsigned int flags)
+ VASurfaceID surface,
+ void* draw,
+ short srcx,
+ short srcy,
+ unsigned short srcw,
+ unsigned short srch,
+ short destx,
+ short desty,
+ unsigned short destw,
+ unsigned short desth,
+ VARectangle *cliprects,
+ unsigned int number_cliprects,
+ unsigned int flags)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
VAStatus vlVaLockSurface( VADriverContextP ctx,
- VASurfaceID surface,
- unsigned int *fourcc,
- unsigned int *luma_stride,
- unsigned int *chroma_u_stride,
- unsigned int *chroma_v_stride,
- unsigned int *luma_offset,
- unsigned int *chroma_u_offset,
- unsigned int *chroma_v_offset,
- unsigned int *buffer_name,
- void **buffer)
+ VASurfaceID surface,
+ unsigned int *fourcc,
+ unsigned int *luma_stride,
+ unsigned int *chroma_u_stride,
+ unsigned int *chroma_v_stride,
+ unsigned int *luma_offset,
+ unsigned int *chroma_u_offset,
+ unsigned int *chroma_v_offset,
+ unsigned int *buffer_name,
+ void **buffer)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
VAStatus vlVaUnlockSurface( VADriverContextP ctx,
- VASurfaceID surface)
+ VASurfaceID surface)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
-