File indexing completed on 2024-05-12 16:08:51

0001 class pyqtSignal():
0002  def connect(self, targetSignal): pass
0003  def emit(self, *args): pass
0004 from QtCore import *
0005 
0006 class QAbstractVideoBuffer():
0007     """"""
0008     # Enum QAbstractVideoBuffer.MapMode
0009     NotMapped = 0
0010     ReadOnly = 0
0011     WriteOnly = 0
0012     ReadWrite = 0
0013 
0014     # Enum QAbstractVideoBuffer.HandleType
0015     NoHandle = 0
0016     GLTextureHandle = 0
0017     XvShmImageHandle = 0
0018     CoreImageHandle = 0
0019     QPixmapHandle = 0
0020     UserHandle = 0
0021 
0022     def __init__(self, type):
0023         '''void QAbstractVideoBuffer.__init__(QAbstractVideoBuffer.HandleType type)'''
0024     def handle(self):
0025         '''QVariant QAbstractVideoBuffer.handle()'''
0026         return QVariant()
0027     def unmap(self):
0028         '''abstract void QAbstractVideoBuffer.unmap()'''
0029     def map(self, mode, numBytes, bytesPerLine):
0030         '''abstract sip.voidptr QAbstractVideoBuffer.map(QAbstractVideoBuffer.MapMode mode, int numBytes, int bytesPerLine)'''
0031         return sip.voidptr()
0032     def mapMode(self):
0033         '''abstract QAbstractVideoBuffer.MapMode QAbstractVideoBuffer.mapMode()'''
0034         return QAbstractVideoBuffer.MapMode()
0035     def handleType(self):
0036         '''QAbstractVideoBuffer.HandleType QAbstractVideoBuffer.handleType()'''
0037         return QAbstractVideoBuffer.HandleType()
0038 
0039 
0040 class QAbstractVideoSurface(QObject):
0041     """"""
0042     # Enum QAbstractVideoSurface.Error
0043     NoError = 0
0044     UnsupportedFormatError = 0
0045     IncorrectFormatError = 0
0046     StoppedError = 0
0047     ResourceError = 0
0048 
0049     def __init__(self, parent = None):
0050         '''void QAbstractVideoSurface.__init__(QObject parent = None)'''
0051     def setError(self, error):
0052         '''void QAbstractVideoSurface.setError(QAbstractVideoSurface.Error error)'''
0053     supportedFormatsChanged = pyqtSignal() # void supportedFormatsChanged() - signal
0054     surfaceFormatChanged = pyqtSignal() # void surfaceFormatChanged(const QVideoSurfaceFormatamp;) - signal
0055     activeChanged = pyqtSignal() # void activeChanged(bool) - signal
0056     def error(self):
0057         '''QAbstractVideoSurface.Error QAbstractVideoSurface.error()'''
0058         return QAbstractVideoSurface.Error()
0059     def present(self, frame):
0060         '''abstract bool QAbstractVideoSurface.present(QVideoFrame frame)'''
0061         return bool()
0062     def isActive(self):
0063         '''bool QAbstractVideoSurface.isActive()'''
0064         return bool()
0065     def stop(self):
0066         '''void QAbstractVideoSurface.stop()'''
0067     def start(self, format):
0068         '''bool QAbstractVideoSurface.start(QVideoSurfaceFormat format)'''
0069         return bool()
0070     def surfaceFormat(self):
0071         '''QVideoSurfaceFormat QAbstractVideoSurface.surfaceFormat()'''
0072         return QVideoSurfaceFormat()
0073     def nearestFormat(self, format):
0074         '''QVideoSurfaceFormat QAbstractVideoSurface.nearestFormat(QVideoSurfaceFormat format)'''
0075         return QVideoSurfaceFormat()
0076     def isFormatSupported(self, format):
0077         '''bool QAbstractVideoSurface.isFormatSupported(QVideoSurfaceFormat format)'''
0078         return bool()
0079     def supportedPixelFormats(self, type = None):
0080         '''abstract list-of-QVideoFrame.PixelFormat QAbstractVideoSurface.supportedPixelFormats(QAbstractVideoBuffer.HandleType type = QAbstractVideoBuffer.NoHandle)'''
0081         return [QVideoFrame.PixelFormat()]
0082 
0083 
0084 class QAudio():
0085     """"""
0086     # Enum QAudio.Mode
0087     AudioInput = 0
0088     AudioOutput = 0
0089 
0090     # Enum QAudio.State
0091     ActiveState = 0
0092     SuspendedState = 0
0093     StoppedState = 0
0094     IdleState = 0
0095 
0096     # Enum QAudio.Error
0097     NoError = 0
0098     OpenError = 0
0099     IOError = 0
0100     UnderrunError = 0
0101     FatalError = 0
0102 
0103 
0104 
0105 class QAudioDeviceInfo():
0106     """"""
0107     def __init__(self):
0108         '''void QAudioDeviceInfo.__init__()'''
0109     def __init__(self, other):
0110         '''void QAudioDeviceInfo.__init__(QAudioDeviceInfo other)'''
0111     def supportedChannelCounts(self):
0112         '''list-of-int QAudioDeviceInfo.supportedChannelCounts()'''
0113         return [int()]
0114     def supportedSampleRates(self):
0115         '''list-of-int QAudioDeviceInfo.supportedSampleRates()'''
0116         return [int()]
0117     def availableDevices(self, mode):
0118         '''static list-of-QAudioDeviceInfo QAudioDeviceInfo.availableDevices(QAudio.Mode mode)'''
0119         return [QAudioDeviceInfo()]
0120     def defaultOutputDevice(self):
0121         '''static QAudioDeviceInfo QAudioDeviceInfo.defaultOutputDevice()'''
0122         return QAudioDeviceInfo()
0123     def defaultInputDevice(self):
0124         '''static QAudioDeviceInfo QAudioDeviceInfo.defaultInputDevice()'''
0125         return QAudioDeviceInfo()
0126     def supportedSampleTypes(self):
0127         '''list-of-QAudioFormat.SampleType QAudioDeviceInfo.supportedSampleTypes()'''
0128         return [QAudioFormat.SampleType()]
0129     def supportedByteOrders(self):
0130         '''list-of-QAudioFormat.Endian QAudioDeviceInfo.supportedByteOrders()'''
0131         return [QAudioFormat.Endian()]
0132     def supportedSampleSizes(self):
0133         '''list-of-int QAudioDeviceInfo.supportedSampleSizes()'''
0134         return [int()]
0135     def supportedChannels(self):
0136         '''list-of-int QAudioDeviceInfo.supportedChannels()'''
0137         return [int()]
0138     def supportedFrequencies(self):
0139         '''list-of-int QAudioDeviceInfo.supportedFrequencies()'''
0140         return [int()]
0141     def supportedCodecs(self):
0142         '''QStringList QAudioDeviceInfo.supportedCodecs()'''
0143         return QStringList()
0144     def nearestFormat(self, format):
0145         '''QAudioFormat QAudioDeviceInfo.nearestFormat(QAudioFormat format)'''
0146         return QAudioFormat()
0147     def preferredFormat(self):
0148         '''QAudioFormat QAudioDeviceInfo.preferredFormat()'''
0149         return QAudioFormat()
0150     def isFormatSupported(self, format):
0151         '''bool QAudioDeviceInfo.isFormatSupported(QAudioFormat format)'''
0152         return bool()
0153     def deviceName(self):
0154         '''QString QAudioDeviceInfo.deviceName()'''
0155         return QString()
0156     def isNull(self):
0157         '''bool QAudioDeviceInfo.isNull()'''
0158         return bool()
0159 
0160 
0161 class QAudioFormat():
0162     """"""
0163     # Enum QAudioFormat.Endian
0164     BigEndian = 0
0165     LittleEndian = 0
0166 
0167     # Enum QAudioFormat.SampleType
0168     Unknown = 0
0169     SignedInt = 0
0170     UnSignedInt = 0
0171     Float = 0
0172 
0173     def __init__(self):
0174         '''void QAudioFormat.__init__()'''
0175     def __init__(self, other):
0176         '''void QAudioFormat.__init__(QAudioFormat other)'''
0177     def channelCount(self):
0178         '''int QAudioFormat.channelCount()'''
0179         return int()
0180     def setChannelCount(self, channelCount):
0181         '''void QAudioFormat.setChannelCount(int channelCount)'''
0182     def sampleRate(self):
0183         '''int QAudioFormat.sampleRate()'''
0184         return int()
0185     def setSampleRate(self, sampleRate):
0186         '''void QAudioFormat.setSampleRate(int sampleRate)'''
0187     def sampleType(self):
0188         '''QAudioFormat.SampleType QAudioFormat.sampleType()'''
0189         return QAudioFormat.SampleType()
0190     def setSampleType(self, sampleType):
0191         '''void QAudioFormat.setSampleType(QAudioFormat.SampleType sampleType)'''
0192     def byteOrder(self):
0193         '''QAudioFormat.Endian QAudioFormat.byteOrder()'''
0194         return QAudioFormat.Endian()
0195     def setByteOrder(self, byteOrder):
0196         '''void QAudioFormat.setByteOrder(QAudioFormat.Endian byteOrder)'''
0197     def codec(self):
0198         '''QString QAudioFormat.codec()'''
0199         return QString()
0200     def setCodec(self, codec):
0201         '''void QAudioFormat.setCodec(QString codec)'''
0202     def sampleSize(self):
0203         '''int QAudioFormat.sampleSize()'''
0204         return int()
0205     def setSampleSize(self, sampleSize):
0206         '''void QAudioFormat.setSampleSize(int sampleSize)'''
0207     def channels(self):
0208         '''int QAudioFormat.channels()'''
0209         return int()
0210     def setChannels(self, channels):
0211         '''void QAudioFormat.setChannels(int channels)'''
0212     def frequency(self):
0213         '''int QAudioFormat.frequency()'''
0214         return int()
0215     def setFrequency(self, frequency):
0216         '''void QAudioFormat.setFrequency(int frequency)'''
0217     def isValid(self):
0218         '''bool QAudioFormat.isValid()'''
0219         return bool()
0220     def __ne__(self, other):
0221         '''bool QAudioFormat.__ne__(QAudioFormat other)'''
0222         return bool()
0223     def __eq__(self, other):
0224         '''bool QAudioFormat.__eq__(QAudioFormat other)'''
0225         return bool()
0226 
0227 
0228 class QAudioInput(QObject):
0229     """"""
0230     def __init__(self, format = QAudioFormat(), parent = None):
0231         '''void QAudioInput.__init__(QAudioFormat format = QAudioFormat(), QObject parent = None)'''
0232     def __init__(self, audioDevice, format = QAudioFormat(), parent = None):
0233         '''void QAudioInput.__init__(QAudioDeviceInfo audioDevice, QAudioFormat format = QAudioFormat(), QObject parent = None)'''
0234     notify = pyqtSignal() # void notify() - signal
0235     stateChanged = pyqtSignal() # void stateChanged(QAudio::State) - signal
0236     def state(self):
0237         '''QAudio.State QAudioInput.state()'''
0238         return QAudio.State()
0239     def error(self):
0240         '''QAudio.Error QAudioInput.error()'''
0241         return QAudio.Error()
0242     def elapsedUSecs(self):
0243         '''int QAudioInput.elapsedUSecs()'''
0244         return int()
0245     def processedUSecs(self):
0246         '''int QAudioInput.processedUSecs()'''
0247         return int()
0248     def notifyInterval(self):
0249         '''int QAudioInput.notifyInterval()'''
0250         return int()
0251     def setNotifyInterval(self, milliSeconds):
0252         '''void QAudioInput.setNotifyInterval(int milliSeconds)'''
0253     def periodSize(self):
0254         '''int QAudioInput.periodSize()'''
0255         return int()
0256     def bytesReady(self):
0257         '''int QAudioInput.bytesReady()'''
0258         return int()
0259     def bufferSize(self):
0260         '''int QAudioInput.bufferSize()'''
0261         return int()
0262     def setBufferSize(self, bytes):
0263         '''void QAudioInput.setBufferSize(int bytes)'''
0264     def resume(self):
0265         '''void QAudioInput.resume()'''
0266     def suspend(self):
0267         '''void QAudioInput.suspend()'''
0268     def reset(self):
0269         '''void QAudioInput.reset()'''
0270     def stop(self):
0271         '''void QAudioInput.stop()'''
0272     def start(self, device):
0273         '''void QAudioInput.start(QIODevice device)'''
0274     def start(self):
0275         '''QIODevice QAudioInput.start()'''
0276         return QIODevice()
0277     def format(self):
0278         '''QAudioFormat QAudioInput.format()'''
0279         return QAudioFormat()
0280 
0281 
0282 class QAudioOutput(QObject):
0283     """"""
0284     def __init__(self, format = QAudioFormat(), parent = None):
0285         '''void QAudioOutput.__init__(QAudioFormat format = QAudioFormat(), QObject parent = None)'''
0286     def __init__(self, audioDevice, format = QAudioFormat(), parent = None):
0287         '''void QAudioOutput.__init__(QAudioDeviceInfo audioDevice, QAudioFormat format = QAudioFormat(), QObject parent = None)'''
0288     notify = pyqtSignal() # void notify() - signal
0289     stateChanged = pyqtSignal() # void stateChanged(QAudio::State) - signal
0290     def state(self):
0291         '''QAudio.State QAudioOutput.state()'''
0292         return QAudio.State()
0293     def error(self):
0294         '''QAudio.Error QAudioOutput.error()'''
0295         return QAudio.Error()
0296     def elapsedUSecs(self):
0297         '''int QAudioOutput.elapsedUSecs()'''
0298         return int()
0299     def processedUSecs(self):
0300         '''int QAudioOutput.processedUSecs()'''
0301         return int()
0302     def notifyInterval(self):
0303         '''int QAudioOutput.notifyInterval()'''
0304         return int()
0305     def setNotifyInterval(self, milliSeconds):
0306         '''void QAudioOutput.setNotifyInterval(int milliSeconds)'''
0307     def periodSize(self):
0308         '''int QAudioOutput.periodSize()'''
0309         return int()
0310     def bytesFree(self):
0311         '''int QAudioOutput.bytesFree()'''
0312         return int()
0313     def bufferSize(self):
0314         '''int QAudioOutput.bufferSize()'''
0315         return int()
0316     def setBufferSize(self, bytes):
0317         '''void QAudioOutput.setBufferSize(int bytes)'''
0318     def resume(self):
0319         '''void QAudioOutput.resume()'''
0320     def suspend(self):
0321         '''void QAudioOutput.suspend()'''
0322     def reset(self):
0323         '''void QAudioOutput.reset()'''
0324     def stop(self):
0325         '''void QAudioOutput.stop()'''
0326     def start(self, device):
0327         '''void QAudioOutput.start(QIODevice device)'''
0328     def start(self):
0329         '''QIODevice QAudioOutput.start()'''
0330         return QIODevice()
0331     def format(self):
0332         '''QAudioFormat QAudioOutput.format()'''
0333         return QAudioFormat()
0334 
0335 
0336 class QVideoFrame():
0337     """"""
0338     # Enum QVideoFrame.PixelFormat
0339     Format_Invalid = 0
0340     Format_ARGB32 = 0
0341     Format_ARGB32_Premultiplied = 0
0342     Format_RGB32 = 0
0343     Format_RGB24 = 0
0344     Format_RGB565 = 0
0345     Format_RGB555 = 0
0346     Format_ARGB8565_Premultiplied = 0
0347     Format_BGRA32 = 0
0348     Format_BGRA32_Premultiplied = 0
0349     Format_BGR32 = 0
0350     Format_BGR24 = 0
0351     Format_BGR565 = 0
0352     Format_BGR555 = 0
0353     Format_BGRA5658_Premultiplied = 0
0354     Format_AYUV444 = 0
0355     Format_AYUV444_Premultiplied = 0
0356     Format_YUV444 = 0
0357     Format_YUV420P = 0
0358     Format_YV12 = 0
0359     Format_UYVY = 0
0360     Format_YUYV = 0
0361     Format_NV12 = 0
0362     Format_NV21 = 0
0363     Format_IMC1 = 0
0364     Format_IMC2 = 0
0365     Format_IMC3 = 0
0366     Format_IMC4 = 0
0367     Format_Y8 = 0
0368     Format_Y16 = 0
0369     Format_User = 0
0370 
0371     # Enum QVideoFrame.FieldType
0372     ProgressiveFrame = 0
0373     TopField = 0
0374     BottomField = 0
0375     InterlacedFrame = 0
0376 
0377     def __init__(self):
0378         '''void QVideoFrame.__init__()'''
0379     def __init__(self, buffer, size, format):
0380         '''void QVideoFrame.__init__(QAbstractVideoBuffer buffer, QSize size, QVideoFrame.PixelFormat format)'''
0381     def __init__(self, bytes, size, bytesPerLine, format):
0382         '''void QVideoFrame.__init__(int bytes, QSize size, int bytesPerLine, QVideoFrame.PixelFormat format)'''
0383     def __init__(self, image):
0384         '''void QVideoFrame.__init__(QImage image)'''
0385     def __init__(self, other):
0386         '''void QVideoFrame.__init__(QVideoFrame other)'''
0387     def imageFormatFromPixelFormat(self, format):
0388         '''static QImage.Format QVideoFrame.imageFormatFromPixelFormat(QVideoFrame.PixelFormat format)'''
0389         return QImage.Format()
0390     def pixelFormatFromImageFormat(self, format):
0391         '''static QVideoFrame.PixelFormat QVideoFrame.pixelFormatFromImageFormat(QImage.Format format)'''
0392         return QVideoFrame.PixelFormat()
0393     def setEndTime(self, time):
0394         '''void QVideoFrame.setEndTime(int time)'''
0395     def endTime(self):
0396         '''int QVideoFrame.endTime()'''
0397         return int()
0398     def setStartTime(self, time):
0399         '''void QVideoFrame.setStartTime(int time)'''
0400     def startTime(self):
0401         '''int QVideoFrame.startTime()'''
0402         return int()
0403     def handle(self):
0404         '''QVariant QVideoFrame.handle()'''
0405         return QVariant()
0406     def mappedBytes(self):
0407         '''int QVideoFrame.mappedBytes()'''
0408         return int()
0409     def bits(self):
0410         '''sip.voidptr QVideoFrame.bits()'''
0411         return sip.voidptr()
0412     def bytesPerLine(self):
0413         '''int QVideoFrame.bytesPerLine()'''
0414         return int()
0415     def unmap(self):
0416         '''void QVideoFrame.unmap()'''
0417     def map(self, mode):
0418         '''bool QVideoFrame.map(QAbstractVideoBuffer.MapMode mode)'''
0419         return bool()
0420     def mapMode(self):
0421         '''QAbstractVideoBuffer.MapMode QVideoFrame.mapMode()'''
0422         return QAbstractVideoBuffer.MapMode()
0423     def isWritable(self):
0424         '''bool QVideoFrame.isWritable()'''
0425         return bool()
0426     def isReadable(self):
0427         '''bool QVideoFrame.isReadable()'''
0428         return bool()
0429     def isMapped(self):
0430         '''bool QVideoFrame.isMapped()'''
0431         return bool()
0432     def setFieldType(self):
0433         '''QVideoFrame.FieldType QVideoFrame.setFieldType()'''
0434         return QVideoFrame.FieldType()
0435     def fieldType(self):
0436         '''QVideoFrame.FieldType QVideoFrame.fieldType()'''
0437         return QVideoFrame.FieldType()
0438     def height(self):
0439         '''int QVideoFrame.height()'''
0440         return int()
0441     def width(self):
0442         '''int QVideoFrame.width()'''
0443         return int()
0444     def size(self):
0445         '''QSize QVideoFrame.size()'''
0446         return QSize()
0447     def handleType(self):
0448         '''QAbstractVideoBuffer.HandleType QVideoFrame.handleType()'''
0449         return QAbstractVideoBuffer.HandleType()
0450     def pixelFormat(self):
0451         '''QVideoFrame.PixelFormat QVideoFrame.pixelFormat()'''
0452         return QVideoFrame.PixelFormat()
0453     def isValid(self):
0454         '''bool QVideoFrame.isValid()'''
0455         return bool()
0456 
0457 
0458 class QVideoSurfaceFormat():
0459     """"""
0460     # Enum QVideoSurfaceFormat.YCbCrColorSpace
0461     YCbCr_Undefined = 0
0462     YCbCr_BT601 = 0
0463     YCbCr_BT709 = 0
0464     YCbCr_xvYCC601 = 0
0465     YCbCr_xvYCC709 = 0
0466     YCbCr_JPEG = 0
0467 
0468     # Enum QVideoSurfaceFormat.Direction
0469     TopToBottom = 0
0470     BottomToTop = 0
0471 
0472     def __init__(self):
0473         '''void QVideoSurfaceFormat.__init__()'''
0474     def __init__(self, size, format, type = None):
0475         '''void QVideoSurfaceFormat.__init__(QSize size, QVideoFrame.PixelFormat format, QAbstractVideoBuffer.HandleType type = QAbstractVideoBuffer.NoHandle)'''
0476     def __init__(self, format):
0477         '''void QVideoSurfaceFormat.__init__(QVideoSurfaceFormat format)'''
0478     def setProperty(self, name, value):
0479         '''void QVideoSurfaceFormat.setProperty(str name, QVariant value)'''
0480     def property(self, name):
0481         '''QVariant QVideoSurfaceFormat.property(str name)'''
0482         return QVariant()
0483     def propertyNames(self):
0484         '''list-of-QByteArray QVideoSurfaceFormat.propertyNames()'''
0485         return [QByteArray()]
0486     def sizeHint(self):
0487         '''QSize QVideoSurfaceFormat.sizeHint()'''
0488         return QSize()
0489     def setYCbCrColorSpace(self, colorSpace):
0490         '''void QVideoSurfaceFormat.setYCbCrColorSpace(QVideoSurfaceFormat.YCbCrColorSpace colorSpace)'''
0491     def yCbCrColorSpace(self):
0492         '''QVideoSurfaceFormat.YCbCrColorSpace QVideoSurfaceFormat.yCbCrColorSpace()'''
0493         return QVideoSurfaceFormat.YCbCrColorSpace()
0494     def setPixelAspectRatio(self, ratio):
0495         '''void QVideoSurfaceFormat.setPixelAspectRatio(QSize ratio)'''
0496     def setPixelAspectRatio(self, width, height):
0497         '''void QVideoSurfaceFormat.setPixelAspectRatio(int width, int height)'''
0498     def pixelAspectRatio(self):
0499         '''QSize QVideoSurfaceFormat.pixelAspectRatio()'''
0500         return QSize()
0501     def setFrameRate(self, rate):
0502         '''void QVideoSurfaceFormat.setFrameRate(float rate)'''
0503     def frameRate(self):
0504         '''float QVideoSurfaceFormat.frameRate()'''
0505         return float()
0506     def setScanLineDirection(self, direction):
0507         '''void QVideoSurfaceFormat.setScanLineDirection(QVideoSurfaceFormat.Direction direction)'''
0508     def scanLineDirection(self):
0509         '''QVideoSurfaceFormat.Direction QVideoSurfaceFormat.scanLineDirection()'''
0510         return QVideoSurfaceFormat.Direction()
0511     def setViewport(self, viewport):
0512         '''void QVideoSurfaceFormat.setViewport(QRect viewport)'''
0513     def viewport(self):
0514         '''QRect QVideoSurfaceFormat.viewport()'''
0515         return QRect()
0516     def frameHeight(self):
0517         '''int QVideoSurfaceFormat.frameHeight()'''
0518         return int()
0519     def frameWidth(self):
0520         '''int QVideoSurfaceFormat.frameWidth()'''
0521         return int()
0522     def setFrameSize(self, size):
0523         '''void QVideoSurfaceFormat.setFrameSize(QSize size)'''
0524     def setFrameSize(self, width, height):
0525         '''void QVideoSurfaceFormat.setFrameSize(int width, int height)'''
0526     def frameSize(self):
0527         '''QSize QVideoSurfaceFormat.frameSize()'''
0528         return QSize()
0529     def handleType(self):
0530         '''QAbstractVideoBuffer.HandleType QVideoSurfaceFormat.handleType()'''
0531         return QAbstractVideoBuffer.HandleType()
0532     def pixelFormat(self):
0533         '''QVideoFrame.PixelFormat QVideoSurfaceFormat.pixelFormat()'''
0534         return QVideoFrame.PixelFormat()
0535     def isValid(self):
0536         '''bool QVideoSurfaceFormat.isValid()'''
0537         return bool()
0538     def __ne__(self, format):
0539         '''bool QVideoSurfaceFormat.__ne__(QVideoSurfaceFormat format)'''
0540         return bool()
0541     def __eq__(self, format):
0542         '''bool QVideoSurfaceFormat.__eq__(QVideoSurfaceFormat format)'''
0543         return bool()
0544 
0545