1class pyqtSignal():
2 def connect(self, targetSignal): pass
3 def emit(self, *args): pass
4from QtCore import *
5
6class QAbstractVideoBuffer():
7    """"""
8    # Enum QAbstractVideoBuffer.MapMode
9    NotMapped = 0
10    ReadOnly = 0
11    WriteOnly = 0
12    ReadWrite = 0
13
14    # Enum QAbstractVideoBuffer.HandleType
15    NoHandle = 0
16    GLTextureHandle = 0
17    XvShmImageHandle = 0
18    CoreImageHandle = 0
19    QPixmapHandle = 0
20    UserHandle = 0
21
22    def __init__(self, type):
23        '''void QAbstractVideoBuffer.__init__(QAbstractVideoBuffer.HandleType type)'''
24    def handle(self):
25        '''QVariant QAbstractVideoBuffer.handle()'''
26        return QVariant()
27    def unmap(self):
28        '''abstract void QAbstractVideoBuffer.unmap()'''
29    def map(self, mode, numBytes, bytesPerLine):
30        '''abstract sip.voidptr QAbstractVideoBuffer.map(QAbstractVideoBuffer.MapMode mode, int numBytes, int bytesPerLine)'''
31        return sip.voidptr()
32    def mapMode(self):
33        '''abstract QAbstractVideoBuffer.MapMode QAbstractVideoBuffer.mapMode()'''
34        return QAbstractVideoBuffer.MapMode()
35    def handleType(self):
36        '''QAbstractVideoBuffer.HandleType QAbstractVideoBuffer.handleType()'''
37        return QAbstractVideoBuffer.HandleType()
38
39
40class QAbstractVideoSurface(QObject):
41    """"""
42    # Enum QAbstractVideoSurface.Error
43    NoError = 0
44    UnsupportedFormatError = 0
45    IncorrectFormatError = 0
46    StoppedError = 0
47    ResourceError = 0
48
49    def __init__(self, parent = None):
50        '''void QAbstractVideoSurface.__init__(QObject parent = None)'''
51    def setError(self, error):
52        '''void QAbstractVideoSurface.setError(QAbstractVideoSurface.Error error)'''
53    supportedFormatsChanged = pyqtSignal() # void supportedFormatsChanged() - signal
54    surfaceFormatChanged = pyqtSignal() # void surfaceFormatChanged(const QVideoSurfaceFormatamp;) - signal
55    activeChanged = pyqtSignal() # void activeChanged(bool) - signal
56    def error(self):
57        '''QAbstractVideoSurface.Error QAbstractVideoSurface.error()'''
58        return QAbstractVideoSurface.Error()
59    def present(self, frame):
60        '''abstract bool QAbstractVideoSurface.present(QVideoFrame frame)'''
61        return bool()
62    def isActive(self):
63        '''bool QAbstractVideoSurface.isActive()'''
64        return bool()
65    def stop(self):
66        '''void QAbstractVideoSurface.stop()'''
67    def start(self, format):
68        '''bool QAbstractVideoSurface.start(QVideoSurfaceFormat format)'''
69        return bool()
70    def surfaceFormat(self):
71        '''QVideoSurfaceFormat QAbstractVideoSurface.surfaceFormat()'''
72        return QVideoSurfaceFormat()
73    def nearestFormat(self, format):
74        '''QVideoSurfaceFormat QAbstractVideoSurface.nearestFormat(QVideoSurfaceFormat format)'''
75        return QVideoSurfaceFormat()
76    def isFormatSupported(self, format):
77        '''bool QAbstractVideoSurface.isFormatSupported(QVideoSurfaceFormat format)'''
78        return bool()
79    def supportedPixelFormats(self, type = None):
80        '''abstract list-of-QVideoFrame.PixelFormat QAbstractVideoSurface.supportedPixelFormats(QAbstractVideoBuffer.HandleType type = QAbstractVideoBuffer.NoHandle)'''
81        return [QVideoFrame.PixelFormat()]
82
83
84class QAudio():
85    """"""
86    # Enum QAudio.Mode
87    AudioInput = 0
88    AudioOutput = 0
89
90    # Enum QAudio.State
91    ActiveState = 0
92    SuspendedState = 0
93    StoppedState = 0
94    IdleState = 0
95
96    # Enum QAudio.Error
97    NoError = 0
98    OpenError = 0
99    IOError = 0
100    UnderrunError = 0
101    FatalError = 0
102
103
104
105class QAudioDeviceInfo():
106    """"""
107    def __init__(self):
108        '''void QAudioDeviceInfo.__init__()'''
109    def __init__(self, other):
110        '''void QAudioDeviceInfo.__init__(QAudioDeviceInfo other)'''
111    def supportedChannelCounts(self):
112        '''list-of-int QAudioDeviceInfo.supportedChannelCounts()'''
113        return [int()]
114    def supportedSampleRates(self):
115        '''list-of-int QAudioDeviceInfo.supportedSampleRates()'''
116        return [int()]
117    def availableDevices(self, mode):
118        '''static list-of-QAudioDeviceInfo QAudioDeviceInfo.availableDevices(QAudio.Mode mode)'''
119        return [QAudioDeviceInfo()]
120    def defaultOutputDevice(self):
121        '''static QAudioDeviceInfo QAudioDeviceInfo.defaultOutputDevice()'''
122        return QAudioDeviceInfo()
123    def defaultInputDevice(self):
124        '''static QAudioDeviceInfo QAudioDeviceInfo.defaultInputDevice()'''
125        return QAudioDeviceInfo()
126    def supportedSampleTypes(self):
127        '''list-of-QAudioFormat.SampleType QAudioDeviceInfo.supportedSampleTypes()'''
128        return [QAudioFormat.SampleType()]
129    def supportedByteOrders(self):
130        '''list-of-QAudioFormat.Endian QAudioDeviceInfo.supportedByteOrders()'''
131        return [QAudioFormat.Endian()]
132    def supportedSampleSizes(self):
133        '''list-of-int QAudioDeviceInfo.supportedSampleSizes()'''
134        return [int()]
135    def supportedChannels(self):
136        '''list-of-int QAudioDeviceInfo.supportedChannels()'''
137        return [int()]
138    def supportedFrequencies(self):
139        '''list-of-int QAudioDeviceInfo.supportedFrequencies()'''
140        return [int()]
141    def supportedCodecs(self):
142        '''QStringList QAudioDeviceInfo.supportedCodecs()'''
143        return QStringList()
144    def nearestFormat(self, format):
145        '''QAudioFormat QAudioDeviceInfo.nearestFormat(QAudioFormat format)'''
146        return QAudioFormat()
147    def preferredFormat(self):
148        '''QAudioFormat QAudioDeviceInfo.preferredFormat()'''
149        return QAudioFormat()
150    def isFormatSupported(self, format):
151        '''bool QAudioDeviceInfo.isFormatSupported(QAudioFormat format)'''
152        return bool()
153    def deviceName(self):
154        '''QString QAudioDeviceInfo.deviceName()'''
155        return QString()
156    def isNull(self):
157        '''bool QAudioDeviceInfo.isNull()'''
158        return bool()
159
160
161class QAudioFormat():
162    """"""
163    # Enum QAudioFormat.Endian
164    BigEndian = 0
165    LittleEndian = 0
166
167    # Enum QAudioFormat.SampleType
168    Unknown = 0
169    SignedInt = 0
170    UnSignedInt = 0
171    Float = 0
172
173    def __init__(self):
174        '''void QAudioFormat.__init__()'''
175    def __init__(self, other):
176        '''void QAudioFormat.__init__(QAudioFormat other)'''
177    def channelCount(self):
178        '''int QAudioFormat.channelCount()'''
179        return int()
180    def setChannelCount(self, channelCount):
181        '''void QAudioFormat.setChannelCount(int channelCount)'''
182    def sampleRate(self):
183        '''int QAudioFormat.sampleRate()'''
184        return int()
185    def setSampleRate(self, sampleRate):
186        '''void QAudioFormat.setSampleRate(int sampleRate)'''
187    def sampleType(self):
188        '''QAudioFormat.SampleType QAudioFormat.sampleType()'''
189        return QAudioFormat.SampleType()
190    def setSampleType(self, sampleType):
191        '''void QAudioFormat.setSampleType(QAudioFormat.SampleType sampleType)'''
192    def byteOrder(self):
193        '''QAudioFormat.Endian QAudioFormat.byteOrder()'''
194        return QAudioFormat.Endian()
195    def setByteOrder(self, byteOrder):
196        '''void QAudioFormat.setByteOrder(QAudioFormat.Endian byteOrder)'''
197    def codec(self):
198        '''QString QAudioFormat.codec()'''
199        return QString()
200    def setCodec(self, codec):
201        '''void QAudioFormat.setCodec(QString codec)'''
202    def sampleSize(self):
203        '''int QAudioFormat.sampleSize()'''
204        return int()
205    def setSampleSize(self, sampleSize):
206        '''void QAudioFormat.setSampleSize(int sampleSize)'''
207    def channels(self):
208        '''int QAudioFormat.channels()'''
209        return int()
210    def setChannels(self, channels):
211        '''void QAudioFormat.setChannels(int channels)'''
212    def frequency(self):
213        '''int QAudioFormat.frequency()'''
214        return int()
215    def setFrequency(self, frequency):
216        '''void QAudioFormat.setFrequency(int frequency)'''
217    def isValid(self):
218        '''bool QAudioFormat.isValid()'''
219        return bool()
220    def __ne__(self, other):
221        '''bool QAudioFormat.__ne__(QAudioFormat other)'''
222        return bool()
223    def __eq__(self, other):
224        '''bool QAudioFormat.__eq__(QAudioFormat other)'''
225        return bool()
226
227
228class QAudioInput(QObject):
229    """"""
230    def __init__(self, format = QAudioFormat(), parent = None):
231        '''void QAudioInput.__init__(QAudioFormat format = QAudioFormat(), QObject parent = None)'''
232    def __init__(self, audioDevice, format = QAudioFormat(), parent = None):
233        '''void QAudioInput.__init__(QAudioDeviceInfo audioDevice, QAudioFormat format = QAudioFormat(), QObject parent = None)'''
234    notify = pyqtSignal() # void notify() - signal
235    stateChanged = pyqtSignal() # void stateChanged(QAudio::State) - signal
236    def state(self):
237        '''QAudio.State QAudioInput.state()'''
238        return QAudio.State()
239    def error(self):
240        '''QAudio.Error QAudioInput.error()'''
241        return QAudio.Error()
242    def elapsedUSecs(self):
243        '''int QAudioInput.elapsedUSecs()'''
244        return int()
245    def processedUSecs(self):
246        '''int QAudioInput.processedUSecs()'''
247        return int()
248    def notifyInterval(self):
249        '''int QAudioInput.notifyInterval()'''
250        return int()
251    def setNotifyInterval(self, milliSeconds):
252        '''void QAudioInput.setNotifyInterval(int milliSeconds)'''
253    def periodSize(self):
254        '''int QAudioInput.periodSize()'''
255        return int()
256    def bytesReady(self):
257        '''int QAudioInput.bytesReady()'''
258        return int()
259    def bufferSize(self):
260        '''int QAudioInput.bufferSize()'''
261        return int()
262    def setBufferSize(self, bytes):
263        '''void QAudioInput.setBufferSize(int bytes)'''
264    def resume(self):
265        '''void QAudioInput.resume()'''
266    def suspend(self):
267        '''void QAudioInput.suspend()'''
268    def reset(self):
269        '''void QAudioInput.reset()'''
270    def stop(self):
271        '''void QAudioInput.stop()'''
272    def start(self, device):
273        '''void QAudioInput.start(QIODevice device)'''
274    def start(self):
275        '''QIODevice QAudioInput.start()'''
276        return QIODevice()
277    def format(self):
278        '''QAudioFormat QAudioInput.format()'''
279        return QAudioFormat()
280
281
282class QAudioOutput(QObject):
283    """"""
284    def __init__(self, format = QAudioFormat(), parent = None):
285        '''void QAudioOutput.__init__(QAudioFormat format = QAudioFormat(), QObject parent = None)'''
286    def __init__(self, audioDevice, format = QAudioFormat(), parent = None):
287        '''void QAudioOutput.__init__(QAudioDeviceInfo audioDevice, QAudioFormat format = QAudioFormat(), QObject parent = None)'''
288    notify = pyqtSignal() # void notify() - signal
289    stateChanged = pyqtSignal() # void stateChanged(QAudio::State) - signal
290    def state(self):
291        '''QAudio.State QAudioOutput.state()'''
292        return QAudio.State()
293    def error(self):
294        '''QAudio.Error QAudioOutput.error()'''
295        return QAudio.Error()
296    def elapsedUSecs(self):
297        '''int QAudioOutput.elapsedUSecs()'''
298        return int()
299    def processedUSecs(self):
300        '''int QAudioOutput.processedUSecs()'''
301        return int()
302    def notifyInterval(self):
303        '''int QAudioOutput.notifyInterval()'''
304        return int()
305    def setNotifyInterval(self, milliSeconds):
306        '''void QAudioOutput.setNotifyInterval(int milliSeconds)'''
307    def periodSize(self):
308        '''int QAudioOutput.periodSize()'''
309        return int()
310    def bytesFree(self):
311        '''int QAudioOutput.bytesFree()'''
312        return int()
313    def bufferSize(self):
314        '''int QAudioOutput.bufferSize()'''
315        return int()
316    def setBufferSize(self, bytes):
317        '''void QAudioOutput.setBufferSize(int bytes)'''
318    def resume(self):
319        '''void QAudioOutput.resume()'''
320    def suspend(self):
321        '''void QAudioOutput.suspend()'''
322    def reset(self):
323        '''void QAudioOutput.reset()'''
324    def stop(self):
325        '''void QAudioOutput.stop()'''
326    def start(self, device):
327        '''void QAudioOutput.start(QIODevice device)'''
328    def start(self):
329        '''QIODevice QAudioOutput.start()'''
330        return QIODevice()
331    def format(self):
332        '''QAudioFormat QAudioOutput.format()'''
333        return QAudioFormat()
334
335
336class QVideoFrame():
337    """"""
338    # Enum QVideoFrame.PixelFormat
339    Format_Invalid = 0
340    Format_ARGB32 = 0
341    Format_ARGB32_Premultiplied = 0
342    Format_RGB32 = 0
343    Format_RGB24 = 0
344    Format_RGB565 = 0
345    Format_RGB555 = 0
346    Format_ARGB8565_Premultiplied = 0
347    Format_BGRA32 = 0
348    Format_BGRA32_Premultiplied = 0
349    Format_BGR32 = 0
350    Format_BGR24 = 0
351    Format_BGR565 = 0
352    Format_BGR555 = 0
353    Format_BGRA5658_Premultiplied = 0
354    Format_AYUV444 = 0
355    Format_AYUV444_Premultiplied = 0
356    Format_YUV444 = 0
357    Format_YUV420P = 0
358    Format_YV12 = 0
359    Format_UYVY = 0
360    Format_YUYV = 0
361    Format_NV12 = 0
362    Format_NV21 = 0
363    Format_IMC1 = 0
364    Format_IMC2 = 0
365    Format_IMC3 = 0
366    Format_IMC4 = 0
367    Format_Y8 = 0
368    Format_Y16 = 0
369    Format_User = 0
370
371    # Enum QVideoFrame.FieldType
372    ProgressiveFrame = 0
373    TopField = 0
374    BottomField = 0
375    InterlacedFrame = 0
376
377    def __init__(self):
378        '''void QVideoFrame.__init__()'''
379    def __init__(self, buffer, size, format):
380        '''void QVideoFrame.__init__(QAbstractVideoBuffer buffer, QSize size, QVideoFrame.PixelFormat format)'''
381    def __init__(self, bytes, size, bytesPerLine, format):
382        '''void QVideoFrame.__init__(int bytes, QSize size, int bytesPerLine, QVideoFrame.PixelFormat format)'''
383    def __init__(self, image):
384        '''void QVideoFrame.__init__(QImage image)'''
385    def __init__(self, other):
386        '''void QVideoFrame.__init__(QVideoFrame other)'''
387    def imageFormatFromPixelFormat(self, format):
388        '''static QImage.Format QVideoFrame.imageFormatFromPixelFormat(QVideoFrame.PixelFormat format)'''
389        return QImage.Format()
390    def pixelFormatFromImageFormat(self, format):
391        '''static QVideoFrame.PixelFormat QVideoFrame.pixelFormatFromImageFormat(QImage.Format format)'''
392        return QVideoFrame.PixelFormat()
393    def setEndTime(self, time):
394        '''void QVideoFrame.setEndTime(int time)'''
395    def endTime(self):
396        '''int QVideoFrame.endTime()'''
397        return int()
398    def setStartTime(self, time):
399        '''void QVideoFrame.setStartTime(int time)'''
400    def startTime(self):
401        '''int QVideoFrame.startTime()'''
402        return int()
403    def handle(self):
404        '''QVariant QVideoFrame.handle()'''
405        return QVariant()
406    def mappedBytes(self):
407        '''int QVideoFrame.mappedBytes()'''
408        return int()
409    def bits(self):
410        '''sip.voidptr QVideoFrame.bits()'''
411        return sip.voidptr()
412    def bytesPerLine(self):
413        '''int QVideoFrame.bytesPerLine()'''
414        return int()
415    def unmap(self):
416        '''void QVideoFrame.unmap()'''
417    def map(self, mode):
418        '''bool QVideoFrame.map(QAbstractVideoBuffer.MapMode mode)'''
419        return bool()
420    def mapMode(self):
421        '''QAbstractVideoBuffer.MapMode QVideoFrame.mapMode()'''
422        return QAbstractVideoBuffer.MapMode()
423    def isWritable(self):
424        '''bool QVideoFrame.isWritable()'''
425        return bool()
426    def isReadable(self):
427        '''bool QVideoFrame.isReadable()'''
428        return bool()
429    def isMapped(self):
430        '''bool QVideoFrame.isMapped()'''
431        return bool()
432    def setFieldType(self):
433        '''QVideoFrame.FieldType QVideoFrame.setFieldType()'''
434        return QVideoFrame.FieldType()
435    def fieldType(self):
436        '''QVideoFrame.FieldType QVideoFrame.fieldType()'''
437        return QVideoFrame.FieldType()
438    def height(self):
439        '''int QVideoFrame.height()'''
440        return int()
441    def width(self):
442        '''int QVideoFrame.width()'''
443        return int()
444    def size(self):
445        '''QSize QVideoFrame.size()'''
446        return QSize()
447    def handleType(self):
448        '''QAbstractVideoBuffer.HandleType QVideoFrame.handleType()'''
449        return QAbstractVideoBuffer.HandleType()
450    def pixelFormat(self):
451        '''QVideoFrame.PixelFormat QVideoFrame.pixelFormat()'''
452        return QVideoFrame.PixelFormat()
453    def isValid(self):
454        '''bool QVideoFrame.isValid()'''
455        return bool()
456
457
458class QVideoSurfaceFormat():
459    """"""
460    # Enum QVideoSurfaceFormat.YCbCrColorSpace
461    YCbCr_Undefined = 0
462    YCbCr_BT601 = 0
463    YCbCr_BT709 = 0
464    YCbCr_xvYCC601 = 0
465    YCbCr_xvYCC709 = 0
466    YCbCr_JPEG = 0
467
468    # Enum QVideoSurfaceFormat.Direction
469    TopToBottom = 0
470    BottomToTop = 0
471
472    def __init__(self):
473        '''void QVideoSurfaceFormat.__init__()'''
474    def __init__(self, size, format, type = None):
475        '''void QVideoSurfaceFormat.__init__(QSize size, QVideoFrame.PixelFormat format, QAbstractVideoBuffer.HandleType type = QAbstractVideoBuffer.NoHandle)'''
476    def __init__(self, format):
477        '''void QVideoSurfaceFormat.__init__(QVideoSurfaceFormat format)'''
478    def setProperty(self, name, value):
479        '''void QVideoSurfaceFormat.setProperty(str name, QVariant value)'''
480    def property(self, name):
481        '''QVariant QVideoSurfaceFormat.property(str name)'''
482        return QVariant()
483    def propertyNames(self):
484        '''list-of-QByteArray QVideoSurfaceFormat.propertyNames()'''
485        return [QByteArray()]
486    def sizeHint(self):
487        '''QSize QVideoSurfaceFormat.sizeHint()'''
488        return QSize()
489    def setYCbCrColorSpace(self, colorSpace):
490        '''void QVideoSurfaceFormat.setYCbCrColorSpace(QVideoSurfaceFormat.YCbCrColorSpace colorSpace)'''
491    def yCbCrColorSpace(self):
492        '''QVideoSurfaceFormat.YCbCrColorSpace QVideoSurfaceFormat.yCbCrColorSpace()'''
493        return QVideoSurfaceFormat.YCbCrColorSpace()
494    def setPixelAspectRatio(self, ratio):
495        '''void QVideoSurfaceFormat.setPixelAspectRatio(QSize ratio)'''
496    def setPixelAspectRatio(self, width, height):
497        '''void QVideoSurfaceFormat.setPixelAspectRatio(int width, int height)'''
498    def pixelAspectRatio(self):
499        '''QSize QVideoSurfaceFormat.pixelAspectRatio()'''
500        return QSize()
501    def setFrameRate(self, rate):
502        '''void QVideoSurfaceFormat.setFrameRate(float rate)'''
503    def frameRate(self):
504        '''float QVideoSurfaceFormat.frameRate()'''
505        return float()
506    def setScanLineDirection(self, direction):
507        '''void QVideoSurfaceFormat.setScanLineDirection(QVideoSurfaceFormat.Direction direction)'''
508    def scanLineDirection(self):
509        '''QVideoSurfaceFormat.Direction QVideoSurfaceFormat.scanLineDirection()'''
510        return QVideoSurfaceFormat.Direction()
511    def setViewport(self, viewport):
512        '''void QVideoSurfaceFormat.setViewport(QRect viewport)'''
513    def viewport(self):
514        '''QRect QVideoSurfaceFormat.viewport()'''
515        return QRect()
516    def frameHeight(self):
517        '''int QVideoSurfaceFormat.frameHeight()'''
518        return int()
519    def frameWidth(self):
520        '''int QVideoSurfaceFormat.frameWidth()'''
521        return int()
522    def setFrameSize(self, size):
523        '''void QVideoSurfaceFormat.setFrameSize(QSize size)'''
524    def setFrameSize(self, width, height):
525        '''void QVideoSurfaceFormat.setFrameSize(int width, int height)'''
526    def frameSize(self):
527        '''QSize QVideoSurfaceFormat.frameSize()'''
528        return QSize()
529    def handleType(self):
530        '''QAbstractVideoBuffer.HandleType QVideoSurfaceFormat.handleType()'''
531        return QAbstractVideoBuffer.HandleType()
532    def pixelFormat(self):
533        '''QVideoFrame.PixelFormat QVideoSurfaceFormat.pixelFormat()'''
534        return QVideoFrame.PixelFormat()
535    def isValid(self):
536        '''bool QVideoSurfaceFormat.isValid()'''
537        return bool()
538    def __ne__(self, format):
539        '''bool QVideoSurfaceFormat.__ne__(QVideoSurfaceFormat format)'''
540        return bool()
541    def __eq__(self, format):
542        '''bool QVideoSurfaceFormat.__eq__(QVideoSurfaceFormat format)'''
543        return bool()
544
545
546