xf86dga1.h
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:4k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /* $XFree86: xc/include/extensions/xf86dga1.h,v 1.2 1999/04/17 07:05:41 dawes Exp $ */
  2. /*
  3. Copyright (c) 1995  Jon Tombs
  4. Copyright (c) 1995  XFree86 Inc
  5. */
  6. /************************************************************************
  7.    THIS IS THE OLD DGA API AND IS OBSOLETE.  PLEASE DO NOT USE IT ANYMORE
  8. ************************************************************************/
  9. #ifndef _XF86DGA1_H_
  10. #define _XF86DGA1_H_
  11. #include <X11/Xfuncproto.h>
  12. #include "SDL_name.h"
  13. #define X_XF86DGAQueryVersion 0
  14. #define X_XF86DGAGetVideoLL 1
  15. #define X_XF86DGADirectVideo 2
  16. #define X_XF86DGAGetViewPortSize 3
  17. #define X_XF86DGASetViewPort 4
  18. #define X_XF86DGAGetVidPage 5
  19. #define X_XF86DGASetVidPage 6
  20. #define X_XF86DGAInstallColormap 7
  21. #define X_XF86DGAQueryDirectVideo 8
  22. #define X_XF86DGAViewPortChanged 9
  23. #define XF86DGADirectPresent 0x0001
  24. #define XF86DGADirectGraphics 0x0002
  25. #define XF86DGADirectMouse 0x0004
  26. #define XF86DGADirectKeyb 0x0008
  27. #define XF86DGAHasColormap 0x0100
  28. #define XF86DGADirectColormap 0x0200
  29. #ifndef _XF86DGA_SERVER_
  30. _XFUNCPROTOBEGIN
  31. Bool SDL_NAME(XF86DGAQueryVersion)(
  32. #if NeedFunctionPrototypes
  33.     Display* /* dpy */,
  34.     int* /* majorVersion */,
  35.     int* /* minorVersion */
  36. #endif
  37. );
  38. Bool SDL_NAME(XF86DGAQueryExtension)(
  39. #if NeedFunctionPrototypes
  40.     Display* /* dpy */,
  41.     int* /* event_base */,
  42.     int* /* error_base */
  43. #endif
  44. );
  45. Status SDL_NAME(XF86DGAGetVideoLL)(
  46. #if NeedFunctionPrototypes
  47.     Display* /* dpy */,
  48.     int /* screen */,
  49.     int * /* base addr */,
  50.     int * /* width */,
  51.     int * /* bank_size */,
  52.     int * /* ram_size */ 
  53. #endif
  54. );
  55. Status SDL_NAME(XF86DGAGetVideo)(
  56. #if NeedFunctionPrototypes
  57.     Display* /* dpy */,
  58.     int /* screen */,
  59.     char ** /* base addr */,
  60.     int * /* width */,
  61.     int * /* bank_size */,
  62.     int * /* ram_size */
  63. #endif
  64. );
  65. Status SDL_NAME(XF86DGADirectVideo)(
  66. #if NeedFunctionPrototypes
  67.     Display* /* dpy */,
  68.     int /* screen */,
  69.     int  /* enable */
  70. #endif
  71. );
  72. Status SDL_NAME(XF86DGADirectVideoLL)(
  73. #if NeedFunctionPrototypes
  74.     Display* /* dpy */,
  75.     int /* screen */,
  76.     int  /* enable */
  77. #endif
  78. );
  79. Status SDL_NAME(XF86DGAGetViewPortSize)(
  80. #if NeedFunctionPrototypes
  81.     Display* /* dpy */,
  82.     int /* screen */,
  83.     int * /* width */,
  84.     int * /* height */
  85. #endif
  86. );
  87. Status SDL_NAME(XF86DGASetViewPort)(
  88. #if NeedFunctionPrototypes
  89.     Display* /* dpy */,
  90.     int /* screen */,
  91.     int x /* X */,
  92.     int y /* Y */
  93. #endif
  94. );
  95. Status SDL_NAME(XF86DGAGetVidPage)(
  96. #if NeedFunctionPrototypes
  97.     Display* /* dpy */,
  98.     int /* screen */,
  99.     int * /* vid page */
  100. #endif
  101. );
  102. Status SDL_NAME(XF86DGASetVidPage)(
  103. #if NeedFunctionPrototypes
  104.     Display* /* dpy */,
  105.     int /* screen */,
  106.     int /* vid page */
  107. #endif
  108. );
  109. Status SDL_NAME(XF86DGAInstallColormap)(
  110. #if NeedFunctionPrototypes
  111.     Display* /* dpy */,
  112.     int /* screen */,
  113.     Colormap /*Colormap */
  114. #endif
  115. );
  116. int SDL_NAME(XF86DGAForkApp)(
  117. #if NeedFunctionPrototypes
  118.     int screen
  119. #endif
  120. );
  121. Status SDL_NAME(XF86DGAQueryDirectVideo)(
  122. #if NeedFunctionPrototypes
  123.     Display * /* dpy */,
  124.     int /* screen */,
  125.     int * /* flags */
  126. #endif
  127. );
  128. Bool SDL_NAME(XF86DGAViewPortChanged)(
  129. #if NeedFunctionPrototypes
  130.     Display * /* dpy */,
  131.     int /* screen */,
  132.     int /* n */
  133. #endif
  134. );
  135. _XFUNCPROTOEND
  136. #endif /* _XF86DGA_SERVER_ */
  137. #endif /* _XF86DGA1_H_ */