xv.pp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {***********************************************************
  2. Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts,
  3. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  4. All Rights Reserved
  5. Permission to use, copy, modify, and distribute this software and its
  6. documentation for any purpose and without fee is hereby granted,
  7. provided that the above copyright notice appear in all copies and that
  8. both that copyright notice and this permission notice appear in
  9. supporting documentation, and that the names of Digital or MIT not be
  10. used in advertising or publicity pertaining to distribution of the
  11. software without specific, written prior permission.
  12. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  13. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  14. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  15. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  16. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  17. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  18. SOFTWARE.
  19. ******************************************************************}
  20. { $XFree86: xc/include/extensions/Xv.h,v 1.3 1999/05/23 06:33:22 dawes Exp $ }
  21. unit xv;
  22. interface
  23. {$PACKRECORDS c}
  24. uses
  25. x;
  26. const
  27. XvName = 'XVideo';
  28. XvVersion = 2;
  29. XvRevision = 2;
  30. { 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 = $00000004;
  41. XvStillMask = $00000008;
  42. XvImageMask = $00000010;
  43. { These two are not client viewable }
  44. XvPixmapMask = $00010000;
  45. XvWindowMask = $00020000;
  46. XvGettable = $01;
  47. XvSettable = $02;
  48. XvRGB = 0;
  49. XvYUV = 1;
  50. XvPacked = 0;
  51. XvPlanar = 1;
  52. XvTopToBottom = 0;
  53. XvBottomToTop = 1;
  54. { Events }
  55. XvVideoNotify = 0;
  56. XvPortNotify = 1;
  57. XvNumEvents = 2;
  58. { Video Notify Reasons }
  59. XvStarted = 0;
  60. XvStopped = 1;
  61. XvBusy = 2;
  62. XvPreempted = 3;
  63. XvHardError = 4;
  64. XvLastReason = 4;
  65. XvNumReasons = XvLastReason + 1;
  66. XvStartedMask = 1 shl XvStarted;
  67. XvStoppedMask = 1 shl XvStopped;
  68. XvBusyMask = 1 shl XvBusy;
  69. XvPreemptedMask = 1 shl XvPreempted;
  70. XvHardErrorMask = 1 shl XvHardError;
  71. XvAnyReasonMask = (1 shl XvNumReasons) - 1;
  72. XvNoReasonMask = 0;
  73. { Errors }
  74. XvBadPort = 0;
  75. XvBadEncoding = 1;
  76. XvBadControl = 2;
  77. XvNumErrors = 3;
  78. { Status }
  79. XvBadExtension = 1;
  80. XvAlreadyGrabbed = 2;
  81. XvInvalidTime = 3;
  82. XvBadReply = 4;
  83. XvBadAlloc = 5;
  84. implementation
  85. end.