vl: add'ed stub for VaCreateImage
authorThomas Balling Sørensen <tball@tball-laptop.(none)>
Mon, 25 Oct 2010 19:38:08 +0000 (21:38 +0200)
committerThomas Balling Sørensen <tball@tball-laptop.(none)>
Mon, 25 Oct 2010 19:38:08 +0000 (21:38 +0200)
src/gallium/state_trackers/va/ftab.c
src/gallium/state_trackers/va/va_image.c
src/gallium/state_trackers/va/va_private.h

index 4b9dc57651155eb2c56caea320442b2566738d2b..651b7660964297dc3d1bf23c38b83be15621e7e5 100644 (file)
@@ -69,7 +69,7 @@ static struct VADriverVTable vtable =
                unsigned int number_cliprects, 
                unsigned int flags); */
    &vlVaQueryImageFormats, /* VAStatus (*vaQueryImageFormats) ( VADriverContextP ctx, VAImageFormat *format_list,int *num_formats); */
-   0x24, /* VAStatus (*vaCreateImage) (VADriverContextP ctx,VAImageFormat *format,int width,int height,VAImage *image); */
+   &vlVaCreateImage, /* VAStatus (*vaCreateImage) (VADriverContextP ctx,VAImageFormat *format,int width,int height,VAImage *image); */
    0x25, /* VAStatus (*vaDeriveImage) (VADriverContextP ctx,VASurfaceID surface,VAImage *image); */
    0x26, /* VAStatus (*vaDestroyImage) (VADriverContextP ctx,VAImageID image); */
    0x27, /* VAStatus (*vaSetImagePalette) (VADriverContextP ctx,VAImageID image, unsigned char *palette); */
index 05b3ffcf403f6fd9cbab260791f4694d05243574..b7e1320a4e827a747bd1196fb973b95e5e8e506d 100644 (file)
                                                        VAImageFormat *format_list,
                                                        int *num_formats)
 {
+       if (!ctx)
+               return VA_STATUS_ERROR_INVALID_CONTEXT;
+       
 
+       return VA_STATUS_ERROR_UNIMPLEMENTED;
+}
+
+VAStatus vlVaCreateImage(      VADriverContextP ctx,
+                                                       VAImageFormat *format,
+                                                       int width,
+                                                       int height,
+                                                       VAImage *image)
+{
+       if (!ctx)
+               return VA_STATUS_ERROR_INVALID_CONTEXT;
+       
        return VA_STATUS_ERROR_UNIMPLEMENTED;
 }
\ No newline at end of file
index 9688097098a7c9983b660fddc502c297f2f76eb2..ccaa5c053ea35a70384a5988b50117a9d2cf5444 100644 (file)
@@ -42,5 +42,6 @@ VAStatus __vaDriverInit_0_31 (VADriverContextP ctx);
 struct VADriverVTable vlVaGetVtable();
 VAStatus vlVaQueryImageFormats (VADriverContextP ctx,VAImageFormat *format_list,int *num_formats);
 VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx,VAImageFormat *format_list,unsigned int *flags,unsigned int *num_formats);
+VAStatus vlVaCreateImage(VADriverContextP ctx,VAImageFormat *format,int width,int height,VAImage *image);
  
  #endif // VA_PRIVATE_H