OSDN Git Service

Merge branch 'va_backend' into PO
[android-x86/hardware-intel-common-libva.git] / va / va_backend.h
index b496b35..54db430 100644 (file)
@@ -185,11 +185,7 @@ struct VADriverVTable
        VAStatus (*vaPutSurface) (
                VADriverContextP ctx,
                VASurfaceID surface,
-               #ifdef ANDROID
-               Surface* draw, /* X Drawable */
-               #else
-               Drawable draw,
-               #endif
+               void * draw, /* Drawable of window system */
                short srcx,
                short srcy,
                unsigned short srcw,
@@ -203,6 +199,25 @@ struct VADriverVTable
                unsigned int flags /* de-interlacing flags */
        );
 
+       VAStatus (*vaPutSurfaceBuf) (
+               VADriverContextP ctx,
+                VASurfaceID surface,
+                Drawable draw, /* X Drawable */
+                unsigned char* data,
+                int* data_len,
+                short srcx,
+                short srcy,
+                unsigned short srcw,
+                unsigned short srch,
+                short destx,
+                short desty,
+                unsigned short destw,
+                unsigned short desth,
+               VARectangle *cliprects, /* client supplied clip list */
+               unsigned int number_cliprects, /* number of clip rects in the clip list */
+                unsigned int flags /* de-interlacing flags */
+       );
+
        VAStatus (*vaQueryImageFormats) (
                VADriverContextP ctx,
                VAImageFormat *format_list,        /* out */