aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtMultimedia/typesystem_multimedia.xml
blob: 2791f695a1655841f60b81e8d197c0040d76c4d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="UTF-8"?>
<!--
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-->
<typesystem package="PySide6.QtMultimedia"
            namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE">
    <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
    <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
    <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>

    <namespace-type name="QAudio">
        <enum-type name="Error"/>
        <enum-type name="State"/>
        <enum-type name="VolumeScale"/>
        <inject-code class="target" position="end"
                     file="../glue/qtmultimedia.cpp"
                     snippet="qtaudio-namespace-compatibility-alias"/>
    </namespace-type>

    <namespace-type name="QtVideo" since="6.7">
        <enum-type name="Rotation"/>
    </namespace-type>

    <value-type name="QAudioBuffer">
        <add-function signature="data()" return-type="PyBuffer">
            <inject-code file="../glue/qtmultimedia.cpp" snippet="qaudiobuffer-data"/>
        </add-function>
        <add-function signature="constData()" return-type="PyBuffer">
            <inject-code file="../glue/qtmultimedia.cpp" snippet="qaudiobuffer-const-data"/>
        </add-function>
    </value-type>
    <object-type name="QAudioDecoder">
        <enum-type name="Error"/>
    </object-type>
    <value-type name="QAudioFormat">
        <enum-type name="SampleFormat" since="6.1"/>
        <enum-type name="ChannelConfig"/>
        <enum-type name="AudioChannelPosition" since="6.2"/>
        <modify-function signature="normalizedSampleValue(const void*)const">
            <modify-argument index="1">
              <replace-type modified-type="PyBuffer"/>
              <conversion-rule class="native">
                  <insert-template name="pybuffer_const_char"/>
              </conversion-rule>
            </modify-argument>
        </modify-function>
    </value-type>
    <value-type name="QAudioDevice">
        <enum-type name="Mode"/>
    </value-type>

    <object-type name="QAudioInput"/>
    <object-type name="QAudioOutput"/>

    <object-type name="QAudioSource">
      <modify-function signature="start()" allow-thread="true">
        <modify-argument index="return">
          <define-ownership class="target" owner="c++"/>
        </modify-argument>
      </modify-function>
      <modify-function signature="start(QIODevice*)" allow-thread="true">
        <modify-argument index="1">
          <define-ownership class="target" owner="c++"/>
        </modify-argument>
      </modify-function>
      <modify-function signature="stop()" allow-thread="true"/>
    </object-type>

    <object-type name="QAudioSink">
      <modify-function signature="start()" allow-thread="true">
        <modify-argument index="return">
          <define-ownership class="target" owner="c++"/>
        </modify-argument>
      </modify-function>
      <modify-function signature="start(QIODevice*)" allow-thread="true">
        <modify-argument index="1">
          <define-ownership class="target" owner="c++"/>
        </modify-argument>
      </modify-function>
      <modify-function signature="stop()" allow-thread="true"/>
    </object-type>

    <object-type name="QCamera">
        <enum-type name="Error"/>
        <enum-type name="ExposureMode" since="6.1"/>
        <enum-type name="Feature" flags="Features" since="6.1"/>
        <enum-type name="FlashMode" since="6.1"/>
        <enum-type name="FocusMode" since="6.1"/>
        <enum-type name="TorchMode" since="6.1"/>
        <enum-type name="WhiteBalanceMode" since="6.1"/>
    </object-type>
    <value-type name="QCameraFormat" since="6.1"/>
    <value-type name="QCameraDevice">
        <enum-type name="Position" since="6.1"/>
    </value-type>

    <value-type name="QCapturableWindow" since="6.6"/>

    <object-type name="QImageCapture">
        <enum-type name="Error"/>
        <enum-type name="FileFormat"/>
        <enum-type name="Quality"/>
    </object-type>

    <object-type name="QMediaCaptureSession" since="6.1"/>

    <object-type name="QMediaDevices" since="6.1"/>

    <value-type name="QMediaFormat" since="6.1">
        <enum-type name="AudioCodec"/>
        <enum-type name="ConversionMode"/>
        <enum-type name="FileFormat"/>
        <enum-type name="VideoCodec"/>
        <enum-type name="ResolveFlags"/>
    </value-type>

    <value-type name="QMediaMetaData" since="6.1">
        <enum-type name="Key"/>
    </value-type>
    <object-type name="QMediaPlayer">
        <enum-type name="MediaStatus"/>
        <enum-type name="PlaybackState" since="6.1"/>
        <enum-type name="Error"/>
        <enum-type name="Loops" python-type="IntEnum" since="6.2.3"/>
    </object-type>
    <!-- see qtmultimedia/5773f7214c7430a98dea3974c0597cb3ee0ea7f5 might reappear in 6.3
    <object-type name="QMediaPlaylist"/>
     -->
    <object-type name="QMediaRecorder">
        <enum-type name="Error" since="6.1"/>
        <enum-type name="EncodingMode" since="6.1"/>
        <enum-type name="RecorderState" since="6.1"/>
        <enum-type name="Quality" since="6.1"/>
    </object-type>
    <value-type name="QMediaTimeRange">
        <value-type name="Interval"/>
    </value-type>

    <object-type name="QScreenCapture" since="6.5">
        <enum-type name="Error"/>
    </object-type>

    <object-type name="QSoundEffect">
        <enum-type name="Loop"/>
        <enum-type name="Status"/>
    </object-type>

    <value-type name="QVideoFrame">
        <enum-type name="HandleType"/>
        <enum-type name="MapMode" since="6.1"/>
        <enum-type name="RotationAngle" since="6.2.3"/>
        <modify-function signature="bits(int)">
          <inject-code file="../glue/qtmultimedia.cpp" snippet="qvideoframe-bits"/>
        </modify-function>
        <modify-function signature="bits(int)const" remove="all"/>
        <value-type name="PaintOptions">
            <enum-type name="PaintFlag" flags="PaintFlags"/>
        </value-type>
    </value-type>
    <value-type name="QVideoFrameFormat" since="6.1">
        <enum-type name="ColorSpace" since="6.4"/>
        <enum-type name="ColorTransfer" since="6.4"/>
        <enum-type name="ColorRange" since="6.4"/>
        <enum-type name="Direction"/>
        <enum-type name="PixelFormat"/>
        <enum-type name="YCbCrColorSpace"/>
    </value-type>

    <object-type name="QWaveDecoder">
        <!-- No implementation -->
        <modify-function signature="setIODevice(QIODevice*)" remove="all"/>
    </object-type>

    <object-type name="QWindowCapture" since="6.6">
        <enum-type name="Error"/>
    </object-type>

    <object-type name="QVideoSink" since="6.1"/>
</typesystem>