mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
vl: add'ed stub for VaCreateImage
This commit is contained in:
parent
aea4d004d2
commit
1dccc4cfaa
3 changed files with 17 additions and 1 deletions
|
|
@ -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); */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue