OSDN Git Service

add common error for coded status of encode
[android-x86/hardware-intel-common-libva.git] / va / va_internal.h
index 4d60368..cc909c1 100644 (file)
 #ifndef VA_INTERNAL_H
 #define VA_INTERNAL_H
 
-void va_errorMessage(const char *msg, ...);
-void va_infoMessage(const char *msg, ...);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
+#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
+
+void va_errorMessage(VADisplay dpy, const char *msg, ...);
+void va_infoMessage(VADisplay dpy, const char *msg, ...);
 
 int  va_parseConfig(char *env, char *env_value);
 
+VADisplayContextP va_newDisplayContext(void);
+
+VADriverContextP va_newDriverContext(VADisplayContextP dctx);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* VA_INTERNAL_H */