OSDN Git Service

Update VA API to v0.24
[android-x86/hardware-intel-common-libva.git] / src / va_backend.h
index c474925..3ffb113 100755 (executable)
@@ -48,6 +48,7 @@ struct VADriverContext
     int max_attributes;
     int max_image_formats;
     int max_subpic_formats;
+    int max_display_attributes;
     void *handle;                      /* dlopen handle */
     void *pDriverData;
     struct
@@ -67,7 +68,7 @@ struct VADriverContext
                int *num_entrypoints                    /* out */
        );
 
-       VAStatus (*vaQueryConfigAttributes) (
+       VAStatus (*vaGetConfigAttributes) (
                VADriverContextP ctx,
                VAProfile profile,
                VAEntrypoint entrypoint,
@@ -84,7 +85,12 @@ struct VADriverContext
                VAConfigID *config_id           /* out */
        );
 
-       VAStatus (*vaGetConfigAttributes) (
+       VAStatus (*vaDestroyConfig) (
+               VADriverContextP ctx,
+               VAConfigID config_id
+       );
+
+       VAStatus (*vaQueryConfigAttributes) (
                VADriverContextP ctx,
                VAConfigID config_id, 
                VAProfile *profile,             /* out */
@@ -205,23 +211,9 @@ struct VADriverContext
                unsigned short desth,
                VARectangle *cliprects, /* client supplied clip list */
                unsigned int number_cliprects, /* number of clip rects in the clip list */
-               int flags /* de-interlacing flags */
+               unsigned int flags /* de-interlacing flags */
        );
 
-        VAStatus (*vaCopySurfaceToGLXPbuffer) (
-                VADriverContextP ctx,
-                VASurface *surface,    
-                XID pbuffer_id,
-                short srcx,
-                short srcy,
-                unsigned short width,
-                unsigned short height,
-                short destx,
-                short desty,
-                unsigned int draw_buffer,
-                unsigned int flags /* de-interlacing flags */
-        );
-        
        VAStatus (*vaQueryImageFormats) (
                VADriverContextP ctx,
                VAImageFormat *format_list,        /* out */
@@ -328,6 +320,25 @@ struct VADriverContext
                unsigned int flags
        );
 
+       VAStatus (*vaQueryDisplayAttributes) (
+               VADriverContextP ctx,
+               VADisplayAttribute *attr_list,  /* out */
+               int *num_attributes             /* out */
+        );
+
+       VAStatus (*vaGetDisplayAttributes) (
+               VADriverContextP ctx,
+               VADisplayAttribute *attr_list,  /* in/out */
+               int num_attributes
+        );
+        
+        VAStatus (*vaSetDisplayAttributes) (
+               VADriverContextP ctx,
+                VADisplayAttribute *attr_list,
+                int num_attributes
+        );
+
+
        VAStatus (*vaDbgCopySurfaceToBuffer) (
                VADriverContextP ctx,
                VASurface *surface,