예제 #1
0
static inline VADriverContextP
get_driver_context(VADisplay dpy)
{
    if (!vaDisplayIsValid(dpy))
        return NULL;
    return ((VADisplayContextP)dpy)->pDriverContext;
}
예제 #2
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
/* Get maximum number of attributs supported by the implementation */
int vaMaxNumConfigAttributes (
    VADisplay dpy
)
{
  if (!vaDisplayIsValid(dpy))
      return 0;

  return CTX(dpy)->max_attributes;
}
예제 #3
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
/* Get maximum number of profiles supported by the implementation */
int vaMaxNumProfiles (
    VADisplay dpy
)
{
  if (!vaDisplayIsValid(dpy))
      return 0;

  return CTX(dpy)->max_profiles;
}
예제 #4
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
/* Get maximum number of entrypoints supported by the implementation */
int vaMaxNumEntrypoints (
    VADisplay dpy
)
{
  if (!vaDisplayIsValid(dpy))
      return 0;

  return CTX(dpy)->max_entrypoints;
}
예제 #5
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
/*
 * 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;
}
예제 #6
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
/* 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;
}
예제 #7
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
/* 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;
}
예제 #8
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
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);
}
예제 #9
0
파일: va.c 프로젝트: ashmew2/kolibriosSVN
/* 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;
}