xv.nim 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #***********************************************************
  2. #Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts,
  3. #and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  4. #
  5. # All Rights Reserved
  6. #
  7. #Permission to use, copy, modify, and distribute this software and its
  8. #documentation for any purpose and without fee is hereby granted,
  9. #provided that the above copyright notice appear in all copies and that
  10. #both that copyright notice and this permission notice appear in
  11. #supporting documentation, and that the names of Digital or MIT not be
  12. #used in advertising or publicity pertaining to distribution of the
  13. #software without specific, written prior permission.
  14. #
  15. #DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  16. #ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  17. #DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  18. #ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. #WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  20. #ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21. #SOFTWARE.
  22. #
  23. #******************************************************************
  24. # $XFree86: xc/include/extensions/Xv.h,v 1.3 1999/05/23 06:33:22 dawes Exp $
  25. import
  26. x
  27. const
  28. XvName* = "libXVideo.so"
  29. XvVersion* = 2
  30. XvRevision* = 2 # Symbols
  31. type
  32. TXvPortID* = TXID
  33. TXvEncodingID* = TXID
  34. const
  35. XvNone* = 0
  36. XvInput* = 0
  37. XvOutput* = 1
  38. XvInputMask* = 1 shl XvInput
  39. XvOutputMask* = 1 shl XvOutput
  40. XvVideoMask* = 0x00000004
  41. XvStillMask* = 0x00000008
  42. XvImageMask* = 0x00000010 # These two are not client viewable
  43. XvPixmapMask* = 0x00010000
  44. XvWindowMask* = 0x00020000
  45. XvGettable* = 0x00000001
  46. XvSettable* = 0x00000002
  47. XvRGB* = 0
  48. XvYUV* = 1
  49. XvPacked* = 0
  50. XvPlanar* = 1
  51. XvTopToBottom* = 0
  52. XvBottomToTop* = 1 # Events
  53. XvVideoNotify* = 0
  54. XvPortNotify* = 1
  55. XvNumEvents* = 2 # Video Notify Reasons
  56. XvStarted* = 0
  57. XvStopped* = 1
  58. XvBusy* = 2
  59. XvPreempted* = 3
  60. XvHardError* = 4
  61. XvLastReason* = 4
  62. XvNumReasons* = XvLastReason + 1
  63. XvStartedMask* = 1 shl XvStarted
  64. XvStoppedMask* = 1 shl XvStopped
  65. XvBusyMask* = 1 shl XvBusy
  66. XvPreemptedMask* = 1 shl XvPreempted
  67. XvHardErrorMask* = 1 shl XvHardError
  68. XvAnyReasonMask* = (1 shl XvNumReasons) - 1
  69. XvNoReasonMask* = 0 # Errors
  70. XvBadPort* = 0
  71. XvBadEncoding* = 1
  72. XvBadControl* = 2
  73. XvNumErrors* = 3 # Status
  74. XvBadExtension* = 1
  75. XvAlreadyGrabbed* = 2
  76. XvInvalidTime* = 3
  77. XvBadReply* = 4
  78. XvBadAlloc* = 5
  79. # implementation