VAStatus vaCreateBuffer ( VADisplay dpy, VAContextID context, /* in */ VABufferType type, /* in */ unsigned int size, /* in */ unsigned int num_elements, /* in */ void *data, /* in */ VABufferID *buf_id /* out */ ) { VADriverContextP ctx; VAStatus vaStatus; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_FOOL_FUNC(va_FoolCreateBuffer, dpy, context, type, size, num_elements, data, buf_id); vaStatus = ctx->vtable->vaCreateBuffer( ctx, context, type, size, num_elements, data, buf_id); VA_TRACE_LOG(va_TraceCreateBuffer, dpy, context, type, size, num_elements, data, buf_id); return vaStatus; }
VAStatus vaUnmapBuffer ( VADisplay dpy, VABufferID buf_id /* in */ ) { VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); return ctx->vtable->vaUnmapBuffer( ctx, buf_id ); }
VAStatus vaBufferSetNumElements ( VADisplay dpy, VABufferID buf_id, /* in */ unsigned int num_elements /* in */ ) { VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); return ctx->vtable->vaBufferSetNumElements( ctx, buf_id, num_elements ); }
VAStatus vaDestroyBuffer ( VADisplay dpy, VABufferID buffer_id ) { VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); VA_TRACE_LOG(va_TraceDestroyBuffer, dpy, buffer_id); return ctx->vtable->vaDestroyBuffer( ctx, buffer_id ); }
VAStatus vaUnmapBuffer ( VADisplay dpy, VABufferID buf_id /* in */ ) { VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); int ret = 0; VA_FOOL_FUNC(va_FoolUnmapBuffer, dpy, buf_id); if (ret) return VA_STATUS_SUCCESS; return ctx->vtable->vaUnmapBuffer( ctx, buf_id ); }
VAStatus vaRenderPicture ( VADisplay dpy, VAContextID context, VABufferID *buffers, int num_buffers ) { VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_TRACE_LOG(va_TraceRenderPicture, dpy, context, buffers, num_buffers); VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); return ctx->vtable->vaRenderPicture( ctx, context, buffers, num_buffers ); }
VAStatus vaBufferInfo ( VADisplay dpy, VAContextID context, /* in */ VABufferID buf_id, /* in */ VABufferType *type, /* out */ unsigned int *size, /* out */ unsigned int *num_elements /* out */ ) { VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_FOOL_FUNC(va_FoolBufferInfo, dpy, buf_id, type, size, num_elements); return ctx->vtable->vaBufferInfo( ctx, buf_id, type, size, num_elements ); }
VAStatus vaBeginPicture ( VADisplay dpy, VAContextID context, VASurfaceID render_target ) { VADriverContextP ctx; VAStatus va_status; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_TRACE_ALL(va_TraceBeginPicture, dpy, context, render_target); VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); va_status = ctx->vtable->vaBeginPicture( ctx, context, render_target ); return va_status; }
VAStatus vaMapBuffer ( VADisplay dpy, VABufferID buf_id, /* in */ void **pbuf /* out */ ) { VADriverContextP ctx; VAStatus va_status; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_FOOL_FUNC(va_FoolMapBuffer, dpy, buf_id, pbuf); va_status = ctx->vtable->vaMapBuffer( ctx, buf_id, pbuf ); VA_TRACE_ALL(va_TraceMapBuffer, dpy, buf_id, pbuf); return va_status; }
VAStatus vaEndPicture ( VADisplay dpy, VAContextID context ) { VAStatus va_status = VA_STATUS_SUCCESS; VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); va_status = ctx->vtable->vaEndPicture( ctx, context ); /* dump surface content */ VA_TRACE_ALL(va_TraceEndPicture, dpy, context, 1); return va_status; }
VAStatus vaCreateConfig ( VADisplay dpy, VAProfile profile, VAEntrypoint entrypoint, VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id /* out */ ) { VADriverContextP ctx; VAStatus vaStatus = VA_STATUS_SUCCESS; CHECK_DISPLAY(dpy); ctx = CTX(dpy); vaStatus = ctx->vtable->vaCreateConfig ( ctx, profile, entrypoint, attrib_list, num_attribs, config_id ); /* record the current entrypoint for further trace/fool determination */ VA_TRACE_ALL(va_TraceCreateConfig, dpy, profile, entrypoint, attrib_list, num_attribs, config_id); VA_FOOL_FUNC(va_FoolCreateConfig, dpy, profile, entrypoint, attrib_list, num_attribs, config_id); return vaStatus; }