summaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml
blob: 5486fb15799d948f9b6696710e5e3b08d13dbb9b (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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<?xml version="1.0"?>
<!--
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
-->
<typesystem package="PySide2.QtMultimedia">
  <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="Mode"/>
      <enum-type name="Role" since="5.6"/>
      <enum-type name="State"/>
      <enum-type name="VolumeScale" since="5.8"/>
  </namespace-type>

  <value-type name="QVideoSurfaceFormat">
      <enum-type name="Direction"/>
      <enum-type name="YCbCrColorSpace"/>
  </value-type>
  <object-type name="QAbstractVideoBuffer">
      <enum-type name="HandleType"/>
      <enum-type name="MapMode"/>
      <modify-function signature="map(QAbstractVideoBuffer::MapMode,int*,int*)" remove="all"/>
      <!-- TODO: discuss a way to have this working with the virtual method.
      <modify-function signature="map(QAbstractVideoBuffer::MapMode,int*,int*)">
          <modify-argument index="0">
              <replace-type modified-type="PyObject"/>
          </modify-argument>
          <modify-argument index="2">
              <remove-argument/>
          </modify-argument>
          <modify-argument index="3">
              <remove-argument/>
          </modify-argument>
          <inject-code class="target" position="beginning">
              <insert-template name="fix_arg,int*,int*"/>
          </inject-code>
      </modify-function>
      -->
      <!-- TODO: PYSIDE-354, arrays are not supported -->
      <modify-function signature="mapPlanes(QAbstractVideoBuffer::MapMode,int*,int[4],uchar*[4])" remove="all"/>
  </object-type>
  <object-type name="QAbstractVideoSurface">
      <enum-type name="Error"/>
  </object-type>
  <object-type name="QAbstractVideoFilter"/>
  <value-type name="QVideoFrame">
      <enum-type name="FieldType"/>
      <enum-type name="PixelFormat"/>
      <modify-function signature="bits(int)" remove="all"/>
      <modify-function signature="bits(int)const" remove="all"/>
  </value-type>

  <value-type name="QAudioBuffer"/>
  <object-type name="QAudioDecoder">
      <enum-type name="Error"/>
      <enum-type name="State"/>
  </object-type>
  <value-type name="QAudioFormat">
      <enum-type name="Endian"/>
      <enum-type name="SampleType"/>
  </value-type>
  <value-type name="QAudioDeviceInfo"/>
  <object-type name="QAbstractAudioDeviceInfo"/>

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

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

  <object-type name="QAudioDecoderControl"/>
  <object-type name="QAudioProbe"/>
  <value-type name="QAudioEncoderSettings"/>
  <object-type name="QAudioEncoderSettingsControl">
      <modify-function signature="supportedSampleRates(const QAudioEncoderSettings &amp;,bool*)const" remove="all"/>
  </object-type>

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

  <object-type name="QAudioOutput">
    <modify-function signature="start()">
      <modify-argument index="return">
        <define-ownership class="target" owner="c++"/>
      </modify-argument>
    </modify-function>
    <modify-function signature="start(QIODevice*)">
      <modify-argument index="1">
        <define-ownership class="target" owner="c++"/>
      </modify-argument>
    </modify-function>
  </object-type>
  <object-type name="QAudioOutputSelectorControl"/>
  <object-type name="QAudioRecorder"/>
  <object-type name="QAudioRoleControl"/>

  <object-type name="QCamera">
      <value-type name="FrameRateRange"/>
      <enum-type name="CaptureMode" flags="CaptureModes"/>
      <enum-type name="Error"/>
      <enum-type name="LockChangeReason"/>
      <enum-type name="LockStatus"/>
      <enum-type name="LockType" flags="LockTypes"/>
      <enum-type name="Position"/>
      <enum-type name="State"/>
      <enum-type name="Status"/>
      <modify-function signature="setViewfinder(QVideoWidget*)">
        <modify-argument index="1">
            <replace-type modified-type="QObject *" />
        </modify-argument>
        <inject-code class="target" position="beginning">
        %BEGIN_ALLOW_THREADS
        QObject* upcastedArg = %CONVERTTOCPP[QObject*](%PYARG_1);
        %CPPSELF.%FUNCTION_NAME(reinterpret_cast&lt; %ARG1_TYPE &gt;(upcastedArg));
        %END_ALLOW_THREADS
        </inject-code>
      </modify-function>
      <modify-function signature="setViewfinder(QGraphicsVideoItem*)">
        <modify-argument index="1">
            <replace-type modified-type="QObject *" />
        </modify-argument>
        <inject-code class="target" position="beginning">
        %BEGIN_ALLOW_THREADS
        QObject* upcastedArg = %CONVERTTOCPP[QObject*](%PYARG_1);
        %CPPSELF.%FUNCTION_NAME(reinterpret_cast&lt; %ARG1_TYPE &gt;(upcastedArg));
        %END_ALLOW_THREADS
        </inject-code>
      </modify-function>
  </object-type>
  <object-type name="QCameraCaptureBufferFormatControl"/>
  <object-type name="QCameraCaptureDestinationControl"/>
  <object-type name="QCameraControl">
      <enum-type name="PropertyChangeType"/>
  </object-type>
  <!-- Private destructor
  <object-type name="QCameraExposure">
      <enum-type name="FlashMode" flags="FlashModes"/>
      <enum-type name="ExposureMode"/>
      <enum-type name="MeteringMode"/>
      <modify-function signature="supportedApertures(bool*)const" remove="all"/>
      <modify-function signature="supportedIsoSensitivities(bool*)const" remove="all"/>
      <modify-function signature="supportedShutterSpeeds(bool*)const" remove="all"/>
  </object-type>
  -->
  <object-type name="QCameraExposureControl">
      <enum-type name="ExposureParameter"/>
      <modify-function signature="supportedParameterRange(QCameraExposureControl::ExposureParameter,bool*)const" remove="all"/>
  </object-type>
  <object-type name="QCameraFeedbackControl">
      <enum-type name="EventType"/>
  </object-type>
  <value-type name="QCameraFocusZone">
      <enum-type name="FocusZoneStatus"/>
  </value-type>
  <!-- Private destructor
  <object-type name="QCameraFocus">
      <enum-type name="FocusMode" flags="FocusModes"/>
      <enum-type name="FocusPointMode"/>
  </object-type>
  <object-type name="QCameraFlashControl"/> needs enums from QCameraFocus
  <object-type name="QCameraFocusControl"/>
  -->
  <value-type name="QCameraInfo"/>
  <object-type name="QCameraInfoControl"/>
  <object-type name="QCameraImageCapture">
      <enum-type name="CaptureDestination" flags="CaptureDestinations"/>
      <enum-type name="DriveMode"/>
      <enum-type name="Error"/>
      <modify-function signature="supportedResolutions(const QImageEncoderSettings &amp;,bool*)const" remove="all"/>
  </object-type>
  <object-type name="QCameraImageCaptureControl"/>
  <!-- Private destructor
  <object-type name="QCameraImageProcessing">
      <enum-type name="WhiteBalanceMode"/>
      <enum-type name="ColorFilter"/>
  </object-type>
  -->
  <object-type name="QCameraImageProcessingControl">
      <enum-type name="ProcessingParameter"/>
  </object-type>
  <object-type name="QCameraLocksControl"/>
  <value-type name="QCameraViewfinderSettings"/>
  <object-type name="QCameraViewfinderSettingsControl">
      <enum-type name="ViewfinderParameter"/>
  </object-type>
  <object-type name="QCameraViewfinderSettingsControl2"/>
  <object-type name="QCameraZoomControl"/>

  <value-type name="QImageEncoderSettings"/>
  <object-type name="QImageEncoderControl">
      <modify-function signature="supportedResolutions(const QImageEncoderSettings &amp;,bool*)const" remove="all"/>
  </object-type>

  <object-type name="QMediaAudioProbeControl"/>
  <object-type name="QMediaAvailabilityControl"/>
  <object-type name="QMediaBindableInterface"/>
  <object-type name="QMediaContainerControl"/>
  <value-type name="QMediaContent"/>
  <object-type name="QMediaGaplessPlaybackControl"/>
  <object-type name="QMediaControl"/>
  <object-type name="QCustomAudioRoleControl" since="5.11"/>
  <object-type name="QMediaNetworkAccessControl"/>
  <!-- Causes compile errors
  <namespace-type name="QMediaMetaData"/>
  -->
  <object-type name="QMediaObject"/>
  <object-type name="QMediaPlayer">
      <enum-type name="State"/>
      <enum-type name="MediaStatus"/>
      <enum-type name="Flag" flags="Flags"/>
      <enum-type name="Error"/>
      <modify-function signature="setVideoOutput(QVideoWidget*)">
        <modify-argument index="1">
            <replace-type modified-type="QObject *" />
        </modify-argument>
        <inject-code class="target" position="beginning">
        %BEGIN_ALLOW_THREADS
        QObject* upcastedArg = %CONVERTTOCPP[QObject*](%PYARG_1);
        %CPPSELF.%FUNCTION_NAME(reinterpret_cast&lt; %ARG1_TYPE &gt;(upcastedArg));
        %END_ALLOW_THREADS
        </inject-code>
      </modify-function>
      <modify-function signature="setVideoOutput(QGraphicsVideoItem*)">
        <modify-argument index="1">
            <replace-type modified-type="QObject *" />
        </modify-argument>
        <inject-code class="target" position="beginning">
        %BEGIN_ALLOW_THREADS
        QObject* upcastedArg = %CONVERTTOCPP[QObject*](%PYARG_1);
        %CPPSELF.%FUNCTION_NAME(reinterpret_cast&lt; %ARG1_TYPE &gt;(upcastedArg));
        %END_ALLOW_THREADS
        </inject-code>
      </modify-function>
  </object-type>
  <object-type name="QMediaPlayerControl"/>
  <object-type name="QMediaPlaylist">
      <enum-type name="PlaybackMode"/>
      <enum-type name="Error"/>
  </object-type>
  <object-type name="QMediaRecorder">
      <enum-type name="Error"/>
      <enum-type name="State"/>
      <enum-type name="Status"/>
      <modify-function signature="supportedAudioSampleRates(const QAudioEncoderSettings &amp;,bool*)const" remove="all"/>
      <modify-function signature="supportedFrameRates(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
      <modify-function signature="supportedResolutions(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
  </object-type>
  <object-type name="QMediaRecorderControl"/>
  <value-type name="QMediaResource"/>
  <object-type name="QMediaService"/>
  <interface-type name="QMediaServiceCameraInfoInterface"/>
  <interface-type name="QMediaServiceDefaultDeviceInterface"/>
  <interface-type name="QMediaServiceFeaturesInterface"/>
  <value-type name="QMediaServiceProviderHint">
      <enum-type name="Type"/>
      <enum-type name="Feature" flags="Features"/>
  </value-type>
  <interface-type name="QMediaServiceSupportedDevicesInterface"/>
  <interface-type name="QMediaServiceSupportedFormatsInterface"/>
  <object-type name="QMediaStreamsControl">
      <enum-type name="StreamType"/>
  </object-type>
  <value-type name="QMediaTimeInterval"/>
  <value-type name="QMediaTimeRange"/>
  <object-type name="QMediaVideoProbeControl"/>

  <object-type name="QMetaDataReaderControl"/>
  <object-type name="QMetaDataWriterControl"/>

  <namespace-type name="QMultimedia">
      <enum-type name="SupportEstimate"/>
      <enum-type name="EncodingQuality"/>
      <enum-type name="EncodingMode"/>
      <enum-type name="AvailabilityStatus"/>
  </namespace-type>

  <object-type name="QRadioData">
      <enum-type name="Error"/>
      <enum-type name="ProgramType"/>
  </object-type>
  <object-type name="QRadioDataControl"/>
  <object-type name="QRadioTuner">
      <enum-type name="Band"/>
      <enum-type name="Error"/>
      <enum-type name="SearchMode"/>
      <enum-type name="State"/>
      <enum-type name="StereoMode"/>
  </object-type>
  <object-type name="QRadioTunerControl"/>
  <object-type name="QSound">
      <enum-type name="Loop"/>
  </object-type>
  <object-type name="QSoundEffect">
      <enum-type name="Loop"/>
      <enum-type name="Status"/>
  </object-type>

  <object-type name="QVideoDeviceSelectorControl"/>
  <value-type name="QVideoEncoderSettings"/>
  <object-type name="QVideoEncoderSettingsControl">
      <modify-function signature="supportedFrameRates(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
      <modify-function signature="supportedResolutions(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
  </object-type>
  <object-type name="QVideoFilterRunnable">
      <enum-type name="RunFlag" flags="RunFlags"/>
  </object-type>
  <object-type name="QVideoProbe"/>
  <object-type name="QVideoRendererControl"/>
  <object-type name="QVideoWindowControl"/>

  <suppress-warning text="Final class 'QMediaObject' set to non-final, as it is extended by other classes"/>
  <suppress-warning text="Pure virtual method 'QAbstractVideoBuffer::map(QAbstractVideoBuffer::MapMode,int*,int*)' must be implement but was completely removed on type system."/>
  <suppress-warning text="Pure virtual method 'QImageEncoderControl::supportedResolutions(QImageEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
  <suppress-warning text="Pure virtual method 'QCameraExposureControl::supportedParameterRange(QCameraExposureControl::ExposureParameter,bool*)const' must be implement but was completely removed on type system."/>
  <suppress-warning text="Pure virtual method 'QVideoEncoderSettingsControl::supportedFrameRates(QVideoEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
  <suppress-warning text="Pure virtual method 'QVideoEncoderSettingsControl::supportedResolutions(QVideoEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
  <suppress-warning text="Pure virtual method 'QAudioEncoderSettingsControl::supportedSampleRates(QAudioEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
</typesystem>