OSDN Git Service

Bump wayland-client dependency to 1.11.0
[android-x86/hardware-intel-common-libva.git] / va / va_fool.h
index ba11b50..6f4f917 100644 (file)
 
 #include <stdio.h>
 
-void va_FoolInit(VADisplay dpy);
-
-int va_FoolEnd(VADisplay dpy);
-
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-int va_FoolGetFrame(FILE *input_fp, char *frame_buf);
+extern int fool_codec;
+extern int fool_postp;
 
-int va_FoolCodedBuf(VADisplay dpy);
+#define VA_FOOL_FLAG_DECODE  0x1
+#define VA_FOOL_FLAG_ENCODE  0x2
+#define VA_FOOL_FLAG_JPEG    0x4
 
+#define VA_FOOL_FUNC(fool_func,...)            \
+    if (fool_codec) {                          \
+        if (fool_func(__VA_ARGS__))            \
+            return VA_STATUS_SUCCESS;          \
+    }
+    
+void va_FoolInit(VADisplay dpy);
+int va_FoolEnd(VADisplay dpy);
 
 int va_FoolCreateConfig(
-    VADisplay dpy,
-    VAProfile profile, 
-    VAEntrypoint entrypoint, 
-    VAConfigAttrib *attrib_list,
-    int num_attribs,
-    VAConfigID *config_id /* out */
+        VADisplay dpy,
+        VAProfile profile, 
+        VAEntrypoint entrypoint, 
+        VAConfigAttrib *attrib_list,
+        int num_attribs,
+        VAConfigID *config_id /* out */
 );
 
-int va_FoolCreateSurfaces(
-    VADisplay dpy,
-    int width,
-    int height,
-    int format,
-    int num_surfaces,
-    VASurfaceID *surfaces      /* out */
-);
 
-VAStatus va_FoolCreateBuffer (
+VAStatus va_FoolCreateBuffer(
     VADisplay dpy,
     VAContextID context,       /* in */
     VABufferType type,         /* in */
@@ -72,41 +74,18 @@ VAStatus va_FoolMapBuffer (
     void **pbuf        /* out */
 );
 
-int va_FoolBeginPicture(
-    VADisplay dpy,
-    VAContextID context,
-    VASurfaceID render_target
-);
-
-int va_FoolRenderPicture(
+VAStatus va_FoolBufferInfo (
     VADisplay dpy,
-    VAContextID context,
-    VABufferID *buffers,
-    int num_buffers
+    VABufferID buf_id,  /* in */
+    VABufferType *type, /* out */
+    unsigned int *size,         /* out */
+    unsigned int *num_elements /* out */
 );
+    
+VAStatus va_FoolCheckContinuity(VADisplay dpy);
 
-int va_FoolEndPicture(
-    VADisplay dpy,
-    VAContextID context
-);
-
-VAStatus va_FoolUnmapBuffer (
-    VADisplay dpy,
-    VABufferID buf_id  /* in */
-);
-
-
-VAStatus va_FoolQuerySubpictureFormats (
-    VADisplay dpy,
-    VAImageFormat *format_list,
-    unsigned int *flags,
-    unsigned int *num_formats
-);
-int va_FoolSyncSurface(
-    VADisplay dpy, 
-    VASurfaceID render_target
-);
-
-
+#ifdef __cplusplus
+}
+#endif
 
 #endif