annotate semiconginev2/thirdparty/x11/xv.nim @ 1224:a3fa15c25026 compiletime-tests

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