Lines Matching refs:dpy

43 #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)  argument
44 #define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; } argument
100 int vaDisplayIsValid(VADisplay dpy) in vaDisplayIsValid() argument
102 VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; in vaDisplayIsValid()
190 static VAStatus va_getDriverName(VADisplay dpy, char **driver_name) in va_getDriverName() argument
192 VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; in va_getDriverName()
197 static VAStatus va_openDriver(VADisplay dpy, char *driver_name) in va_openDriver() argument
199 VADriverContextP ctx = CTX(dpy); in va_openDriver()
364 VAPrivFunc vaGetLibFunc(VADisplay dpy, const char *func) in vaGetLibFunc() argument
367 if (!vaDisplayIsValid(dpy)) in vaGetLibFunc()
369 ctx = CTX(dpy); in vaGetLibFunc()
443 VADisplay dpy, in vaInitialize() argument
452 CHECK_DISPLAY(dpy); in vaInitialize()
454 va_TraceInit(dpy); in vaInitialize()
456 va_FoolInit(dpy); in vaInitialize()
460 vaStatus = va_getDriverName(dpy, &driver_name); in vaInitialize()
476 vaStatus = va_openDriver(dpy, driver_name); in vaInitialize()
488 VA_TRACE_LOG(va_TraceInitialize, dpy, major_version, minor_version); in vaInitialize()
498 VADisplay dpy in vaTerminate() argument
502 VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; in vaTerminate()
505 CHECK_DISPLAY(dpy); in vaTerminate()
506 old_ctx = CTX(dpy); in vaTerminate()
518 VA_TRACE_LOG(va_TraceTerminate, dpy); in vaTerminate()
520 va_TraceEnd(dpy); in vaTerminate()
522 va_FoolEnd(dpy); in vaTerminate()
539 VADisplay dpy in vaQueryVendorString() argument
542 if (!vaDisplayIsValid(dpy)) in vaQueryVendorString()
545 return CTX(dpy)->str_vendor; in vaQueryVendorString()
551 VADisplay dpy in vaMaxNumProfiles() argument
554 if (!vaDisplayIsValid(dpy)) in vaMaxNumProfiles()
557 return CTX(dpy)->max_profiles; in vaMaxNumProfiles()
562 VADisplay dpy in vaMaxNumEntrypoints() argument
565 if (!vaDisplayIsValid(dpy)) in vaMaxNumEntrypoints()
568 return CTX(dpy)->max_entrypoints; in vaMaxNumEntrypoints()
574 VADisplay dpy in vaMaxNumConfigAttributes() argument
577 if (!vaDisplayIsValid(dpy)) in vaMaxNumConfigAttributes()
580 return CTX(dpy)->max_attributes; in vaMaxNumConfigAttributes()
584 VADisplay dpy, in vaQueryConfigEntrypoints() argument
591 CHECK_DISPLAY(dpy); in vaQueryConfigEntrypoints()
592 ctx = CTX(dpy); in vaQueryConfigEntrypoints()
598 VADisplay dpy, in vaGetConfigAttributes() argument
606 CHECK_DISPLAY(dpy); in vaGetConfigAttributes()
607 ctx = CTX(dpy); in vaGetConfigAttributes()
613 VADisplay dpy, in vaQueryConfigProfiles() argument
619 CHECK_DISPLAY(dpy); in vaQueryConfigProfiles()
620 ctx = CTX(dpy); in vaQueryConfigProfiles()
626 VADisplay dpy, in vaCreateConfig() argument
637 CHECK_DISPLAY(dpy); in vaCreateConfig()
638 ctx = CTX(dpy); in vaCreateConfig()
643 VA_TRACE_ALL(va_TraceCreateConfig, dpy, profile, entrypoint, attrib_list, num_attribs, config_id); in vaCreateConfig()
644 VA_FOOL_FUNC(va_FoolCreateConfig, dpy, profile, entrypoint, attrib_list, num_attribs, config_id); in vaCreateConfig()
650 VADisplay dpy, in vaDestroyConfig() argument
655 CHECK_DISPLAY(dpy); in vaDestroyConfig()
656 ctx = CTX(dpy); in vaDestroyConfig()
662 VADisplay dpy, in vaQueryConfigAttributes() argument
671 CHECK_DISPLAY(dpy); in vaQueryConfigAttributes()
672 ctx = CTX(dpy); in vaQueryConfigAttributes()
815 VADisplay dpy, in vaQuerySurfaceAttributes() argument
824 CHECK_DISPLAY(dpy); in vaQuerySurfaceAttributes()
825 ctx = CTX(dpy); in vaQuerySurfaceAttributes()
836 VA_TRACE_LOG(va_TraceQuerySurfaceAttributes, dpy, config, attrib_list, num_attribs); in vaQuerySurfaceAttributes()
843 VADisplay dpy, in vaCreateSurfaces() argument
856 CHECK_DISPLAY(dpy); in vaCreateSurfaces()
857 ctx = CTX(dpy); in vaCreateSurfaces()
871 dpy, width, height, format, num_surfaces, surfaces, in vaCreateSurfaces()
879 VADisplay dpy, in vaDestroySurfaces() argument
887 CHECK_DISPLAY(dpy); in vaDestroySurfaces()
888 ctx = CTX(dpy); in vaDestroySurfaces()
891 dpy, surface_list, num_surfaces); in vaDestroySurfaces()
899 VADisplay dpy, in vaCreateContext() argument
912 CHECK_DISPLAY(dpy); in vaCreateContext()
913 ctx = CTX(dpy); in vaCreateContext()
919 …VA_TRACE_ALL(va_TraceCreateContext, dpy, config_id, picture_width, picture_height, flag, render_ta… in vaCreateContext()
925 VADisplay dpy, in vaDestroyContext() argument
930 CHECK_DISPLAY(dpy); in vaDestroyContext()
931 ctx = CTX(dpy); in vaDestroyContext()
937 VADisplay dpy, in vaCreateBuffer() argument
949 CHECK_DISPLAY(dpy); in vaCreateBuffer()
950 ctx = CTX(dpy); in vaCreateBuffer()
952 VA_FOOL_FUNC(va_FoolCreateBuffer, dpy, context, type, size, num_elements, data, buf_id); in vaCreateBuffer()
957 dpy, context, type, size, num_elements, data, buf_id); in vaCreateBuffer()
963 VADisplay dpy, in vaBufferSetNumElements() argument
969 CHECK_DISPLAY(dpy); in vaBufferSetNumElements()
970 ctx = CTX(dpy); in vaBufferSetNumElements()
972 VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); in vaBufferSetNumElements()
979 VADisplay dpy, in vaMapBuffer() argument
987 CHECK_DISPLAY(dpy); in vaMapBuffer()
988 ctx = CTX(dpy); in vaMapBuffer()
990 VA_FOOL_FUNC(va_FoolMapBuffer, dpy, buf_id, pbuf); in vaMapBuffer()
994 VA_TRACE_ALL(va_TraceMapBuffer, dpy, buf_id, pbuf); in vaMapBuffer()
1000 VADisplay dpy, in vaUnmapBuffer() argument
1005 CHECK_DISPLAY(dpy); in vaUnmapBuffer()
1006 ctx = CTX(dpy); in vaUnmapBuffer()
1008 VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); in vaUnmapBuffer()
1014 VADisplay dpy, in vaDestroyBuffer() argument
1019 CHECK_DISPLAY(dpy); in vaDestroyBuffer()
1020 ctx = CTX(dpy); in vaDestroyBuffer()
1022 VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); in vaDestroyBuffer()
1025 dpy, buffer_id); in vaDestroyBuffer()
1031 VADisplay dpy, in vaBufferInfo() argument
1041 CHECK_DISPLAY(dpy); in vaBufferInfo()
1042 ctx = CTX(dpy); in vaBufferInfo()
1044 VA_FOOL_FUNC(va_FoolBufferInfo, dpy, buf_id, type, size, num_elements); in vaBufferInfo()
1050 VADisplay dpy, in vaBeginPicture() argument
1058 CHECK_DISPLAY(dpy); in vaBeginPicture()
1059 ctx = CTX(dpy); in vaBeginPicture()
1061 VA_TRACE_ALL(va_TraceBeginPicture, dpy, context, render_target); in vaBeginPicture()
1062 VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); in vaBeginPicture()
1070 VADisplay dpy, in vaRenderPicture() argument
1078 CHECK_DISPLAY(dpy); in vaRenderPicture()
1079 ctx = CTX(dpy); in vaRenderPicture()
1081 VA_TRACE_LOG(va_TraceRenderPicture, dpy, context, buffers, num_buffers); in vaRenderPicture()
1082 VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); in vaRenderPicture()
1088 VADisplay dpy, in vaEndPicture() argument
1095 CHECK_DISPLAY(dpy); in vaEndPicture()
1096 ctx = CTX(dpy); in vaEndPicture()
1098 VA_FOOL_FUNC(va_FoolCheckContinuity, dpy); in vaEndPicture()
1103 VA_TRACE_ALL(va_TraceEndPicture, dpy, context, 1); in vaEndPicture()
1109 VADisplay dpy, in vaSyncSurface() argument
1116 CHECK_DISPLAY(dpy); in vaSyncSurface()
1117 ctx = CTX(dpy); in vaSyncSurface()
1120 VA_TRACE_LOG(va_TraceSyncSurface, dpy, render_target); in vaSyncSurface()
1126 VADisplay dpy, in vaQuerySurfaceStatus() argument
1133 CHECK_DISPLAY(dpy); in vaQuerySurfaceStatus()
1134 ctx = CTX(dpy); in vaQuerySurfaceStatus()
1138 VA_TRACE_LOG(va_TraceQuerySurfaceStatus, dpy, render_target, status); in vaQuerySurfaceStatus()
1144 VADisplay dpy, in vaQuerySurfaceError() argument
1152 CHECK_DISPLAY(dpy); in vaQuerySurfaceError()
1153 ctx = CTX(dpy); in vaQuerySurfaceError()
1157 VA_TRACE_LOG(va_TraceQuerySurfaceError, dpy, surface, error_status, error_info); in vaQuerySurfaceError()
1164 VADisplay dpy in vaMaxNumImageFormats() argument
1167 if (!vaDisplayIsValid(dpy)) in vaMaxNumImageFormats()
1170 return CTX(dpy)->max_image_formats; in vaMaxNumImageFormats()
1174 VADisplay dpy, in vaQueryImageFormats() argument
1180 CHECK_DISPLAY(dpy); in vaQueryImageFormats()
1181 ctx = CTX(dpy); in vaQueryImageFormats()
1195 VADisplay dpy, in vaCreateImage() argument
1203 CHECK_DISPLAY(dpy); in vaCreateImage()
1204 ctx = CTX(dpy); in vaCreateImage()
1213 VADisplay dpy, in vaDestroyImage() argument
1218 CHECK_DISPLAY(dpy); in vaDestroyImage()
1219 ctx = CTX(dpy); in vaDestroyImage()
1225 VADisplay dpy, in vaSetImagePalette() argument
1231 CHECK_DISPLAY(dpy); in vaSetImagePalette()
1232 ctx = CTX(dpy); in vaSetImagePalette()
1242 VADisplay dpy, in vaGetImage() argument
1252 CHECK_DISPLAY(dpy); in vaGetImage()
1253 ctx = CTX(dpy); in vaGetImage()
1263 VADisplay dpy, in vaPutImage() argument
1277 CHECK_DISPLAY(dpy); in vaPutImage()
1278 ctx = CTX(dpy); in vaPutImage()
1315 VADisplay dpy, in vaDeriveImage() argument
1321 CHECK_DISPLAY(dpy); in vaDeriveImage()
1322 ctx = CTX(dpy); in vaDeriveImage()
1330 VADisplay dpy in vaMaxNumSubpictureFormats() argument
1333 if (!vaDisplayIsValid(dpy)) in vaMaxNumSubpictureFormats()
1336 return CTX(dpy)->max_subpic_formats; in vaMaxNumSubpictureFormats()
1347 VADisplay dpy, in vaQuerySubpictureFormats() argument
1355 CHECK_DISPLAY(dpy); in vaQuerySubpictureFormats()
1356 ctx = CTX(dpy); in vaQuerySubpictureFormats()
1365 VADisplay dpy, in vaCreateSubpicture() argument
1371 CHECK_DISPLAY(dpy); in vaCreateSubpicture()
1372 ctx = CTX(dpy); in vaCreateSubpicture()
1381 VADisplay dpy, in vaDestroySubpicture() argument
1386 CHECK_DISPLAY(dpy); in vaDestroySubpicture()
1387 ctx = CTX(dpy); in vaDestroySubpicture()
1393 VADisplay dpy, in vaSetSubpictureImage() argument
1399 CHECK_DISPLAY(dpy); in vaSetSubpictureImage()
1400 ctx = CTX(dpy); in vaSetSubpictureImage()
1411 VADisplay dpy, in vaSetSubpictureChromakey() argument
1419 CHECK_DISPLAY(dpy); in vaSetSubpictureChromakey()
1420 ctx = CTX(dpy); in vaSetSubpictureChromakey()
1432 VADisplay dpy, in vaSetSubpictureGlobalAlpha() argument
1438 CHECK_DISPLAY(dpy); in vaSetSubpictureGlobalAlpha()
1439 ctx = CTX(dpy); in vaSetSubpictureGlobalAlpha()
1452 VADisplay dpy, in vaAssociateSubpicture() argument
1472 CHECK_DISPLAY(dpy); in vaAssociateSubpicture()
1473 ctx = CTX(dpy); in vaAssociateSubpicture()
1482 VADisplay dpy, in vaDeassociateSubpicture() argument
1489 CHECK_DISPLAY(dpy); in vaDeassociateSubpicture()
1490 ctx = CTX(dpy); in vaDeassociateSubpicture()
1498 VADisplay dpy in vaMaxNumDisplayAttributes() argument
1503 if (!vaDisplayIsValid(dpy)) in vaMaxNumDisplayAttributes()
1506 tmp = CTX(dpy)->max_display_attributes; in vaMaxNumDisplayAttributes()
1508 VA_TRACE_LOG(va_TraceMaxNumDisplayAttributes, dpy, tmp); in vaMaxNumDisplayAttributes()
1520 VADisplay dpy, in vaQueryDisplayAttributes() argument
1528 CHECK_DISPLAY(dpy); in vaQueryDisplayAttributes()
1529 ctx = CTX(dpy); in vaQueryDisplayAttributes()
1532 VA_TRACE_LOG(va_TraceQueryDisplayAttributes, dpy, attr_list, num_attributes); in vaQueryDisplayAttributes()
1545 VADisplay dpy, in vaGetDisplayAttributes() argument
1553 CHECK_DISPLAY(dpy); in vaGetDisplayAttributes()
1554 ctx = CTX(dpy); in vaGetDisplayAttributes()
1557 VA_TRACE_LOG(va_TraceGetDisplayAttributes, dpy, attr_list, num_attributes); in vaGetDisplayAttributes()
1569 VADisplay dpy, in vaSetDisplayAttributes() argument
1576 CHECK_DISPLAY(dpy); in vaSetDisplayAttributes()
1577 ctx = CTX(dpy); in vaSetDisplayAttributes()
1580 VA_TRACE_LOG(va_TraceSetDisplayAttributes, dpy, attr_list, num_attributes); in vaSetDisplayAttributes()
1585 VAStatus vaLockSurface(VADisplay dpy, in vaLockSurface() argument
1599 CHECK_DISPLAY(dpy); in vaLockSurface()
1600 ctx = CTX(dpy); in vaLockSurface()
1606 VAStatus vaUnlockSurface(VADisplay dpy, in vaUnlockSurface() argument
1611 CHECK_DISPLAY(dpy); in vaUnlockSurface()
1612 ctx = CTX(dpy); in vaUnlockSurface()
1618 #define VA_VPP_INIT_CONTEXT(ctx, dpy) do { \ argument
1619 CHECK_DISPLAY(dpy); \
1620 ctx = CTX(dpy); \
1625 #define VA_VPP_INVOKE(dpy, func, args) do { \ argument
1633 VADisplay dpy, in vaQueryVideoProcFilters() argument
1642 VA_VPP_INIT_CONTEXT(ctx, dpy); in vaQueryVideoProcFilters()
1653 VADisplay dpy, in vaQueryVideoProcFilterCaps() argument
1663 VA_VPP_INIT_CONTEXT(ctx, dpy); in vaQueryVideoProcFilterCaps()
1674 VADisplay dpy, in vaQueryVideoProcPipelineCaps() argument
1684 VA_VPP_INIT_CONTEXT(ctx, dpy); in vaQueryVideoProcPipelineCaps()