return dpy;
}
-#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
-#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
-
extern "C" {
extern int fool_postp; /* do nothing for vaPutSurface if set */
#include "va.h"
#include "va_backend_egl.h"
#include "va_egl.h"
+#include "va_internal.h"
-#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
-#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
VAStatus vaGetEGLClientBufferFromSurface (
VADisplay dpy,
#define DRIVER_EXTENSION "_drv_video.so"
-#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
-#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
-
#define ASSERT assert
#define CHECK_VTABLE(s, ctx, func) if (!va_checkVtable(ctx->vtable->va##func, #func)) s = VA_STATUS_ERROR_UNKNOWN;
#define CHECK_MAXIMUM(s, ctx, var) if (!va_checkMaximum(ctx->max_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN;
#ifndef VA_INTERNAL_H
#define VA_INTERNAL_H
+#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
+#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
+
void va_errorMessage(const char *msg, ...);
void va_infoMessage(const char *msg, ...);
#include "va.h"
#include "va_backend.h"
#include "va_backend_tpi.h"
+#include "va_internal.h"
#include <assert.h>
#include <stdarg.h>
#include <dlfcn.h>
#include <unistd.h>
-#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
-#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
-
/*
* Create surfaces with special inputs/requirements
return dpy;
}
-#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
-#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
void va_TracePutSurface (
VADisplay dpy,