Mercurial > games > semicongine
comparison semiconginev2/old/thirdparty/x11/xv.nim @ 1218:56781cc0fc7c compiletime-tests
did: renamge main package
author | sam <sam@basx.dev> |
---|---|
date | Wed, 17 Jul 2024 21:01:37 +0700 |
parents | semicongine/old/thirdparty/x11/xv.nim@239adab121a3 |
children |
comparison
equal
deleted
inserted
replaced
1217:f819a874058f | 1218:56781cc0fc7c |
---|---|
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 | |
26 import | |
27 x | |
28 | |
29 const | |
30 XvName* = "libXVideo.so" | |
31 XvVersion* = 2 | |
32 XvRevision* = 2 # Symbols | |
33 | |
34 type | |
35 XvPortID* = XID | |
36 XvEncodingID* = XID | |
37 | |
38 const | |
39 XvNone* = 0 | |
40 XvInput* = 0 | |
41 XvOutput* = 1 | |
42 XvInputMask* = 1 shl XvInput | |
43 XvOutputMask* = 1 shl XvOutput | |
44 XvVideoMask* = 0x00000004 | |
45 XvStillMask* = 0x00000008 | |
46 XvImageMask* = 0x00000010 # These two are not client viewable | |
47 XvPixmapMask* = 0x00010000 | |
48 XvWindowMask* = 0x00020000 | |
49 XvGettable* = 0x00000001 | |
50 XvSettable* = 0x00000002 | |
51 XvRGB* = 0 | |
52 XvYUV* = 1 | |
53 XvPacked* = 0 | |
54 XvPlanar* = 1 | |
55 XvTopToBottom* = 0 | |
56 XvBottomToTop* = 1 # Events | |
57 XvVideoNotify* = 0 | |
58 XvPortNotify* = 1 | |
59 XvNumEvents* = 2 # Video Notify Reasons | |
60 XvStarted* = 0 | |
61 XvStopped* = 1 | |
62 XvBusy* = 2 | |
63 XvPreempted* = 3 | |
64 XvHardError* = 4 | |
65 XvLastReason* = 4 | |
66 XvNumReasons* = XvLastReason + 1 | |
67 XvStartedMask* = 1 shl XvStarted | |
68 XvStoppedMask* = 1 shl XvStopped | |
69 XvBusyMask* = 1 shl XvBusy | |
70 XvPreemptedMask* = 1 shl XvPreempted | |
71 XvHardErrorMask* = 1 shl XvHardError | |
72 XvAnyReasonMask* = (1 shl XvNumReasons) - 1 | |
73 XvNoReasonMask* = 0 # Errors | |
74 XvBadPort* = 0 | |
75 XvBadEncoding* = 1 | |
76 XvBadControl* = 2 | |
77 XvNumErrors* = 3 # Status | |
78 XvBadExtension* = 1 | |
79 XvAlreadyGrabbed* = 2 | |
80 XvInvalidTime* = 3 | |
81 XvBadReply* = 4 | |
82 XvBadAlloc* = 5 | |
83 | |
84 # implementation |