static inline VADriverContextP get_driver_context(VADisplay dpy) { if (!vaDisplayIsValid(dpy)) return NULL; return ((VADisplayContextP)dpy)->pDriverContext; }
/* Get maximum number of attributs supported by the implementation */ int vaMaxNumConfigAttributes ( VADisplay dpy ) { if (!vaDisplayIsValid(dpy)) return 0; return CTX(dpy)->max_attributes; }
/* Get maximum number of profiles supported by the implementation */ int vaMaxNumProfiles ( VADisplay dpy ) { if (!vaDisplayIsValid(dpy)) return 0; return CTX(dpy)->max_profiles; }
/* Get maximum number of entrypoints supported by the implementation */ int vaMaxNumEntrypoints ( VADisplay dpy ) { if (!vaDisplayIsValid(dpy)) return 0; return CTX(dpy)->max_entrypoints; }
/* * vaQueryVendorString returns a pointer to a zero-terminated string * describing some aspects of the VA implemenation on a specific * hardware accelerator. The format of the returned string is: * <vendorname>-<major_version>-<minor_version>-<addtional_info> * e.g. for the Intel GMA500 implementation, an example would be: * "IntelGMA500-1.0-0.2-patch3 */ const char *vaQueryVendorString ( VADisplay dpy ) { if (!vaDisplayIsValid(dpy)) return NULL; return CTX(dpy)->str_vendor; }
/* Get maximum number of subpicture formats supported by the implementation */ int vaMaxNumSubpictureFormats ( VADisplay dpy ) { if (!vaDisplayIsValid(dpy)) return 0; return CTX(dpy)->max_subpic_formats; }
/* Get maximum number of image formats supported by the implementation */ int vaMaxNumImageFormats ( VADisplay dpy ) { if (!vaDisplayIsValid(dpy)) return 0; return CTX(dpy)->max_image_formats; }
VAPrivFunc vaGetLibFunc(VADisplay dpy, const char *func) { VADriverContextP ctx; if (!vaDisplayIsValid(dpy)) return NULL; ctx = CTX(dpy); if (NULL == ctx->handle) return NULL; return (VAPrivFunc) get_proc_address(ctx->handle, func); }
/* Get maximum number of display attributes supported by the implementation */ int vaMaxNumDisplayAttributes ( VADisplay dpy ) { int tmp; if (!vaDisplayIsValid(dpy)) return 0; tmp = CTX(dpy)->max_display_attributes; VA_TRACE_LOG(va_TraceMaxNumDisplayAttributes, dpy, tmp); return tmp; }