vl: small typos and stuff
authorThomas Balling Sørensen <tball@tball-laptop.(none)>
Thu, 28 Oct 2010 07:40:25 +0000 (09:40 +0200)
committerThomas Balling Sørensen <tball@tball-laptop.(none)>
Thu, 28 Oct 2010 07:40:25 +0000 (09:40 +0200)
src/gallium/state_trackers/va/va_config.c
src/gallium/state_trackers/va/va_private.h
src/gallium/state_trackers/va/va_surface.c

index 1bec28c..5756c2f 100644 (file)
@@ -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)
index 3c9922e..bd037c8 100644 (file)
@@ -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);
index 314aa7c..ad241ad 100644 (file)
 #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;
 }
-