diff options
author | Thomas Balling Sørensen <tball@tball-laptop.(none)> | 2010-10-25 21:38:08 +0200 |
---|---|---|
committer | Thomas Balling Sørensen <tball@tball-laptop.(none)> | 2010-10-25 21:38:08 +0200 |
commit | 1dccc4cfaa423f15ab582d2a0253a84a0ae0b9fa (patch) | |
tree | 28b36de3858287156ce5f1ba2e19577d6679f507 | |
parent | aea4d004d2781ebb9cf437c9125ca232dd2d0aeb (diff) |
vl: add'ed stub for VaCreateImage
-rw-r--r-- | src/gallium/state_trackers/va/ftab.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/va/va_image.c | 15 | ||||
-rw-r--r-- | src/gallium/state_trackers/va/va_private.h | 1 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/ftab.c b/src/gallium/state_trackers/va/ftab.c index 4b9dc576511..651b7660964 100644 --- a/src/gallium/state_trackers/va/ftab.c +++ b/src/gallium/state_trackers/va/ftab.c @@ -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); */ diff --git a/src/gallium/state_trackers/va/va_image.c b/src/gallium/state_trackers/va/va_image.c index 05b3ffcf403..b7e1320a4e8 100644 --- a/src/gallium/state_trackers/va/va_image.c +++ b/src/gallium/state_trackers/va/va_image.c @@ -36,6 +36,21 @@ 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 diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h index 9688097098a..ccaa5c053ea 100644 --- a/src/gallium/state_trackers/va/va_private.h +++ b/src/gallium/state_trackers/va/va_private.h @@ -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 |