File indexing completed on 2024-05-12 16:09:04
0001 class pyqtSignal(): 0002 def connect(self, targetSignal): pass 0003 def emit(self, *args): pass 0004 from QtCore import * 0005 0006 from QtWidgets import * 0007 0008 import datetime 0009 0010 class QAbstractVideoBuffer(): 0011 """""" 0012 # Enum QAbstractVideoBuffer.MapMode 0013 NotMapped = 0 0014 ReadOnly = 0 0015 WriteOnly = 0 0016 ReadWrite = 0 0017 0018 # Enum QAbstractVideoBuffer.HandleType 0019 NoHandle = 0 0020 GLTextureHandle = 0 0021 XvShmImageHandle = 0 0022 CoreImageHandle = 0 0023 QPixmapHandle = 0 0024 EGLImageHandle = 0 0025 UserHandle = 0 0026 0027 def __init__(self, type): 0028 '''void QAbstractVideoBuffer.__init__(QAbstractVideoBuffer.HandleType type)''' 0029 def release(self): 0030 '''void QAbstractVideoBuffer.release()''' 0031 def handle(self): 0032 '''QVariant QAbstractVideoBuffer.handle()''' 0033 return QVariant() 0034 def unmap(self): 0035 '''abstract void QAbstractVideoBuffer.unmap()''' 0036 def map(self, mode, numBytes, bytesPerLine): 0037 '''abstract sip.voidptr QAbstractVideoBuffer.map(QAbstractVideoBuffer.MapMode mode, int numBytes, int bytesPerLine)''' 0038 return sip.voidptr() 0039 def mapMode(self): 0040 '''abstract QAbstractVideoBuffer.MapMode QAbstractVideoBuffer.mapMode()''' 0041 return QAbstractVideoBuffer.MapMode() 0042 def handleType(self): 0043 '''QAbstractVideoBuffer.HandleType QAbstractVideoBuffer.handleType()''' 0044 return QAbstractVideoBuffer.HandleType() 0045 0046 0047 class QVideoFilterRunnable(): 0048 """""" 0049 # Enum QVideoFilterRunnable.RunFlag 0050 LastInChain = 0 0051 0052 def __init__(self): 0053 '''void QVideoFilterRunnable.__init__()''' 0054 def __init__(self): 0055 '''QVideoFilterRunnable QVideoFilterRunnable.__init__()''' 0056 return QVideoFilterRunnable() 0057 def run(self, input, surfaceFormat, flags): 0058 '''abstract QVideoFrame QVideoFilterRunnable.run(QVideoFrame input, QVideoSurfaceFormat surfaceFormat, QVideoFilterRunnable.RunFlags flags)''' 0059 return QVideoFrame() 0060 class RunFlags(): 0061 """""" 0062 def __init__(self): 0063 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__init__()''' 0064 return QVideoFilterRunnable.RunFlags() 0065 def __init__(self): 0066 '''int QVideoFilterRunnable.RunFlags.__init__()''' 0067 return int() 0068 def __init__(self): 0069 '''void QVideoFilterRunnable.RunFlags.__init__()''' 0070 def __bool__(self): 0071 '''int QVideoFilterRunnable.RunFlags.__bool__()''' 0072 return int() 0073 def __ne__(self, f): 0074 '''bool QVideoFilterRunnable.RunFlags.__ne__(QVideoFilterRunnable.RunFlags f)''' 0075 return bool() 0076 def __eq__(self, f): 0077 '''bool QVideoFilterRunnable.RunFlags.__eq__(QVideoFilterRunnable.RunFlags f)''' 0078 return bool() 0079 def __invert__(self): 0080 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__invert__()''' 0081 return QVideoFilterRunnable.RunFlags() 0082 def __and__(self, mask): 0083 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__and__(int mask)''' 0084 return QVideoFilterRunnable.RunFlags() 0085 def __xor__(self, f): 0086 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__xor__(QVideoFilterRunnable.RunFlags f)''' 0087 return QVideoFilterRunnable.RunFlags() 0088 def __xor__(self, f): 0089 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__xor__(int f)''' 0090 return QVideoFilterRunnable.RunFlags() 0091 def __or__(self, f): 0092 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__or__(QVideoFilterRunnable.RunFlags f)''' 0093 return QVideoFilterRunnable.RunFlags() 0094 def __or__(self, f): 0095 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__or__(int f)''' 0096 return QVideoFilterRunnable.RunFlags() 0097 def __int__(self): 0098 '''int QVideoFilterRunnable.RunFlags.__int__()''' 0099 return int() 0100 def __ixor__(self, f): 0101 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__ixor__(QVideoFilterRunnable.RunFlags f)''' 0102 return QVideoFilterRunnable.RunFlags() 0103 def __ior__(self, f): 0104 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__ior__(QVideoFilterRunnable.RunFlags f)''' 0105 return QVideoFilterRunnable.RunFlags() 0106 def __iand__(self, mask): 0107 '''QVideoFilterRunnable.RunFlags QVideoFilterRunnable.RunFlags.__iand__(int mask)''' 0108 return QVideoFilterRunnable.RunFlags() 0109 0110 0111 class QAbstractVideoFilter(QObject): 0112 """""" 0113 def __init__(self, parent = None): 0114 '''void QAbstractVideoFilter.__init__(QObject parent = None)''' 0115 activeChanged = pyqtSignal() # void activeChanged() - signal 0116 def createFilterRunnable(self): 0117 '''abstract QVideoFilterRunnable QAbstractVideoFilter.createFilterRunnable()''' 0118 return QVideoFilterRunnable() 0119 def isActive(self): 0120 '''bool QAbstractVideoFilter.isActive()''' 0121 return bool() 0122 0123 0124 class QAbstractVideoSurface(QObject): 0125 """""" 0126 # Enum QAbstractVideoSurface.Error 0127 NoError = 0 0128 UnsupportedFormatError = 0 0129 IncorrectFormatError = 0 0130 StoppedError = 0 0131 ResourceError = 0 0132 0133 def __init__(self, parent = None): 0134 '''void QAbstractVideoSurface.__init__(QObject parent = None)''' 0135 nativeResolutionChanged = pyqtSignal() # void nativeResolutionChanged(const QSizeamp;) - signal 0136 def setNativeResolution(self, resolution): 0137 '''void QAbstractVideoSurface.setNativeResolution(QSize resolution)''' 0138 def nativeResolution(self): 0139 '''QSize QAbstractVideoSurface.nativeResolution()''' 0140 return QSize() 0141 def setError(self, error): 0142 '''void QAbstractVideoSurface.setError(QAbstractVideoSurface.Error error)''' 0143 supportedFormatsChanged = pyqtSignal() # void supportedFormatsChanged() - signal 0144 surfaceFormatChanged = pyqtSignal() # void surfaceFormatChanged(const QVideoSurfaceFormatamp;) - signal 0145 activeChanged = pyqtSignal() # void activeChanged(bool) - signal 0146 def error(self): 0147 '''QAbstractVideoSurface.Error QAbstractVideoSurface.error()''' 0148 return QAbstractVideoSurface.Error() 0149 def present(self, frame): 0150 '''abstract bool QAbstractVideoSurface.present(QVideoFrame frame)''' 0151 return bool() 0152 def isActive(self): 0153 '''bool QAbstractVideoSurface.isActive()''' 0154 return bool() 0155 def stop(self): 0156 '''void QAbstractVideoSurface.stop()''' 0157 def start(self, format): 0158 '''bool QAbstractVideoSurface.start(QVideoSurfaceFormat format)''' 0159 return bool() 0160 def surfaceFormat(self): 0161 '''QVideoSurfaceFormat QAbstractVideoSurface.surfaceFormat()''' 0162 return QVideoSurfaceFormat() 0163 def nearestFormat(self, format): 0164 '''QVideoSurfaceFormat QAbstractVideoSurface.nearestFormat(QVideoSurfaceFormat format)''' 0165 return QVideoSurfaceFormat() 0166 def isFormatSupported(self, format): 0167 '''bool QAbstractVideoSurface.isFormatSupported(QVideoSurfaceFormat format)''' 0168 return bool() 0169 def supportedPixelFormats(self, type = None): 0170 '''abstract list-of-QVideoFrame.PixelFormat QAbstractVideoSurface.supportedPixelFormats(QAbstractVideoBuffer.HandleType type = QAbstractVideoBuffer.NoHandle)''' 0171 return [QVideoFrame.PixelFormat()] 0172 0173 0174 class QAudio(): 0175 """""" 0176 # Enum QAudio.Mode 0177 AudioInput = 0 0178 AudioOutput = 0 0179 0180 # Enum QAudio.State 0181 ActiveState = 0 0182 SuspendedState = 0 0183 StoppedState = 0 0184 IdleState = 0 0185 0186 # Enum QAudio.Error 0187 NoError = 0 0188 OpenError = 0 0189 IOError = 0 0190 UnderrunError = 0 0191 FatalError = 0 0192 0193 0194 0195 class QAudioBuffer(): 0196 """""" 0197 def __init__(self): 0198 '''void QAudioBuffer.__init__()''' 0199 def __init__(self, data, format, startTime = None): 0200 '''void QAudioBuffer.__init__(QByteArray data, QAudioFormat format, int startTime = -1)''' 0201 def __init__(self, numFrames, format, startTime = None): 0202 '''void QAudioBuffer.__init__(int numFrames, QAudioFormat format, int startTime = -1)''' 0203 def __init__(self, other): 0204 '''void QAudioBuffer.__init__(QAudioBuffer other)''' 0205 def data(self): 0206 '''sip.voidptr QAudioBuffer.data()''' 0207 return sip.voidptr() 0208 def constData(self): 0209 '''sip.voidptr QAudioBuffer.constData()''' 0210 return sip.voidptr() 0211 def startTime(self): 0212 '''int QAudioBuffer.startTime()''' 0213 return int() 0214 def duration(self): 0215 '''int QAudioBuffer.duration()''' 0216 return int() 0217 def byteCount(self): 0218 '''int QAudioBuffer.byteCount()''' 0219 return int() 0220 def sampleCount(self): 0221 '''int QAudioBuffer.sampleCount()''' 0222 return int() 0223 def frameCount(self): 0224 '''int QAudioBuffer.frameCount()''' 0225 return int() 0226 def format(self): 0227 '''QAudioFormat QAudioBuffer.format()''' 0228 return QAudioFormat() 0229 def isValid(self): 0230 '''bool QAudioBuffer.isValid()''' 0231 return bool() 0232 0233 0234 class QMediaObject(QObject): 0235 """""" 0236 def __init__(self, parent, service): 0237 '''void QMediaObject.__init__(QObject parent, QMediaService service)''' 0238 def removePropertyWatch(self, name): 0239 '''void QMediaObject.removePropertyWatch(QByteArray name)''' 0240 def addPropertyWatch(self, name): 0241 '''void QMediaObject.addPropertyWatch(QByteArray name)''' 0242 availabilityChanged = pyqtSignal() # void availabilityChanged(QMultimedia::AvailabilityStatus) - signal 0243 metaDataChanged = pyqtSignal() # void metaDataChanged() - signal 0244 metaDataChanged = pyqtSignal() # void metaDataChanged(const QStringamp;,const QVariantamp;) - signal 0245 metaDataAvailableChanged = pyqtSignal() # void metaDataAvailableChanged(bool) - signal 0246 notifyIntervalChanged = pyqtSignal() # void notifyIntervalChanged(int) - signal 0247 def availableMetaData(self): 0248 '''list-of-str QMediaObject.availableMetaData()''' 0249 return [str()] 0250 def metaData(self, key): 0251 '''QVariant QMediaObject.metaData(str key)''' 0252 return QVariant() 0253 def isMetaDataAvailable(self): 0254 '''bool QMediaObject.isMetaDataAvailable()''' 0255 return bool() 0256 def unbind(self): 0257 '''QObject QMediaObject.unbind()''' 0258 return QObject() 0259 def bind(self): 0260 '''QObject QMediaObject.bind()''' 0261 return QObject() 0262 def setNotifyInterval(self, milliSeconds): 0263 '''void QMediaObject.setNotifyInterval(int milliSeconds)''' 0264 def notifyInterval(self): 0265 '''int QMediaObject.notifyInterval()''' 0266 return int() 0267 def service(self): 0268 '''QMediaService QMediaObject.service()''' 0269 return QMediaService() 0270 def availability(self): 0271 '''QMultimedia.AvailabilityStatus QMediaObject.availability()''' 0272 return QMultimedia.AvailabilityStatus() 0273 def isAvailable(self): 0274 '''bool QMediaObject.isAvailable()''' 0275 return bool() 0276 0277 0278 class QAudioDecoder(QMediaObject): 0279 """""" 0280 # Enum QAudioDecoder.Error 0281 NoError = 0 0282 ResourceError = 0 0283 FormatError = 0 0284 AccessDeniedError = 0 0285 ServiceMissingError = 0 0286 0287 # Enum QAudioDecoder.State 0288 StoppedState = 0 0289 DecodingState = 0 0290 0291 def __init__(self, parent = None): 0292 '''void QAudioDecoder.__init__(QObject parent = None)''' 0293 def unbind(self): 0294 '''QObject QAudioDecoder.unbind()''' 0295 return QObject() 0296 def bind(self): 0297 '''QObject QAudioDecoder.bind()''' 0298 return QObject() 0299 durationChanged = pyqtSignal() # void durationChanged(qint64) - signal 0300 positionChanged = pyqtSignal() # void positionChanged(qint64) - signal 0301 sourceChanged = pyqtSignal() # void sourceChanged() - signal 0302 formatChanged = pyqtSignal() # void formatChanged(const QAudioFormatamp;) - signal 0303 stateChanged = pyqtSignal() # void stateChanged(QAudioDecoder::State) - signal 0304 finished = pyqtSignal() # void finished() - signal 0305 bufferReady = pyqtSignal() # void bufferReady() - signal 0306 bufferAvailableChanged = pyqtSignal() # void bufferAvailableChanged(bool) - signal 0307 def stop(self): 0308 '''void QAudioDecoder.stop()''' 0309 def start(self): 0310 '''void QAudioDecoder.start()''' 0311 def duration(self): 0312 '''int QAudioDecoder.duration()''' 0313 return int() 0314 def position(self): 0315 '''int QAudioDecoder.position()''' 0316 return int() 0317 def bufferAvailable(self): 0318 '''bool QAudioDecoder.bufferAvailable()''' 0319 return bool() 0320 def read(self): 0321 '''QAudioBuffer QAudioDecoder.read()''' 0322 return QAudioBuffer() 0323 def errorString(self): 0324 '''str QAudioDecoder.errorString()''' 0325 return str() 0326 def error(self): 0327 '''QAudioDecoder.Error QAudioDecoder.error()''' 0328 return QAudioDecoder.Error() 0329 error = pyqtSignal() # void error(QAudioDecoder::Error) - signal 0330 def setAudioFormat(self, format): 0331 '''void QAudioDecoder.setAudioFormat(QAudioFormat format)''' 0332 def audioFormat(self): 0333 '''QAudioFormat QAudioDecoder.audioFormat()''' 0334 return QAudioFormat() 0335 def setSourceDevice(self, device): 0336 '''void QAudioDecoder.setSourceDevice(QIODevice device)''' 0337 def sourceDevice(self): 0338 '''QIODevice QAudioDecoder.sourceDevice()''' 0339 return QIODevice() 0340 def setSourceFilename(self, fileName): 0341 '''void QAudioDecoder.setSourceFilename(str fileName)''' 0342 def sourceFilename(self): 0343 '''str QAudioDecoder.sourceFilename()''' 0344 return str() 0345 def state(self): 0346 '''QAudioDecoder.State QAudioDecoder.state()''' 0347 return QAudioDecoder.State() 0348 def hasSupport(self, mimeType, codecs = strList()): 0349 '''static QMultimedia.SupportEstimate QAudioDecoder.hasSupport(str mimeType, list-of-str codecs = strList())''' 0350 return QMultimedia.SupportEstimate() 0351 0352 0353 class QAudioDeviceInfo(): 0354 """""" 0355 def __init__(self): 0356 '''void QAudioDeviceInfo.__init__()''' 0357 def __init__(self, other): 0358 '''void QAudioDeviceInfo.__init__(QAudioDeviceInfo other)''' 0359 def __ne__(self, other): 0360 '''bool QAudioDeviceInfo.__ne__(QAudioDeviceInfo other)''' 0361 return bool() 0362 def __eq__(self, other): 0363 '''bool QAudioDeviceInfo.__eq__(QAudioDeviceInfo other)''' 0364 return bool() 0365 def supportedChannelCounts(self): 0366 '''list-of-int QAudioDeviceInfo.supportedChannelCounts()''' 0367 return [int()] 0368 def supportedSampleRates(self): 0369 '''list-of-int QAudioDeviceInfo.supportedSampleRates()''' 0370 return [int()] 0371 def availableDevices(self, mode): 0372 '''static list-of-QAudioDeviceInfo QAudioDeviceInfo.availableDevices(QAudio.Mode mode)''' 0373 return [QAudioDeviceInfo()] 0374 def defaultOutputDevice(self): 0375 '''static QAudioDeviceInfo QAudioDeviceInfo.defaultOutputDevice()''' 0376 return QAudioDeviceInfo() 0377 def defaultInputDevice(self): 0378 '''static QAudioDeviceInfo QAudioDeviceInfo.defaultInputDevice()''' 0379 return QAudioDeviceInfo() 0380 def supportedSampleTypes(self): 0381 '''list-of-QAudioFormat.SampleType QAudioDeviceInfo.supportedSampleTypes()''' 0382 return [QAudioFormat.SampleType()] 0383 def supportedByteOrders(self): 0384 '''list-of-QAudioFormat.Endian QAudioDeviceInfo.supportedByteOrders()''' 0385 return [QAudioFormat.Endian()] 0386 def supportedSampleSizes(self): 0387 '''list-of-int QAudioDeviceInfo.supportedSampleSizes()''' 0388 return [int()] 0389 def supportedCodecs(self): 0390 '''list-of-str QAudioDeviceInfo.supportedCodecs()''' 0391 return [str()] 0392 def nearestFormat(self, format): 0393 '''QAudioFormat QAudioDeviceInfo.nearestFormat(QAudioFormat format)''' 0394 return QAudioFormat() 0395 def preferredFormat(self): 0396 '''QAudioFormat QAudioDeviceInfo.preferredFormat()''' 0397 return QAudioFormat() 0398 def isFormatSupported(self, format): 0399 '''bool QAudioDeviceInfo.isFormatSupported(QAudioFormat format)''' 0400 return bool() 0401 def deviceName(self): 0402 '''str QAudioDeviceInfo.deviceName()''' 0403 return str() 0404 def isNull(self): 0405 '''bool QAudioDeviceInfo.isNull()''' 0406 return bool() 0407 0408 0409 class QAudioFormat(): 0410 """""" 0411 # Enum QAudioFormat.Endian 0412 BigEndian = 0 0413 LittleEndian = 0 0414 0415 # Enum QAudioFormat.SampleType 0416 Unknown = 0 0417 SignedInt = 0 0418 UnSignedInt = 0 0419 Float = 0 0420 0421 def __init__(self): 0422 '''void QAudioFormat.__init__()''' 0423 def __init__(self, other): 0424 '''void QAudioFormat.__init__(QAudioFormat other)''' 0425 def bytesPerFrame(self): 0426 '''int QAudioFormat.bytesPerFrame()''' 0427 return int() 0428 def durationForFrames(self, frameCount): 0429 '''int QAudioFormat.durationForFrames(int frameCount)''' 0430 return int() 0431 def framesForDuration(self, duration): 0432 '''int QAudioFormat.framesForDuration(int duration)''' 0433 return int() 0434 def framesForBytes(self, byteCount): 0435 '''int QAudioFormat.framesForBytes(int byteCount)''' 0436 return int() 0437 def bytesForFrames(self, frameCount): 0438 '''int QAudioFormat.bytesForFrames(int frameCount)''' 0439 return int() 0440 def durationForBytes(self, byteCount): 0441 '''int QAudioFormat.durationForBytes(int byteCount)''' 0442 return int() 0443 def bytesForDuration(self, duration): 0444 '''int QAudioFormat.bytesForDuration(int duration)''' 0445 return int() 0446 def channelCount(self): 0447 '''int QAudioFormat.channelCount()''' 0448 return int() 0449 def setChannelCount(self, channelCount): 0450 '''void QAudioFormat.setChannelCount(int channelCount)''' 0451 def sampleRate(self): 0452 '''int QAudioFormat.sampleRate()''' 0453 return int() 0454 def setSampleRate(self, sampleRate): 0455 '''void QAudioFormat.setSampleRate(int sampleRate)''' 0456 def sampleType(self): 0457 '''QAudioFormat.SampleType QAudioFormat.sampleType()''' 0458 return QAudioFormat.SampleType() 0459 def setSampleType(self, sampleType): 0460 '''void QAudioFormat.setSampleType(QAudioFormat.SampleType sampleType)''' 0461 def byteOrder(self): 0462 '''QAudioFormat.Endian QAudioFormat.byteOrder()''' 0463 return QAudioFormat.Endian() 0464 def setByteOrder(self, byteOrder): 0465 '''void QAudioFormat.setByteOrder(QAudioFormat.Endian byteOrder)''' 0466 def codec(self): 0467 '''str QAudioFormat.codec()''' 0468 return str() 0469 def setCodec(self, codec): 0470 '''void QAudioFormat.setCodec(str codec)''' 0471 def sampleSize(self): 0472 '''int QAudioFormat.sampleSize()''' 0473 return int() 0474 def setSampleSize(self, sampleSize): 0475 '''void QAudioFormat.setSampleSize(int sampleSize)''' 0476 def isValid(self): 0477 '''bool QAudioFormat.isValid()''' 0478 return bool() 0479 def __ne__(self, other): 0480 '''bool QAudioFormat.__ne__(QAudioFormat other)''' 0481 return bool() 0482 def __eq__(self, other): 0483 '''bool QAudioFormat.__eq__(QAudioFormat other)''' 0484 return bool() 0485 0486 0487 class QAudioInput(QObject): 0488 """""" 0489 def __init__(self, format = QAudioFormat(), parent = None): 0490 '''void QAudioInput.__init__(QAudioFormat format = QAudioFormat(), QObject parent = None)''' 0491 def __init__(self, audioDevice, format = QAudioFormat(), parent = None): 0492 '''void QAudioInput.__init__(QAudioDeviceInfo audioDevice, QAudioFormat format = QAudioFormat(), QObject parent = None)''' 0493 def volume(self): 0494 '''float QAudioInput.volume()''' 0495 return float() 0496 def setVolume(self, volume): 0497 '''void QAudioInput.setVolume(float volume)''' 0498 notify = pyqtSignal() # void notify() - signal 0499 stateChanged = pyqtSignal() # void stateChanged(QAudio::State) - signal 0500 def state(self): 0501 '''QAudio.State QAudioInput.state()''' 0502 return QAudio.State() 0503 def error(self): 0504 '''QAudio.Error QAudioInput.error()''' 0505 return QAudio.Error() 0506 def elapsedUSecs(self): 0507 '''int QAudioInput.elapsedUSecs()''' 0508 return int() 0509 def processedUSecs(self): 0510 '''int QAudioInput.processedUSecs()''' 0511 return int() 0512 def notifyInterval(self): 0513 '''int QAudioInput.notifyInterval()''' 0514 return int() 0515 def setNotifyInterval(self, milliSeconds): 0516 '''void QAudioInput.setNotifyInterval(int milliSeconds)''' 0517 def periodSize(self): 0518 '''int QAudioInput.periodSize()''' 0519 return int() 0520 def bytesReady(self): 0521 '''int QAudioInput.bytesReady()''' 0522 return int() 0523 def bufferSize(self): 0524 '''int QAudioInput.bufferSize()''' 0525 return int() 0526 def setBufferSize(self, bytes): 0527 '''void QAudioInput.setBufferSize(int bytes)''' 0528 def resume(self): 0529 '''void QAudioInput.resume()''' 0530 def suspend(self): 0531 '''void QAudioInput.suspend()''' 0532 def reset(self): 0533 '''void QAudioInput.reset()''' 0534 def stop(self): 0535 '''void QAudioInput.stop()''' 0536 def start(self, device): 0537 '''void QAudioInput.start(QIODevice device)''' 0538 def start(self): 0539 '''QIODevice QAudioInput.start()''' 0540 return QIODevice() 0541 def format(self): 0542 '''QAudioFormat QAudioInput.format()''' 0543 return QAudioFormat() 0544 0545 0546 class QAudioOutput(QObject): 0547 """""" 0548 def __init__(self, format = QAudioFormat(), parent = None): 0549 '''void QAudioOutput.__init__(QAudioFormat format = QAudioFormat(), QObject parent = None)''' 0550 def __init__(self, audioDevice, format = QAudioFormat(), parent = None): 0551 '''void QAudioOutput.__init__(QAudioDeviceInfo audioDevice, QAudioFormat format = QAudioFormat(), QObject parent = None)''' 0552 def setCategory(self, category): 0553 '''void QAudioOutput.setCategory(str category)''' 0554 def category(self): 0555 '''str QAudioOutput.category()''' 0556 return str() 0557 def volume(self): 0558 '''float QAudioOutput.volume()''' 0559 return float() 0560 def setVolume(self): 0561 '''float QAudioOutput.setVolume()''' 0562 return float() 0563 notify = pyqtSignal() # void notify() - signal 0564 stateChanged = pyqtSignal() # void stateChanged(QAudio::State) - signal 0565 def state(self): 0566 '''QAudio.State QAudioOutput.state()''' 0567 return QAudio.State() 0568 def error(self): 0569 '''QAudio.Error QAudioOutput.error()''' 0570 return QAudio.Error() 0571 def elapsedUSecs(self): 0572 '''int QAudioOutput.elapsedUSecs()''' 0573 return int() 0574 def processedUSecs(self): 0575 '''int QAudioOutput.processedUSecs()''' 0576 return int() 0577 def notifyInterval(self): 0578 '''int QAudioOutput.notifyInterval()''' 0579 return int() 0580 def setNotifyInterval(self, milliSeconds): 0581 '''void QAudioOutput.setNotifyInterval(int milliSeconds)''' 0582 def periodSize(self): 0583 '''int QAudioOutput.periodSize()''' 0584 return int() 0585 def bytesFree(self): 0586 '''int QAudioOutput.bytesFree()''' 0587 return int() 0588 def bufferSize(self): 0589 '''int QAudioOutput.bufferSize()''' 0590 return int() 0591 def setBufferSize(self, bytes): 0592 '''void QAudioOutput.setBufferSize(int bytes)''' 0593 def resume(self): 0594 '''void QAudioOutput.resume()''' 0595 def suspend(self): 0596 '''void QAudioOutput.suspend()''' 0597 def reset(self): 0598 '''void QAudioOutput.reset()''' 0599 def stop(self): 0600 '''void QAudioOutput.stop()''' 0601 def start(self, device): 0602 '''void QAudioOutput.start(QIODevice device)''' 0603 def start(self): 0604 '''QIODevice QAudioOutput.start()''' 0605 return QIODevice() 0606 def format(self): 0607 '''QAudioFormat QAudioOutput.format()''' 0608 return QAudioFormat() 0609 0610 0611 class QAudioProbe(QObject): 0612 """""" 0613 def __init__(self, parent = None): 0614 '''void QAudioProbe.__init__(QObject parent = None)''' 0615 flush = pyqtSignal() # void flush() - signal 0616 audioBufferProbed = pyqtSignal() # void audioBufferProbed(const QAudioBufferamp;) - signal 0617 def isActive(self): 0618 '''bool QAudioProbe.isActive()''' 0619 return bool() 0620 def setSource(self, source): 0621 '''bool QAudioProbe.setSource(QMediaObject source)''' 0622 return bool() 0623 def setSource(self, source): 0624 '''bool QAudioProbe.setSource(QMediaRecorder source)''' 0625 return bool() 0626 0627 0628 class QMediaBindableInterface(): 0629 """""" 0630 def __init__(self): 0631 '''void QMediaBindableInterface.__init__()''' 0632 def __init__(self): 0633 '''QMediaBindableInterface QMediaBindableInterface.__init__()''' 0634 return QMediaBindableInterface() 0635 def setMediaObject(self, object): 0636 '''abstract bool QMediaBindableInterface.setMediaObject(QMediaObject object)''' 0637 return bool() 0638 def mediaObject(self): 0639 '''abstract QMediaObject QMediaBindableInterface.mediaObject()''' 0640 return QMediaObject() 0641 0642 0643 class QMediaRecorder(QObject, QMediaBindableInterface): 0644 """""" 0645 # Enum QMediaRecorder.Error 0646 NoError = 0 0647 ResourceError = 0 0648 FormatError = 0 0649 OutOfSpaceError = 0 0650 0651 # Enum QMediaRecorder.Status 0652 UnavailableStatus = 0 0653 UnloadedStatus = 0 0654 LoadingStatus = 0 0655 LoadedStatus = 0 0656 StartingStatus = 0 0657 RecordingStatus = 0 0658 PausedStatus = 0 0659 FinalizingStatus = 0 0660 0661 # Enum QMediaRecorder.State 0662 StoppedState = 0 0663 RecordingState = 0 0664 PausedState = 0 0665 0666 def __init__(self, mediaObject, parent = None): 0667 '''void QMediaRecorder.__init__(QMediaObject mediaObject, QObject parent = None)''' 0668 def setMediaObject(self, object): 0669 '''bool QMediaRecorder.setMediaObject(QMediaObject object)''' 0670 return bool() 0671 availabilityChanged = pyqtSignal() # void availabilityChanged(QMultimedia::AvailabilityStatus) - signal 0672 metaDataChanged = pyqtSignal() # void metaDataChanged(const QStringamp;,const QVariantamp;) - signal 0673 metaDataWritableChanged = pyqtSignal() # void metaDataWritableChanged(bool) - signal 0674 metaDataAvailableChanged = pyqtSignal() # void metaDataAvailableChanged(bool) - signal 0675 actualLocationChanged = pyqtSignal() # void actualLocationChanged(const QUrlamp;) - signal 0676 volumeChanged = pyqtSignal() # void volumeChanged(qreal) - signal 0677 mutedChanged = pyqtSignal() # void mutedChanged(bool) - signal 0678 durationChanged = pyqtSignal() # void durationChanged(qint64) - signal 0679 statusChanged = pyqtSignal() # void statusChanged(QMediaRecorder::Status) - signal 0680 stateChanged = pyqtSignal() # void stateChanged(QMediaRecorder::State) - signal 0681 def setVolume(self, volume): 0682 '''void QMediaRecorder.setVolume(float volume)''' 0683 def setMuted(self, muted): 0684 '''void QMediaRecorder.setMuted(bool muted)''' 0685 def stop(self): 0686 '''void QMediaRecorder.stop()''' 0687 def pause(self): 0688 '''void QMediaRecorder.pause()''' 0689 def record(self): 0690 '''void QMediaRecorder.record()''' 0691 def availableMetaData(self): 0692 '''list-of-str QMediaRecorder.availableMetaData()''' 0693 return [str()] 0694 def setMetaData(self, key, value): 0695 '''void QMediaRecorder.setMetaData(str key, QVariant value)''' 0696 def metaData(self, key): 0697 '''QVariant QMediaRecorder.metaData(str key)''' 0698 return QVariant() 0699 def isMetaDataWritable(self): 0700 '''bool QMediaRecorder.isMetaDataWritable()''' 0701 return bool() 0702 def isMetaDataAvailable(self): 0703 '''bool QMediaRecorder.isMetaDataAvailable()''' 0704 return bool() 0705 def setEncodingSettings(self, audio, video = QVideoEncoderSettings(), container = str()): 0706 '''void QMediaRecorder.setEncodingSettings(QAudioEncoderSettings audio, QVideoEncoderSettings video = QVideoEncoderSettings(), str container = str())''' 0707 def setContainerFormat(self, container): 0708 '''void QMediaRecorder.setContainerFormat(str container)''' 0709 def setVideoSettings(self, videoSettings): 0710 '''void QMediaRecorder.setVideoSettings(QVideoEncoderSettings videoSettings)''' 0711 def setAudioSettings(self, audioSettings): 0712 '''void QMediaRecorder.setAudioSettings(QAudioEncoderSettings audioSettings)''' 0713 def containerFormat(self): 0714 '''str QMediaRecorder.containerFormat()''' 0715 return str() 0716 def videoSettings(self): 0717 '''QVideoEncoderSettings QMediaRecorder.videoSettings()''' 0718 return QVideoEncoderSettings() 0719 def audioSettings(self): 0720 '''QAudioEncoderSettings QMediaRecorder.audioSettings()''' 0721 return QAudioEncoderSettings() 0722 def supportedFrameRates(self, settings = QVideoEncoderSettings(), continuous = None): 0723 '''list-of-float QMediaRecorder.supportedFrameRates(QVideoEncoderSettings settings = QVideoEncoderSettings(), bool continuous)''' 0724 return [float()] 0725 def supportedResolutions(self, settings = QVideoEncoderSettings(), continuous = None): 0726 '''list-of-QSize QMediaRecorder.supportedResolutions(QVideoEncoderSettings settings = QVideoEncoderSettings(), bool continuous)''' 0727 return [QSize()] 0728 def videoCodecDescription(self, codecName): 0729 '''str QMediaRecorder.videoCodecDescription(str codecName)''' 0730 return str() 0731 def supportedVideoCodecs(self): 0732 '''list-of-str QMediaRecorder.supportedVideoCodecs()''' 0733 return [str()] 0734 def supportedAudioSampleRates(self, settings = QAudioEncoderSettings(), continuous = None): 0735 '''list-of-int QMediaRecorder.supportedAudioSampleRates(QAudioEncoderSettings settings = QAudioEncoderSettings(), bool continuous)''' 0736 return [int()] 0737 def audioCodecDescription(self, codecName): 0738 '''str QMediaRecorder.audioCodecDescription(str codecName)''' 0739 return str() 0740 def supportedAudioCodecs(self): 0741 '''list-of-str QMediaRecorder.supportedAudioCodecs()''' 0742 return [str()] 0743 def containerDescription(self, format): 0744 '''str QMediaRecorder.containerDescription(str format)''' 0745 return str() 0746 def supportedContainers(self): 0747 '''list-of-str QMediaRecorder.supportedContainers()''' 0748 return [str()] 0749 def volume(self): 0750 '''float QMediaRecorder.volume()''' 0751 return float() 0752 def isMuted(self): 0753 '''bool QMediaRecorder.isMuted()''' 0754 return bool() 0755 def duration(self): 0756 '''int QMediaRecorder.duration()''' 0757 return int() 0758 def errorString(self): 0759 '''str QMediaRecorder.errorString()''' 0760 return str() 0761 def error(self): 0762 '''QMediaRecorder.Error QMediaRecorder.error()''' 0763 return QMediaRecorder.Error() 0764 error = pyqtSignal() # void error(QMediaRecorder::Error) - signal 0765 def status(self): 0766 '''QMediaRecorder.Status QMediaRecorder.status()''' 0767 return QMediaRecorder.Status() 0768 def state(self): 0769 '''QMediaRecorder.State QMediaRecorder.state()''' 0770 return QMediaRecorder.State() 0771 def actualLocation(self): 0772 '''QUrl QMediaRecorder.actualLocation()''' 0773 return QUrl() 0774 def setOutputLocation(self, location): 0775 '''bool QMediaRecorder.setOutputLocation(QUrl location)''' 0776 return bool() 0777 def outputLocation(self): 0778 '''QUrl QMediaRecorder.outputLocation()''' 0779 return QUrl() 0780 def availability(self): 0781 '''QMultimedia.AvailabilityStatus QMediaRecorder.availability()''' 0782 return QMultimedia.AvailabilityStatus() 0783 def isAvailable(self): 0784 '''bool QMediaRecorder.isAvailable()''' 0785 return bool() 0786 def mediaObject(self): 0787 '''QMediaObject QMediaRecorder.mediaObject()''' 0788 return QMediaObject() 0789 0790 0791 class QAudioRecorder(QMediaRecorder): 0792 """""" 0793 def __init__(self, parent = None): 0794 '''void QAudioRecorder.__init__(QObject parent = None)''' 0795 availableAudioInputsChanged = pyqtSignal() # void availableAudioInputsChanged() - signal 0796 audioInputChanged = pyqtSignal() # void audioInputChanged(const QStringamp;) - signal 0797 def setAudioInput(self, name): 0798 '''void QAudioRecorder.setAudioInput(str name)''' 0799 def audioInput(self): 0800 '''str QAudioRecorder.audioInput()''' 0801 return str() 0802 def audioInputDescription(self, name): 0803 '''str QAudioRecorder.audioInputDescription(str name)''' 0804 return str() 0805 def defaultAudioInput(self): 0806 '''str QAudioRecorder.defaultAudioInput()''' 0807 return str() 0808 def audioInputs(self): 0809 '''list-of-str QAudioRecorder.audioInputs()''' 0810 return [str()] 0811 0812 0813 class QCamera(QMediaObject): 0814 """""" 0815 # Enum QCamera.Position 0816 UnspecifiedPosition = 0 0817 BackFace = 0 0818 FrontFace = 0 0819 0820 # Enum QCamera.LockType 0821 NoLock = 0 0822 LockExposure = 0 0823 LockWhiteBalance = 0 0824 LockFocus = 0 0825 0826 # Enum QCamera.LockChangeReason 0827 UserRequest = 0 0828 LockAcquired = 0 0829 LockFailed = 0 0830 LockLost = 0 0831 LockTemporaryLost = 0 0832 0833 # Enum QCamera.LockStatus 0834 Unlocked = 0 0835 Searching = 0 0836 Locked = 0 0837 0838 # Enum QCamera.Error 0839 NoError = 0 0840 CameraError = 0 0841 InvalidRequestError = 0 0842 ServiceMissingError = 0 0843 NotSupportedFeatureError = 0 0844 0845 # Enum QCamera.CaptureMode 0846 CaptureViewfinder = 0 0847 CaptureStillImage = 0 0848 CaptureVideo = 0 0849 0850 # Enum QCamera.State 0851 UnloadedState = 0 0852 LoadedState = 0 0853 ActiveState = 0 0854 0855 # Enum QCamera.Status 0856 UnavailableStatus = 0 0857 UnloadedStatus = 0 0858 LoadingStatus = 0 0859 UnloadingStatus = 0 0860 LoadedStatus = 0 0861 StandbyStatus = 0 0862 StartingStatus = 0 0863 StoppingStatus = 0 0864 ActiveStatus = 0 0865 0866 def __init__(self, parent = None): 0867 '''void QCamera.__init__(QObject parent = None)''' 0868 def __init__(self, device, parent = None): 0869 '''void QCamera.__init__(QByteArray device, QObject parent = None)''' 0870 def __init__(self, cameraInfo, parent = None): 0871 '''void QCamera.__init__(QCameraInfo cameraInfo, QObject parent = None)''' 0872 def __init__(self, position, parent = None): 0873 '''void QCamera.__init__(QCamera.Position position, QObject parent = None)''' 0874 def supportedViewfinderPixelFormats(self, settings = QCameraViewfinderSettings()): 0875 '''list-of-QVideoFrame.PixelFormat QCamera.supportedViewfinderPixelFormats(QCameraViewfinderSettings settings = QCameraViewfinderSettings())''' 0876 return [QVideoFrame.PixelFormat()] 0877 def supportedViewfinderFrameRateRanges(self, settings = QCameraViewfinderSettings()): 0878 '''list-of-QCamera.FrameRateRange QCamera.supportedViewfinderFrameRateRanges(QCameraViewfinderSettings settings = QCameraViewfinderSettings())''' 0879 return [QCamera.FrameRateRange()] 0880 def supportedViewfinderResolutions(self, settings = QCameraViewfinderSettings()): 0881 '''list-of-QSize QCamera.supportedViewfinderResolutions(QCameraViewfinderSettings settings = QCameraViewfinderSettings())''' 0882 return [QSize()] 0883 def supportedViewfinderSettings(self, settings = QCameraViewfinderSettings()): 0884 '''list-of-QCameraViewfinderSettings QCamera.supportedViewfinderSettings(QCameraViewfinderSettings settings = QCameraViewfinderSettings())''' 0885 return [QCameraViewfinderSettings()] 0886 def setViewfinderSettings(self, settings): 0887 '''void QCamera.setViewfinderSettings(QCameraViewfinderSettings settings)''' 0888 def viewfinderSettings(self): 0889 '''QCameraViewfinderSettings QCamera.viewfinderSettings()''' 0890 return QCameraViewfinderSettings() 0891 lockStatusChanged = pyqtSignal() # void lockStatusChanged(QCamera::LockStatus,QCamera::LockChangeReason) - signal 0892 lockStatusChanged = pyqtSignal() # void lockStatusChanged(QCamera::LockType,QCamera::LockStatus,QCamera::LockChangeReason) - signal 0893 lockFailed = pyqtSignal() # void lockFailed() - signal 0894 locked = pyqtSignal() # void locked() - signal 0895 statusChanged = pyqtSignal() # void statusChanged(QCamera::Status) - signal 0896 captureModeChanged = pyqtSignal() # void captureModeChanged(QCamera::CaptureModes) - signal 0897 stateChanged = pyqtSignal() # void stateChanged(QCamera::State) - signal 0898 def unlock(self): 0899 '''void QCamera.unlock()''' 0900 def unlock(self, locks): 0901 '''void QCamera.unlock(QCamera.LockTypes locks)''' 0902 def searchAndLock(self): 0903 '''void QCamera.searchAndLock()''' 0904 def searchAndLock(self, locks): 0905 '''void QCamera.searchAndLock(QCamera.LockTypes locks)''' 0906 def stop(self): 0907 '''void QCamera.stop()''' 0908 def start(self): 0909 '''void QCamera.start()''' 0910 def unload(self): 0911 '''void QCamera.unload()''' 0912 def load(self): 0913 '''void QCamera.load()''' 0914 def setCaptureMode(self, mode): 0915 '''void QCamera.setCaptureMode(QCamera.CaptureModes mode)''' 0916 def lockStatus(self): 0917 '''QCamera.LockStatus QCamera.lockStatus()''' 0918 return QCamera.LockStatus() 0919 def lockStatus(self, lock): 0920 '''QCamera.LockStatus QCamera.lockStatus(QCamera.LockType lock)''' 0921 return QCamera.LockStatus() 0922 def requestedLocks(self): 0923 '''QCamera.LockTypes QCamera.requestedLocks()''' 0924 return QCamera.LockTypes() 0925 def supportedLocks(self): 0926 '''QCamera.LockTypes QCamera.supportedLocks()''' 0927 return QCamera.LockTypes() 0928 def errorString(self): 0929 '''str QCamera.errorString()''' 0930 return str() 0931 def error(self): 0932 '''QCamera.Error QCamera.error()''' 0933 return QCamera.Error() 0934 error = pyqtSignal() # void error(QCamera::Error) - signal 0935 def setViewfinder(self, viewfinder): 0936 '''void QCamera.setViewfinder(QVideoWidget viewfinder)''' 0937 def setViewfinder(self, viewfinder): 0938 '''void QCamera.setViewfinder(QGraphicsVideoItem viewfinder)''' 0939 def setViewfinder(self, surface): 0940 '''void QCamera.setViewfinder(QAbstractVideoSurface surface)''' 0941 def imageProcessing(self): 0942 '''QCameraImageProcessing QCamera.imageProcessing()''' 0943 return QCameraImageProcessing() 0944 def focus(self): 0945 '''QCameraFocus QCamera.focus()''' 0946 return QCameraFocus() 0947 def exposure(self): 0948 '''QCameraExposure QCamera.exposure()''' 0949 return QCameraExposure() 0950 def isCaptureModeSupported(self, mode): 0951 '''bool QCamera.isCaptureModeSupported(QCamera.CaptureModes mode)''' 0952 return bool() 0953 def captureMode(self): 0954 '''QCamera.CaptureModes QCamera.captureMode()''' 0955 return QCamera.CaptureModes() 0956 def status(self): 0957 '''QCamera.Status QCamera.status()''' 0958 return QCamera.Status() 0959 def state(self): 0960 '''QCamera.State QCamera.state()''' 0961 return QCamera.State() 0962 def availability(self): 0963 '''QMultimedia.AvailabilityStatus QCamera.availability()''' 0964 return QMultimedia.AvailabilityStatus() 0965 def deviceDescription(self, device): 0966 '''static str QCamera.deviceDescription(QByteArray device)''' 0967 return str() 0968 def availableDevices(self): 0969 '''static list-of-QByteArray QCamera.availableDevices()''' 0970 return [QByteArray()] 0971 class FrameRateRange(): 0972 """""" 0973 maximumFrameRate = None # float - member 0974 minimumFrameRate = None # float - member 0975 def __init__(self, minimum, maximum): 0976 '''void QCamera.FrameRateRange.__init__(float minimum, float maximum)''' 0977 def __init__(self): 0978 '''void QCamera.FrameRateRange.__init__()''' 0979 def __init__(self): 0980 '''QCamera.FrameRateRange QCamera.FrameRateRange.__init__()''' 0981 return QCamera.FrameRateRange() 0982 def __eq__(self, r2): 0983 '''bool QCamera.FrameRateRange.__eq__(QCamera.FrameRateRange r2)''' 0984 return bool() 0985 def __ne__(self, r2): 0986 '''bool QCamera.FrameRateRange.__ne__(QCamera.FrameRateRange r2)''' 0987 return bool() 0988 class CaptureModes(): 0989 """""" 0990 def __init__(self): 0991 '''QCamera.CaptureModes QCamera.CaptureModes.__init__()''' 0992 return QCamera.CaptureModes() 0993 def __init__(self): 0994 '''int QCamera.CaptureModes.__init__()''' 0995 return int() 0996 def __init__(self): 0997 '''void QCamera.CaptureModes.__init__()''' 0998 def __bool__(self): 0999 '''int QCamera.CaptureModes.__bool__()''' 1000 return int() 1001 def __ne__(self, f): 1002 '''bool QCamera.CaptureModes.__ne__(QCamera.CaptureModes f)''' 1003 return bool() 1004 def __eq__(self, f): 1005 '''bool QCamera.CaptureModes.__eq__(QCamera.CaptureModes f)''' 1006 return bool() 1007 def __invert__(self): 1008 '''QCamera.CaptureModes QCamera.CaptureModes.__invert__()''' 1009 return QCamera.CaptureModes() 1010 def __and__(self, mask): 1011 '''QCamera.CaptureModes QCamera.CaptureModes.__and__(int mask)''' 1012 return QCamera.CaptureModes() 1013 def __xor__(self, f): 1014 '''QCamera.CaptureModes QCamera.CaptureModes.__xor__(QCamera.CaptureModes f)''' 1015 return QCamera.CaptureModes() 1016 def __xor__(self, f): 1017 '''QCamera.CaptureModes QCamera.CaptureModes.__xor__(int f)''' 1018 return QCamera.CaptureModes() 1019 def __or__(self, f): 1020 '''QCamera.CaptureModes QCamera.CaptureModes.__or__(QCamera.CaptureModes f)''' 1021 return QCamera.CaptureModes() 1022 def __or__(self, f): 1023 '''QCamera.CaptureModes QCamera.CaptureModes.__or__(int f)''' 1024 return QCamera.CaptureModes() 1025 def __int__(self): 1026 '''int QCamera.CaptureModes.__int__()''' 1027 return int() 1028 def __ixor__(self, f): 1029 '''QCamera.CaptureModes QCamera.CaptureModes.__ixor__(QCamera.CaptureModes f)''' 1030 return QCamera.CaptureModes() 1031 def __ior__(self, f): 1032 '''QCamera.CaptureModes QCamera.CaptureModes.__ior__(QCamera.CaptureModes f)''' 1033 return QCamera.CaptureModes() 1034 def __iand__(self, mask): 1035 '''QCamera.CaptureModes QCamera.CaptureModes.__iand__(int mask)''' 1036 return QCamera.CaptureModes() 1037 class LockTypes(): 1038 """""" 1039 def __init__(self): 1040 '''QCamera.LockTypes QCamera.LockTypes.__init__()''' 1041 return QCamera.LockTypes() 1042 def __init__(self): 1043 '''int QCamera.LockTypes.__init__()''' 1044 return int() 1045 def __init__(self): 1046 '''void QCamera.LockTypes.__init__()''' 1047 def __bool__(self): 1048 '''int QCamera.LockTypes.__bool__()''' 1049 return int() 1050 def __ne__(self, f): 1051 '''bool QCamera.LockTypes.__ne__(QCamera.LockTypes f)''' 1052 return bool() 1053 def __eq__(self, f): 1054 '''bool QCamera.LockTypes.__eq__(QCamera.LockTypes f)''' 1055 return bool() 1056 def __invert__(self): 1057 '''QCamera.LockTypes QCamera.LockTypes.__invert__()''' 1058 return QCamera.LockTypes() 1059 def __and__(self, mask): 1060 '''QCamera.LockTypes QCamera.LockTypes.__and__(int mask)''' 1061 return QCamera.LockTypes() 1062 def __xor__(self, f): 1063 '''QCamera.LockTypes QCamera.LockTypes.__xor__(QCamera.LockTypes f)''' 1064 return QCamera.LockTypes() 1065 def __xor__(self, f): 1066 '''QCamera.LockTypes QCamera.LockTypes.__xor__(int f)''' 1067 return QCamera.LockTypes() 1068 def __or__(self, f): 1069 '''QCamera.LockTypes QCamera.LockTypes.__or__(QCamera.LockTypes f)''' 1070 return QCamera.LockTypes() 1071 def __or__(self, f): 1072 '''QCamera.LockTypes QCamera.LockTypes.__or__(int f)''' 1073 return QCamera.LockTypes() 1074 def __int__(self): 1075 '''int QCamera.LockTypes.__int__()''' 1076 return int() 1077 def __ixor__(self, f): 1078 '''QCamera.LockTypes QCamera.LockTypes.__ixor__(QCamera.LockTypes f)''' 1079 return QCamera.LockTypes() 1080 def __ior__(self, f): 1081 '''QCamera.LockTypes QCamera.LockTypes.__ior__(QCamera.LockTypes f)''' 1082 return QCamera.LockTypes() 1083 def __iand__(self, mask): 1084 '''QCamera.LockTypes QCamera.LockTypes.__iand__(int mask)''' 1085 return QCamera.LockTypes() 1086 1087 1088 class QCameraExposure(QObject): 1089 """""" 1090 # Enum QCameraExposure.MeteringMode 1091 MeteringMatrix = 0 1092 MeteringAverage = 0 1093 MeteringSpot = 0 1094 1095 # Enum QCameraExposure.ExposureMode 1096 ExposureAuto = 0 1097 ExposureManual = 0 1098 ExposurePortrait = 0 1099 ExposureNight = 0 1100 ExposureBacklight = 0 1101 ExposureSpotlight = 0 1102 ExposureSports = 0 1103 ExposureSnow = 0 1104 ExposureBeach = 0 1105 ExposureLargeAperture = 0 1106 ExposureSmallAperture = 0 1107 ExposureAction = 0 1108 ExposureLandscape = 0 1109 ExposureNightPortrait = 0 1110 ExposureTheatre = 0 1111 ExposureSunset = 0 1112 ExposureSteadyPhoto = 0 1113 ExposureFireworks = 0 1114 ExposureParty = 0 1115 ExposureCandlelight = 0 1116 ExposureBarcode = 0 1117 ExposureModeVendor = 0 1118 1119 # Enum QCameraExposure.FlashMode 1120 FlashAuto = 0 1121 FlashOff = 0 1122 FlashOn = 0 1123 FlashRedEyeReduction = 0 1124 FlashFill = 0 1125 FlashTorch = 0 1126 FlashVideoLight = 0 1127 FlashSlowSyncFrontCurtain = 0 1128 FlashSlowSyncRearCurtain = 0 1129 FlashManual = 0 1130 1131 exposureCompensationChanged = pyqtSignal() # void exposureCompensationChanged(qreal) - signal 1132 isoSensitivityChanged = pyqtSignal() # void isoSensitivityChanged(int) - signal 1133 shutterSpeedRangeChanged = pyqtSignal() # void shutterSpeedRangeChanged() - signal 1134 shutterSpeedChanged = pyqtSignal() # void shutterSpeedChanged(qreal) - signal 1135 apertureRangeChanged = pyqtSignal() # void apertureRangeChanged() - signal 1136 apertureChanged = pyqtSignal() # void apertureChanged(qreal) - signal 1137 flashReady = pyqtSignal() # void flashReady(bool) - signal 1138 def setAutoShutterSpeed(self): 1139 '''void QCameraExposure.setAutoShutterSpeed()''' 1140 def setManualShutterSpeed(self, seconds): 1141 '''void QCameraExposure.setManualShutterSpeed(float seconds)''' 1142 def setAutoAperture(self): 1143 '''void QCameraExposure.setAutoAperture()''' 1144 def setManualAperture(self, aperture): 1145 '''void QCameraExposure.setManualAperture(float aperture)''' 1146 def setAutoIsoSensitivity(self): 1147 '''void QCameraExposure.setAutoIsoSensitivity()''' 1148 def setManualIsoSensitivity(self, iso): 1149 '''void QCameraExposure.setManualIsoSensitivity(int iso)''' 1150 def setExposureCompensation(self, ev): 1151 '''void QCameraExposure.setExposureCompensation(float ev)''' 1152 def setMeteringMode(self, mode): 1153 '''void QCameraExposure.setMeteringMode(QCameraExposure.MeteringMode mode)''' 1154 def setExposureMode(self, mode): 1155 '''void QCameraExposure.setExposureMode(QCameraExposure.ExposureMode mode)''' 1156 def setFlashMode(self, mode): 1157 '''void QCameraExposure.setFlashMode(QCameraExposure.FlashModes mode)''' 1158 def supportedShutterSpeeds(self, continuous): 1159 '''list-of-float QCameraExposure.supportedShutterSpeeds(bool continuous)''' 1160 return [float()] 1161 def supportedApertures(self, continuous): 1162 '''list-of-float QCameraExposure.supportedApertures(bool continuous)''' 1163 return [float()] 1164 def supportedIsoSensitivities(self, continuous): 1165 '''list-of-int QCameraExposure.supportedIsoSensitivities(bool continuous)''' 1166 return [int()] 1167 def requestedShutterSpeed(self): 1168 '''float QCameraExposure.requestedShutterSpeed()''' 1169 return float() 1170 def requestedAperture(self): 1171 '''float QCameraExposure.requestedAperture()''' 1172 return float() 1173 def requestedIsoSensitivity(self): 1174 '''int QCameraExposure.requestedIsoSensitivity()''' 1175 return int() 1176 def shutterSpeed(self): 1177 '''float QCameraExposure.shutterSpeed()''' 1178 return float() 1179 def aperture(self): 1180 '''float QCameraExposure.aperture()''' 1181 return float() 1182 def isoSensitivity(self): 1183 '''int QCameraExposure.isoSensitivity()''' 1184 return int() 1185 def setSpotMeteringPoint(self, point): 1186 '''void QCameraExposure.setSpotMeteringPoint(QPointF point)''' 1187 def spotMeteringPoint(self): 1188 '''QPointF QCameraExposure.spotMeteringPoint()''' 1189 return QPointF() 1190 def isMeteringModeSupported(self, mode): 1191 '''bool QCameraExposure.isMeteringModeSupported(QCameraExposure.MeteringMode mode)''' 1192 return bool() 1193 def meteringMode(self): 1194 '''QCameraExposure.MeteringMode QCameraExposure.meteringMode()''' 1195 return QCameraExposure.MeteringMode() 1196 def exposureCompensation(self): 1197 '''float QCameraExposure.exposureCompensation()''' 1198 return float() 1199 def isExposureModeSupported(self, mode): 1200 '''bool QCameraExposure.isExposureModeSupported(QCameraExposure.ExposureMode mode)''' 1201 return bool() 1202 def exposureMode(self): 1203 '''QCameraExposure.ExposureMode QCameraExposure.exposureMode()''' 1204 return QCameraExposure.ExposureMode() 1205 def isFlashReady(self): 1206 '''bool QCameraExposure.isFlashReady()''' 1207 return bool() 1208 def isFlashModeSupported(self, mode): 1209 '''bool QCameraExposure.isFlashModeSupported(QCameraExposure.FlashModes mode)''' 1210 return bool() 1211 def flashMode(self): 1212 '''QCameraExposure.FlashModes QCameraExposure.flashMode()''' 1213 return QCameraExposure.FlashModes() 1214 def isAvailable(self): 1215 '''bool QCameraExposure.isAvailable()''' 1216 return bool() 1217 class FlashModes(): 1218 """""" 1219 def __init__(self): 1220 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__init__()''' 1221 return QCameraExposure.FlashModes() 1222 def __init__(self): 1223 '''int QCameraExposure.FlashModes.__init__()''' 1224 return int() 1225 def __init__(self): 1226 '''void QCameraExposure.FlashModes.__init__()''' 1227 def __bool__(self): 1228 '''int QCameraExposure.FlashModes.__bool__()''' 1229 return int() 1230 def __ne__(self, f): 1231 '''bool QCameraExposure.FlashModes.__ne__(QCameraExposure.FlashModes f)''' 1232 return bool() 1233 def __eq__(self, f): 1234 '''bool QCameraExposure.FlashModes.__eq__(QCameraExposure.FlashModes f)''' 1235 return bool() 1236 def __invert__(self): 1237 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__invert__()''' 1238 return QCameraExposure.FlashModes() 1239 def __and__(self, mask): 1240 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__and__(int mask)''' 1241 return QCameraExposure.FlashModes() 1242 def __xor__(self, f): 1243 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__xor__(QCameraExposure.FlashModes f)''' 1244 return QCameraExposure.FlashModes() 1245 def __xor__(self, f): 1246 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__xor__(int f)''' 1247 return QCameraExposure.FlashModes() 1248 def __or__(self, f): 1249 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__or__(QCameraExposure.FlashModes f)''' 1250 return QCameraExposure.FlashModes() 1251 def __or__(self, f): 1252 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__or__(int f)''' 1253 return QCameraExposure.FlashModes() 1254 def __int__(self): 1255 '''int QCameraExposure.FlashModes.__int__()''' 1256 return int() 1257 def __ixor__(self, f): 1258 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__ixor__(QCameraExposure.FlashModes f)''' 1259 return QCameraExposure.FlashModes() 1260 def __ior__(self, f): 1261 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__ior__(QCameraExposure.FlashModes f)''' 1262 return QCameraExposure.FlashModes() 1263 def __iand__(self, mask): 1264 '''QCameraExposure.FlashModes QCameraExposure.FlashModes.__iand__(int mask)''' 1265 return QCameraExposure.FlashModes() 1266 1267 1268 class QCameraFocusZone(): 1269 """""" 1270 # Enum QCameraFocusZone.FocusZoneStatus 1271 Invalid = 0 1272 Unused = 0 1273 Selected = 0 1274 Focused = 0 1275 1276 def __init__(self, other): 1277 '''void QCameraFocusZone.__init__(QCameraFocusZone other)''' 1278 def status(self): 1279 '''QCameraFocusZone.FocusZoneStatus QCameraFocusZone.status()''' 1280 return QCameraFocusZone.FocusZoneStatus() 1281 def area(self): 1282 '''QRectF QCameraFocusZone.area()''' 1283 return QRectF() 1284 def isValid(self): 1285 '''bool QCameraFocusZone.isValid()''' 1286 return bool() 1287 def __ne__(self, other): 1288 '''bool QCameraFocusZone.__ne__(QCameraFocusZone other)''' 1289 return bool() 1290 def __eq__(self, other): 1291 '''bool QCameraFocusZone.__eq__(QCameraFocusZone other)''' 1292 return bool() 1293 1294 1295 class QCameraFocus(QObject): 1296 """""" 1297 # Enum QCameraFocus.FocusPointMode 1298 FocusPointAuto = 0 1299 FocusPointCenter = 0 1300 FocusPointFaceDetection = 0 1301 FocusPointCustom = 0 1302 1303 # Enum QCameraFocus.FocusMode 1304 ManualFocus = 0 1305 HyperfocalFocus = 0 1306 InfinityFocus = 0 1307 AutoFocus = 0 1308 ContinuousFocus = 0 1309 MacroFocus = 0 1310 1311 maximumDigitalZoomChanged = pyqtSignal() # void maximumDigitalZoomChanged(qreal) - signal 1312 maximumOpticalZoomChanged = pyqtSignal() # void maximumOpticalZoomChanged(qreal) - signal 1313 focusZonesChanged = pyqtSignal() # void focusZonesChanged() - signal 1314 digitalZoomChanged = pyqtSignal() # void digitalZoomChanged(qreal) - signal 1315 opticalZoomChanged = pyqtSignal() # void opticalZoomChanged(qreal) - signal 1316 def zoomTo(self, opticalZoom, digitalZoom): 1317 '''void QCameraFocus.zoomTo(float opticalZoom, float digitalZoom)''' 1318 def digitalZoom(self): 1319 '''float QCameraFocus.digitalZoom()''' 1320 return float() 1321 def opticalZoom(self): 1322 '''float QCameraFocus.opticalZoom()''' 1323 return float() 1324 def maximumDigitalZoom(self): 1325 '''float QCameraFocus.maximumDigitalZoom()''' 1326 return float() 1327 def maximumOpticalZoom(self): 1328 '''float QCameraFocus.maximumOpticalZoom()''' 1329 return float() 1330 def focusZones(self): 1331 '''list-of-QCameraFocusZone QCameraFocus.focusZones()''' 1332 return [QCameraFocusZone()] 1333 def setCustomFocusPoint(self, point): 1334 '''void QCameraFocus.setCustomFocusPoint(QPointF point)''' 1335 def customFocusPoint(self): 1336 '''QPointF QCameraFocus.customFocusPoint()''' 1337 return QPointF() 1338 def isFocusPointModeSupported(self): 1339 '''QCameraFocus.FocusPointMode QCameraFocus.isFocusPointModeSupported()''' 1340 return QCameraFocus.FocusPointMode() 1341 def setFocusPointMode(self, mode): 1342 '''void QCameraFocus.setFocusPointMode(QCameraFocus.FocusPointMode mode)''' 1343 def focusPointMode(self): 1344 '''QCameraFocus.FocusPointMode QCameraFocus.focusPointMode()''' 1345 return QCameraFocus.FocusPointMode() 1346 def isFocusModeSupported(self, mode): 1347 '''bool QCameraFocus.isFocusModeSupported(QCameraFocus.FocusModes mode)''' 1348 return bool() 1349 def setFocusMode(self, mode): 1350 '''void QCameraFocus.setFocusMode(QCameraFocus.FocusModes mode)''' 1351 def focusMode(self): 1352 '''QCameraFocus.FocusModes QCameraFocus.focusMode()''' 1353 return QCameraFocus.FocusModes() 1354 def isAvailable(self): 1355 '''bool QCameraFocus.isAvailable()''' 1356 return bool() 1357 class FocusModes(): 1358 """""" 1359 def __init__(self): 1360 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__init__()''' 1361 return QCameraFocus.FocusModes() 1362 def __init__(self): 1363 '''int QCameraFocus.FocusModes.__init__()''' 1364 return int() 1365 def __init__(self): 1366 '''void QCameraFocus.FocusModes.__init__()''' 1367 def __bool__(self): 1368 '''int QCameraFocus.FocusModes.__bool__()''' 1369 return int() 1370 def __ne__(self, f): 1371 '''bool QCameraFocus.FocusModes.__ne__(QCameraFocus.FocusModes f)''' 1372 return bool() 1373 def __eq__(self, f): 1374 '''bool QCameraFocus.FocusModes.__eq__(QCameraFocus.FocusModes f)''' 1375 return bool() 1376 def __invert__(self): 1377 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__invert__()''' 1378 return QCameraFocus.FocusModes() 1379 def __and__(self, mask): 1380 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__and__(int mask)''' 1381 return QCameraFocus.FocusModes() 1382 def __xor__(self, f): 1383 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__xor__(QCameraFocus.FocusModes f)''' 1384 return QCameraFocus.FocusModes() 1385 def __xor__(self, f): 1386 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__xor__(int f)''' 1387 return QCameraFocus.FocusModes() 1388 def __or__(self, f): 1389 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__or__(QCameraFocus.FocusModes f)''' 1390 return QCameraFocus.FocusModes() 1391 def __or__(self, f): 1392 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__or__(int f)''' 1393 return QCameraFocus.FocusModes() 1394 def __int__(self): 1395 '''int QCameraFocus.FocusModes.__int__()''' 1396 return int() 1397 def __ixor__(self, f): 1398 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__ixor__(QCameraFocus.FocusModes f)''' 1399 return QCameraFocus.FocusModes() 1400 def __ior__(self, f): 1401 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__ior__(QCameraFocus.FocusModes f)''' 1402 return QCameraFocus.FocusModes() 1403 def __iand__(self, mask): 1404 '''QCameraFocus.FocusModes QCameraFocus.FocusModes.__iand__(int mask)''' 1405 return QCameraFocus.FocusModes() 1406 1407 1408 class QCameraImageCapture(QObject, QMediaBindableInterface): 1409 """""" 1410 # Enum QCameraImageCapture.CaptureDestination 1411 CaptureToFile = 0 1412 CaptureToBuffer = 0 1413 1414 # Enum QCameraImageCapture.DriveMode 1415 SingleImageCapture = 0 1416 1417 # Enum QCameraImageCapture.Error 1418 NoError = 0 1419 NotReadyError = 0 1420 ResourceError = 0 1421 OutOfSpaceError = 0 1422 NotSupportedFeatureError = 0 1423 FormatError = 0 1424 1425 def __init__(self, mediaObject, parent = None): 1426 '''void QCameraImageCapture.__init__(QMediaObject mediaObject, QObject parent = None)''' 1427 def setMediaObject(self): 1428 '''QMediaObject QCameraImageCapture.setMediaObject()''' 1429 return QMediaObject() 1430 imageSaved = pyqtSignal() # void imageSaved(int,const QStringamp;) - signal 1431 imageAvailable = pyqtSignal() # void imageAvailable(int,const QVideoFrameamp;) - signal 1432 imageMetadataAvailable = pyqtSignal() # void imageMetadataAvailable(int,const QStringamp;,const QVariantamp;) - signal 1433 imageCaptured = pyqtSignal() # void imageCaptured(int,const QImageamp;) - signal 1434 imageExposed = pyqtSignal() # void imageExposed(int) - signal 1435 captureDestinationChanged = pyqtSignal() # void captureDestinationChanged(QCameraImageCapture::CaptureDestinations) - signal 1436 bufferFormatChanged = pyqtSignal() # void bufferFormatChanged(QVideoFrame::PixelFormat) - signal 1437 readyForCaptureChanged = pyqtSignal() # void readyForCaptureChanged(bool) - signal 1438 def cancelCapture(self): 1439 '''void QCameraImageCapture.cancelCapture()''' 1440 def capture(self, file = str()): 1441 '''int QCameraImageCapture.capture(str file = str())''' 1442 return int() 1443 def setCaptureDestination(self, destination): 1444 '''void QCameraImageCapture.setCaptureDestination(QCameraImageCapture.CaptureDestinations destination)''' 1445 def captureDestination(self): 1446 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.captureDestination()''' 1447 return QCameraImageCapture.CaptureDestinations() 1448 def isCaptureDestinationSupported(self, destination): 1449 '''bool QCameraImageCapture.isCaptureDestinationSupported(QCameraImageCapture.CaptureDestinations destination)''' 1450 return bool() 1451 def setBufferFormat(self, format): 1452 '''void QCameraImageCapture.setBufferFormat(QVideoFrame.PixelFormat format)''' 1453 def bufferFormat(self): 1454 '''QVideoFrame.PixelFormat QCameraImageCapture.bufferFormat()''' 1455 return QVideoFrame.PixelFormat() 1456 def supportedBufferFormats(self): 1457 '''list-of-QVideoFrame.PixelFormat QCameraImageCapture.supportedBufferFormats()''' 1458 return [QVideoFrame.PixelFormat()] 1459 def setEncodingSettings(self, settings): 1460 '''void QCameraImageCapture.setEncodingSettings(QImageEncoderSettings settings)''' 1461 def encodingSettings(self): 1462 '''QImageEncoderSettings QCameraImageCapture.encodingSettings()''' 1463 return QImageEncoderSettings() 1464 def supportedResolutions(self, settings = QImageEncoderSettings(), continuous = None): 1465 '''list-of-QSize QCameraImageCapture.supportedResolutions(QImageEncoderSettings settings = QImageEncoderSettings(), bool continuous)''' 1466 return [QSize()] 1467 def imageCodecDescription(self, codecName): 1468 '''str QCameraImageCapture.imageCodecDescription(str codecName)''' 1469 return str() 1470 def supportedImageCodecs(self): 1471 '''list-of-str QCameraImageCapture.supportedImageCodecs()''' 1472 return [str()] 1473 def isReadyForCapture(self): 1474 '''bool QCameraImageCapture.isReadyForCapture()''' 1475 return bool() 1476 def errorString(self): 1477 '''str QCameraImageCapture.errorString()''' 1478 return str() 1479 def error(self): 1480 '''QCameraImageCapture.Error QCameraImageCapture.error()''' 1481 return QCameraImageCapture.Error() 1482 error = pyqtSignal() # void error(int,QCameraImageCapture::Error,const QStringamp;) - signal 1483 def mediaObject(self): 1484 '''QMediaObject QCameraImageCapture.mediaObject()''' 1485 return QMediaObject() 1486 def availability(self): 1487 '''QMultimedia.AvailabilityStatus QCameraImageCapture.availability()''' 1488 return QMultimedia.AvailabilityStatus() 1489 def isAvailable(self): 1490 '''bool QCameraImageCapture.isAvailable()''' 1491 return bool() 1492 class CaptureDestinations(): 1493 """""" 1494 def __init__(self): 1495 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__init__()''' 1496 return QCameraImageCapture.CaptureDestinations() 1497 def __init__(self): 1498 '''int QCameraImageCapture.CaptureDestinations.__init__()''' 1499 return int() 1500 def __init__(self): 1501 '''void QCameraImageCapture.CaptureDestinations.__init__()''' 1502 def __bool__(self): 1503 '''int QCameraImageCapture.CaptureDestinations.__bool__()''' 1504 return int() 1505 def __ne__(self, f): 1506 '''bool QCameraImageCapture.CaptureDestinations.__ne__(QCameraImageCapture.CaptureDestinations f)''' 1507 return bool() 1508 def __eq__(self, f): 1509 '''bool QCameraImageCapture.CaptureDestinations.__eq__(QCameraImageCapture.CaptureDestinations f)''' 1510 return bool() 1511 def __invert__(self): 1512 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__invert__()''' 1513 return QCameraImageCapture.CaptureDestinations() 1514 def __and__(self, mask): 1515 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__and__(int mask)''' 1516 return QCameraImageCapture.CaptureDestinations() 1517 def __xor__(self, f): 1518 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__xor__(QCameraImageCapture.CaptureDestinations f)''' 1519 return QCameraImageCapture.CaptureDestinations() 1520 def __xor__(self, f): 1521 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__xor__(int f)''' 1522 return QCameraImageCapture.CaptureDestinations() 1523 def __or__(self, f): 1524 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__or__(QCameraImageCapture.CaptureDestinations f)''' 1525 return QCameraImageCapture.CaptureDestinations() 1526 def __or__(self, f): 1527 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__or__(int f)''' 1528 return QCameraImageCapture.CaptureDestinations() 1529 def __int__(self): 1530 '''int QCameraImageCapture.CaptureDestinations.__int__()''' 1531 return int() 1532 def __ixor__(self, f): 1533 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__ixor__(QCameraImageCapture.CaptureDestinations f)''' 1534 return QCameraImageCapture.CaptureDestinations() 1535 def __ior__(self, f): 1536 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__ior__(QCameraImageCapture.CaptureDestinations f)''' 1537 return QCameraImageCapture.CaptureDestinations() 1538 def __iand__(self, mask): 1539 '''QCameraImageCapture.CaptureDestinations QCameraImageCapture.CaptureDestinations.__iand__(int mask)''' 1540 return QCameraImageCapture.CaptureDestinations() 1541 1542 1543 class QCameraImageProcessing(QObject): 1544 """""" 1545 # Enum QCameraImageProcessing.ColorFilter 1546 ColorFilterNone = 0 1547 ColorFilterGrayscale = 0 1548 ColorFilterNegative = 0 1549 ColorFilterSolarize = 0 1550 ColorFilterSepia = 0 1551 ColorFilterPosterize = 0 1552 ColorFilterWhiteboard = 0 1553 ColorFilterBlackboard = 0 1554 ColorFilterAqua = 0 1555 ColorFilterVendor = 0 1556 1557 # Enum QCameraImageProcessing.WhiteBalanceMode 1558 WhiteBalanceAuto = 0 1559 WhiteBalanceManual = 0 1560 WhiteBalanceSunlight = 0 1561 WhiteBalanceCloudy = 0 1562 WhiteBalanceShade = 0 1563 WhiteBalanceTungsten = 0 1564 WhiteBalanceFluorescent = 0 1565 WhiteBalanceFlash = 0 1566 WhiteBalanceSunset = 0 1567 WhiteBalanceVendor = 0 1568 1569 def isColorFilterSupported(self, filter): 1570 '''bool QCameraImageProcessing.isColorFilterSupported(QCameraImageProcessing.ColorFilter filter)''' 1571 return bool() 1572 def setColorFilter(self, filter): 1573 '''void QCameraImageProcessing.setColorFilter(QCameraImageProcessing.ColorFilter filter)''' 1574 def colorFilter(self): 1575 '''QCameraImageProcessing.ColorFilter QCameraImageProcessing.colorFilter()''' 1576 return QCameraImageProcessing.ColorFilter() 1577 def setDenoisingLevel(self, value): 1578 '''void QCameraImageProcessing.setDenoisingLevel(float value)''' 1579 def denoisingLevel(self): 1580 '''float QCameraImageProcessing.denoisingLevel()''' 1581 return float() 1582 def setSharpeningLevel(self, value): 1583 '''void QCameraImageProcessing.setSharpeningLevel(float value)''' 1584 def sharpeningLevel(self): 1585 '''float QCameraImageProcessing.sharpeningLevel()''' 1586 return float() 1587 def setSaturation(self, value): 1588 '''void QCameraImageProcessing.setSaturation(float value)''' 1589 def saturation(self): 1590 '''float QCameraImageProcessing.saturation()''' 1591 return float() 1592 def setContrast(self, value): 1593 '''void QCameraImageProcessing.setContrast(float value)''' 1594 def contrast(self): 1595 '''float QCameraImageProcessing.contrast()''' 1596 return float() 1597 def setManualWhiteBalance(self, colorTemperature): 1598 '''void QCameraImageProcessing.setManualWhiteBalance(float colorTemperature)''' 1599 def manualWhiteBalance(self): 1600 '''float QCameraImageProcessing.manualWhiteBalance()''' 1601 return float() 1602 def isWhiteBalanceModeSupported(self, mode): 1603 '''bool QCameraImageProcessing.isWhiteBalanceModeSupported(QCameraImageProcessing.WhiteBalanceMode mode)''' 1604 return bool() 1605 def setWhiteBalanceMode(self, mode): 1606 '''void QCameraImageProcessing.setWhiteBalanceMode(QCameraImageProcessing.WhiteBalanceMode mode)''' 1607 def whiteBalanceMode(self): 1608 '''QCameraImageProcessing.WhiteBalanceMode QCameraImageProcessing.whiteBalanceMode()''' 1609 return QCameraImageProcessing.WhiteBalanceMode() 1610 def isAvailable(self): 1611 '''bool QCameraImageProcessing.isAvailable()''' 1612 return bool() 1613 1614 1615 class QCameraInfo(): 1616 """""" 1617 def __init__(self, name = QByteArray()): 1618 '''void QCameraInfo.__init__(QByteArray name = QByteArray())''' 1619 def __init__(self, camera): 1620 '''void QCameraInfo.__init__(QCamera camera)''' 1621 def __init__(self, other): 1622 '''void QCameraInfo.__init__(QCameraInfo other)''' 1623 def __ne__(self, other): 1624 '''bool QCameraInfo.__ne__(QCameraInfo other)''' 1625 return bool() 1626 def __eq__(self, other): 1627 '''bool QCameraInfo.__eq__(QCameraInfo other)''' 1628 return bool() 1629 def availableCameras(self, position = None): 1630 '''static list-of-QCameraInfo QCameraInfo.availableCameras(QCamera.Position position = QCamera.UnspecifiedPosition)''' 1631 return [QCameraInfo()] 1632 def defaultCamera(self): 1633 '''static QCameraInfo QCameraInfo.defaultCamera()''' 1634 return QCameraInfo() 1635 def orientation(self): 1636 '''int QCameraInfo.orientation()''' 1637 return int() 1638 def position(self): 1639 '''QCamera.Position QCameraInfo.position()''' 1640 return QCamera.Position() 1641 def description(self): 1642 '''str QCameraInfo.description()''' 1643 return str() 1644 def deviceName(self): 1645 '''str QCameraInfo.deviceName()''' 1646 return str() 1647 def isNull(self): 1648 '''bool QCameraInfo.isNull()''' 1649 return bool() 1650 1651 1652 class QCameraViewfinderSettings(): 1653 """""" 1654 def __init__(self): 1655 '''void QCameraViewfinderSettings.__init__()''' 1656 def __init__(self, other): 1657 '''void QCameraViewfinderSettings.__init__(QCameraViewfinderSettings other)''' 1658 def __eq__(self, rhs): 1659 '''bool QCameraViewfinderSettings.__eq__(QCameraViewfinderSettings rhs)''' 1660 return bool() 1661 def __ne__(self, rhs): 1662 '''bool QCameraViewfinderSettings.__ne__(QCameraViewfinderSettings rhs)''' 1663 return bool() 1664 def setPixelAspectRatio(self, ratio): 1665 '''void QCameraViewfinderSettings.setPixelAspectRatio(QSize ratio)''' 1666 def setPixelAspectRatio(self, horizontal, vertical): 1667 '''void QCameraViewfinderSettings.setPixelAspectRatio(int horizontal, int vertical)''' 1668 def pixelAspectRatio(self): 1669 '''QSize QCameraViewfinderSettings.pixelAspectRatio()''' 1670 return QSize() 1671 def setPixelFormat(self, format): 1672 '''void QCameraViewfinderSettings.setPixelFormat(QVideoFrame.PixelFormat format)''' 1673 def pixelFormat(self): 1674 '''QVideoFrame.PixelFormat QCameraViewfinderSettings.pixelFormat()''' 1675 return QVideoFrame.PixelFormat() 1676 def setMaximumFrameRate(self, rate): 1677 '''void QCameraViewfinderSettings.setMaximumFrameRate(float rate)''' 1678 def maximumFrameRate(self): 1679 '''float QCameraViewfinderSettings.maximumFrameRate()''' 1680 return float() 1681 def setMinimumFrameRate(self, rate): 1682 '''void QCameraViewfinderSettings.setMinimumFrameRate(float rate)''' 1683 def minimumFrameRate(self): 1684 '''float QCameraViewfinderSettings.minimumFrameRate()''' 1685 return float() 1686 def setResolution(self): 1687 '''QSize QCameraViewfinderSettings.setResolution()''' 1688 return QSize() 1689 def setResolution(self, width, height): 1690 '''void QCameraViewfinderSettings.setResolution(int width, int height)''' 1691 def resolution(self): 1692 '''QSize QCameraViewfinderSettings.resolution()''' 1693 return QSize() 1694 def isNull(self): 1695 '''bool QCameraViewfinderSettings.isNull()''' 1696 return bool() 1697 def swap(self, other): 1698 '''void QCameraViewfinderSettings.swap(QCameraViewfinderSettings other)''' 1699 1700 1701 class QMediaContent(): 1702 """""" 1703 def __init__(self): 1704 '''void QMediaContent.__init__()''' 1705 def __init__(self, contentUrl): 1706 '''void QMediaContent.__init__(QUrl contentUrl)''' 1707 def __init__(self, contentRequest): 1708 '''void QMediaContent.__init__(QNetworkRequest contentRequest)''' 1709 def __init__(self, contentResource): 1710 '''void QMediaContent.__init__(QMediaResource contentResource)''' 1711 def __init__(self, resources): 1712 '''void QMediaContent.__init__(list-of-QMediaResource resources)''' 1713 def __init__(self, other): 1714 '''void QMediaContent.__init__(QMediaContent other)''' 1715 def __init__(self, playlist, contentUrl = QUrl()): 1716 '''void QMediaContent.__init__(QMediaPlaylist playlist, QUrl contentUrl = QUrl())''' 1717 def playlist(self): 1718 '''QMediaPlaylist QMediaContent.playlist()''' 1719 return QMediaPlaylist() 1720 def resources(self): 1721 '''list-of-QMediaResource QMediaContent.resources()''' 1722 return [QMediaResource()] 1723 def canonicalResource(self): 1724 '''QMediaResource QMediaContent.canonicalResource()''' 1725 return QMediaResource() 1726 def canonicalRequest(self): 1727 '''QNetworkRequest QMediaContent.canonicalRequest()''' 1728 return QNetworkRequest() 1729 def canonicalUrl(self): 1730 '''QUrl QMediaContent.canonicalUrl()''' 1731 return QUrl() 1732 def isNull(self): 1733 '''bool QMediaContent.isNull()''' 1734 return bool() 1735 def __ne__(self, other): 1736 '''bool QMediaContent.__ne__(QMediaContent other)''' 1737 return bool() 1738 def __eq__(self, other): 1739 '''bool QMediaContent.__eq__(QMediaContent other)''' 1740 return bool() 1741 1742 1743 class QMediaControl(QObject): 1744 """""" 1745 def __init__(self, parent = None): 1746 '''void QMediaControl.__init__(QObject parent = None)''' 1747 1748 1749 class QAudioEncoderSettings(): 1750 """""" 1751 def __init__(self): 1752 '''void QAudioEncoderSettings.__init__()''' 1753 def __init__(self, other): 1754 '''void QAudioEncoderSettings.__init__(QAudioEncoderSettings other)''' 1755 def setEncodingOptions(self, options): 1756 '''void QAudioEncoderSettings.setEncodingOptions(dict-of-str-object options)''' 1757 def setEncodingOption(self, option, value): 1758 '''void QAudioEncoderSettings.setEncodingOption(str option, QVariant value)''' 1759 def encodingOptions(self): 1760 '''dict-of-str-object QAudioEncoderSettings.encodingOptions()''' 1761 return {str():object()} 1762 def encodingOption(self, option): 1763 '''QVariant QAudioEncoderSettings.encodingOption(str option)''' 1764 return QVariant() 1765 def setQuality(self, quality): 1766 '''void QAudioEncoderSettings.setQuality(QMultimedia.EncodingQuality quality)''' 1767 def quality(self): 1768 '''QMultimedia.EncodingQuality QAudioEncoderSettings.quality()''' 1769 return QMultimedia.EncodingQuality() 1770 def setSampleRate(self, rate): 1771 '''void QAudioEncoderSettings.setSampleRate(int rate)''' 1772 def sampleRate(self): 1773 '''int QAudioEncoderSettings.sampleRate()''' 1774 return int() 1775 def setChannelCount(self, channels): 1776 '''void QAudioEncoderSettings.setChannelCount(int channels)''' 1777 def channelCount(self): 1778 '''int QAudioEncoderSettings.channelCount()''' 1779 return int() 1780 def setBitRate(self, bitrate): 1781 '''void QAudioEncoderSettings.setBitRate(int bitrate)''' 1782 def bitRate(self): 1783 '''int QAudioEncoderSettings.bitRate()''' 1784 return int() 1785 def setCodec(self, codec): 1786 '''void QAudioEncoderSettings.setCodec(str codec)''' 1787 def codec(self): 1788 '''str QAudioEncoderSettings.codec()''' 1789 return str() 1790 def setEncodingMode(self): 1791 '''QMultimedia.EncodingMode QAudioEncoderSettings.setEncodingMode()''' 1792 return QMultimedia.EncodingMode() 1793 def encodingMode(self): 1794 '''QMultimedia.EncodingMode QAudioEncoderSettings.encodingMode()''' 1795 return QMultimedia.EncodingMode() 1796 def isNull(self): 1797 '''bool QAudioEncoderSettings.isNull()''' 1798 return bool() 1799 def __ne__(self, other): 1800 '''bool QAudioEncoderSettings.__ne__(QAudioEncoderSettings other)''' 1801 return bool() 1802 def __eq__(self, other): 1803 '''bool QAudioEncoderSettings.__eq__(QAudioEncoderSettings other)''' 1804 return bool() 1805 1806 1807 class QVideoEncoderSettings(): 1808 """""" 1809 def __init__(self): 1810 '''void QVideoEncoderSettings.__init__()''' 1811 def __init__(self, other): 1812 '''void QVideoEncoderSettings.__init__(QVideoEncoderSettings other)''' 1813 def setEncodingOptions(self, options): 1814 '''void QVideoEncoderSettings.setEncodingOptions(dict-of-str-object options)''' 1815 def setEncodingOption(self, option, value): 1816 '''void QVideoEncoderSettings.setEncodingOption(str option, QVariant value)''' 1817 def encodingOptions(self): 1818 '''dict-of-str-object QVideoEncoderSettings.encodingOptions()''' 1819 return {str():object()} 1820 def encodingOption(self, option): 1821 '''QVariant QVideoEncoderSettings.encodingOption(str option)''' 1822 return QVariant() 1823 def setQuality(self, quality): 1824 '''void QVideoEncoderSettings.setQuality(QMultimedia.EncodingQuality quality)''' 1825 def quality(self): 1826 '''QMultimedia.EncodingQuality QVideoEncoderSettings.quality()''' 1827 return QMultimedia.EncodingQuality() 1828 def setBitRate(self, bitrate): 1829 '''void QVideoEncoderSettings.setBitRate(int bitrate)''' 1830 def bitRate(self): 1831 '''int QVideoEncoderSettings.bitRate()''' 1832 return int() 1833 def setFrameRate(self, rate): 1834 '''void QVideoEncoderSettings.setFrameRate(float rate)''' 1835 def frameRate(self): 1836 '''float QVideoEncoderSettings.frameRate()''' 1837 return float() 1838 def setResolution(self): 1839 '''QSize QVideoEncoderSettings.setResolution()''' 1840 return QSize() 1841 def setResolution(self, width, height): 1842 '''void QVideoEncoderSettings.setResolution(int width, int height)''' 1843 def resolution(self): 1844 '''QSize QVideoEncoderSettings.resolution()''' 1845 return QSize() 1846 def setCodec(self): 1847 '''str QVideoEncoderSettings.setCodec()''' 1848 return str() 1849 def codec(self): 1850 '''str QVideoEncoderSettings.codec()''' 1851 return str() 1852 def setEncodingMode(self): 1853 '''QMultimedia.EncodingMode QVideoEncoderSettings.setEncodingMode()''' 1854 return QMultimedia.EncodingMode() 1855 def encodingMode(self): 1856 '''QMultimedia.EncodingMode QVideoEncoderSettings.encodingMode()''' 1857 return QMultimedia.EncodingMode() 1858 def isNull(self): 1859 '''bool QVideoEncoderSettings.isNull()''' 1860 return bool() 1861 def __ne__(self, other): 1862 '''bool QVideoEncoderSettings.__ne__(QVideoEncoderSettings other)''' 1863 return bool() 1864 def __eq__(self, other): 1865 '''bool QVideoEncoderSettings.__eq__(QVideoEncoderSettings other)''' 1866 return bool() 1867 1868 1869 class QImageEncoderSettings(): 1870 """""" 1871 def __init__(self): 1872 '''void QImageEncoderSettings.__init__()''' 1873 def __init__(self, other): 1874 '''void QImageEncoderSettings.__init__(QImageEncoderSettings other)''' 1875 def setEncodingOptions(self, options): 1876 '''void QImageEncoderSettings.setEncodingOptions(dict-of-str-object options)''' 1877 def setEncodingOption(self, option, value): 1878 '''void QImageEncoderSettings.setEncodingOption(str option, QVariant value)''' 1879 def encodingOptions(self): 1880 '''dict-of-str-object QImageEncoderSettings.encodingOptions()''' 1881 return {str():object()} 1882 def encodingOption(self, option): 1883 '''QVariant QImageEncoderSettings.encodingOption(str option)''' 1884 return QVariant() 1885 def setQuality(self, quality): 1886 '''void QImageEncoderSettings.setQuality(QMultimedia.EncodingQuality quality)''' 1887 def quality(self): 1888 '''QMultimedia.EncodingQuality QImageEncoderSettings.quality()''' 1889 return QMultimedia.EncodingQuality() 1890 def setResolution(self): 1891 '''QSize QImageEncoderSettings.setResolution()''' 1892 return QSize() 1893 def setResolution(self, width, height): 1894 '''void QImageEncoderSettings.setResolution(int width, int height)''' 1895 def resolution(self): 1896 '''QSize QImageEncoderSettings.resolution()''' 1897 return QSize() 1898 def setCodec(self): 1899 '''str QImageEncoderSettings.setCodec()''' 1900 return str() 1901 def codec(self): 1902 '''str QImageEncoderSettings.codec()''' 1903 return str() 1904 def isNull(self): 1905 '''bool QImageEncoderSettings.isNull()''' 1906 return bool() 1907 def __ne__(self, other): 1908 '''bool QImageEncoderSettings.__ne__(QImageEncoderSettings other)''' 1909 return bool() 1910 def __eq__(self, other): 1911 '''bool QImageEncoderSettings.__eq__(QImageEncoderSettings other)''' 1912 return bool() 1913 1914 1915 class QMediaMetaData(): 1916 """""" 1917 AlbumArtist = None # str - member 1918 AlbumTitle = None # str - member 1919 AudioBitRate = None # str - member 1920 AudioCodec = None # str - member 1921 Author = None # str - member 1922 AverageLevel = None # str - member 1923 CameraManufacturer = None # str - member 1924 CameraModel = None # str - member 1925 Category = None # str - member 1926 ChannelCount = None # str - member 1927 ChapterNumber = None # str - member 1928 Comment = None # str - member 1929 Composer = None # str - member 1930 Conductor = None # str - member 1931 Contrast = None # str - member 1932 ContributingArtist = None # str - member 1933 Copyright = None # str - member 1934 CoverArtImage = None # str - member 1935 CoverArtUrlLarge = None # str - member 1936 CoverArtUrlSmall = None # str - member 1937 Date = None # str - member 1938 DateTimeDigitized = None # str - member 1939 DateTimeOriginal = None # str - member 1940 Description = None # str - member 1941 DeviceSettingDescription = None # str - member 1942 DigitalZoomRatio = None # str - member 1943 Director = None # str - member 1944 Duration = None # str - member 1945 Event = None # str - member 1946 ExposureBiasValue = None # str - member 1947 ExposureMode = None # str - member 1948 ExposureProgram = None # str - member 1949 ExposureTime = None # str - member 1950 FNumber = None # str - member 1951 Flash = None # str - member 1952 FocalLength = None # str - member 1953 FocalLengthIn35mmFilm = None # str - member 1954 GPSAltitude = None # str - member 1955 GPSAreaInformation = None # str - member 1956 GPSDOP = None # str - member 1957 GPSImgDirection = None # str - member 1958 GPSImgDirectionRef = None # str - member 1959 GPSLatitude = None # str - member 1960 GPSLongitude = None # str - member 1961 GPSMapDatum = None # str - member 1962 GPSProcessingMethod = None # str - member 1963 GPSSatellites = None # str - member 1964 GPSSpeed = None # str - member 1965 GPSStatus = None # str - member 1966 GPSTimeStamp = None # str - member 1967 GPSTrack = None # str - member 1968 GPSTrackRef = None # str - member 1969 GainControl = None # str - member 1970 Genre = None # str - member 1971 ISOSpeedRatings = None # str - member 1972 Keywords = None # str - member 1973 Language = None # str - member 1974 LeadPerformer = None # str - member 1975 LightSource = None # str - member 1976 Lyrics = None # str - member 1977 MediaType = None # str - member 1978 MeteringMode = None # str - member 1979 Mood = None # str - member 1980 Orientation = None # str - member 1981 ParentalRating = None # str - member 1982 PeakValue = None # str - member 1983 PixelAspectRatio = None # str - member 1984 PosterImage = None # str - member 1985 PosterUrl = None # str - member 1986 Publisher = None # str - member 1987 RatingOrganization = None # str - member 1988 Resolution = None # str - member 1989 SampleRate = None # str - member 1990 Saturation = None # str - member 1991 SceneCaptureType = None # str - member 1992 Sharpness = None # str - member 1993 Size = None # str - member 1994 SubTitle = None # str - member 1995 Subject = None # str - member 1996 SubjectDistance = None # str - member 1997 ThumbnailImage = None # str - member 1998 Title = None # str - member 1999 TrackCount = None # str - member 2000 TrackNumber = None # str - member 2001 UserRating = None # str - member 2002 VideoBitRate = None # str - member 2003 VideoCodec = None # str - member 2004 VideoFrameRate = None # str - member 2005 WhiteBalance = None # str - member 2006 Writer = None # str - member 2007 Year = None # str - member 2008 2009 2010 class QMediaPlayer(QMediaObject): 2011 """""" 2012 # Enum QMediaPlayer.Error 2013 NoError = 0 2014 ResourceError = 0 2015 FormatError = 0 2016 NetworkError = 0 2017 AccessDeniedError = 0 2018 ServiceMissingError = 0 2019 2020 # Enum QMediaPlayer.Flag 2021 LowLatency = 0 2022 StreamPlayback = 0 2023 VideoSurface = 0 2024 2025 # Enum QMediaPlayer.MediaStatus 2026 UnknownMediaStatus = 0 2027 NoMedia = 0 2028 LoadingMedia = 0 2029 LoadedMedia = 0 2030 StalledMedia = 0 2031 BufferingMedia = 0 2032 BufferedMedia = 0 2033 EndOfMedia = 0 2034 InvalidMedia = 0 2035 2036 # Enum QMediaPlayer.State 2037 StoppedState = 0 2038 PlayingState = 0 2039 PausedState = 0 2040 2041 def __init__(self, parent = None, flags = 0): 2042 '''void QMediaPlayer.__init__(QObject parent = None, QMediaPlayer.Flags flags = 0)''' 2043 def unbind(self): 2044 '''QObject QMediaPlayer.unbind()''' 2045 return QObject() 2046 def bind(self): 2047 '''QObject QMediaPlayer.bind()''' 2048 return QObject() 2049 networkConfigurationChanged = pyqtSignal() # void networkConfigurationChanged(const QNetworkConfigurationamp;) - signal 2050 playbackRateChanged = pyqtSignal() # void playbackRateChanged(qreal) - signal 2051 seekableChanged = pyqtSignal() # void seekableChanged(bool) - signal 2052 bufferStatusChanged = pyqtSignal() # void bufferStatusChanged(int) - signal 2053 videoAvailableChanged = pyqtSignal() # void videoAvailableChanged(bool) - signal 2054 audioAvailableChanged = pyqtSignal() # void audioAvailableChanged(bool) - signal 2055 mutedChanged = pyqtSignal() # void mutedChanged(bool) - signal 2056 volumeChanged = pyqtSignal() # void volumeChanged(int) - signal 2057 positionChanged = pyqtSignal() # void positionChanged(qint64) - signal 2058 durationChanged = pyqtSignal() # void durationChanged(qint64) - signal 2059 mediaStatusChanged = pyqtSignal() # void mediaStatusChanged(QMediaPlayer::MediaStatus) - signal 2060 stateChanged = pyqtSignal() # void stateChanged(QMediaPlayer::State) - signal 2061 currentMediaChanged = pyqtSignal() # void currentMediaChanged(const QMediaContentamp;) - signal 2062 mediaChanged = pyqtSignal() # void mediaChanged(const QMediaContentamp;) - signal 2063 def setNetworkConfigurations(self, configurations): 2064 '''void QMediaPlayer.setNetworkConfigurations(list-of-QNetworkConfiguration configurations)''' 2065 def setPlaylist(self, playlist): 2066 '''void QMediaPlayer.setPlaylist(QMediaPlaylist playlist)''' 2067 def setMedia(self, media, stream = None): 2068 '''void QMediaPlayer.setMedia(QMediaContent media, QIODevice stream = None)''' 2069 def setPlaybackRate(self, rate): 2070 '''void QMediaPlayer.setPlaybackRate(float rate)''' 2071 def setMuted(self, muted): 2072 '''void QMediaPlayer.setMuted(bool muted)''' 2073 def setVolume(self, volume): 2074 '''void QMediaPlayer.setVolume(int volume)''' 2075 def setPosition(self, position): 2076 '''void QMediaPlayer.setPosition(int position)''' 2077 def stop(self): 2078 '''void QMediaPlayer.stop()''' 2079 def pause(self): 2080 '''void QMediaPlayer.pause()''' 2081 def play(self): 2082 '''void QMediaPlayer.play()''' 2083 def availability(self): 2084 '''QMultimedia.AvailabilityStatus QMediaPlayer.availability()''' 2085 return QMultimedia.AvailabilityStatus() 2086 def currentNetworkConfiguration(self): 2087 '''QNetworkConfiguration QMediaPlayer.currentNetworkConfiguration()''' 2088 return QNetworkConfiguration() 2089 def errorString(self): 2090 '''str QMediaPlayer.errorString()''' 2091 return str() 2092 def error(self): 2093 '''QMediaPlayer.Error QMediaPlayer.error()''' 2094 return QMediaPlayer.Error() 2095 error = pyqtSignal() # void error(QMediaPlayer::Error) - signal 2096 def playbackRate(self): 2097 '''float QMediaPlayer.playbackRate()''' 2098 return float() 2099 def isSeekable(self): 2100 '''bool QMediaPlayer.isSeekable()''' 2101 return bool() 2102 def bufferStatus(self): 2103 '''int QMediaPlayer.bufferStatus()''' 2104 return int() 2105 def isVideoAvailable(self): 2106 '''bool QMediaPlayer.isVideoAvailable()''' 2107 return bool() 2108 def isAudioAvailable(self): 2109 '''bool QMediaPlayer.isAudioAvailable()''' 2110 return bool() 2111 def isMuted(self): 2112 '''bool QMediaPlayer.isMuted()''' 2113 return bool() 2114 def volume(self): 2115 '''int QMediaPlayer.volume()''' 2116 return int() 2117 def position(self): 2118 '''int QMediaPlayer.position()''' 2119 return int() 2120 def duration(self): 2121 '''int QMediaPlayer.duration()''' 2122 return int() 2123 def mediaStatus(self): 2124 '''QMediaPlayer.MediaStatus QMediaPlayer.mediaStatus()''' 2125 return QMediaPlayer.MediaStatus() 2126 def state(self): 2127 '''QMediaPlayer.State QMediaPlayer.state()''' 2128 return QMediaPlayer.State() 2129 def currentMedia(self): 2130 '''QMediaContent QMediaPlayer.currentMedia()''' 2131 return QMediaContent() 2132 def playlist(self): 2133 '''QMediaPlaylist QMediaPlayer.playlist()''' 2134 return QMediaPlaylist() 2135 def mediaStream(self): 2136 '''QIODevice QMediaPlayer.mediaStream()''' 2137 return QIODevice() 2138 def media(self): 2139 '''QMediaContent QMediaPlayer.media()''' 2140 return QMediaContent() 2141 def setVideoOutput(self): 2142 '''QVideoWidget QMediaPlayer.setVideoOutput()''' 2143 return QVideoWidget() 2144 def setVideoOutput(self): 2145 '''QGraphicsVideoItem QMediaPlayer.setVideoOutput()''' 2146 return QGraphicsVideoItem() 2147 def setVideoOutput(self, surface): 2148 '''void QMediaPlayer.setVideoOutput(QAbstractVideoSurface surface)''' 2149 def supportedMimeTypes(self, flags = 0): 2150 '''static list-of-str QMediaPlayer.supportedMimeTypes(QMediaPlayer.Flags flags = 0)''' 2151 return [str()] 2152 def hasSupport(self, mimeType, codecs = strList(), flags = 0): 2153 '''static QMultimedia.SupportEstimate QMediaPlayer.hasSupport(str mimeType, list-of-str codecs = strList(), QMediaPlayer.Flags flags = 0)''' 2154 return QMultimedia.SupportEstimate() 2155 class Flags(): 2156 """""" 2157 def __init__(self): 2158 '''QMediaPlayer.Flags QMediaPlayer.Flags.__init__()''' 2159 return QMediaPlayer.Flags() 2160 def __init__(self): 2161 '''int QMediaPlayer.Flags.__init__()''' 2162 return int() 2163 def __init__(self): 2164 '''void QMediaPlayer.Flags.__init__()''' 2165 def __bool__(self): 2166 '''int QMediaPlayer.Flags.__bool__()''' 2167 return int() 2168 def __ne__(self, f): 2169 '''bool QMediaPlayer.Flags.__ne__(QMediaPlayer.Flags f)''' 2170 return bool() 2171 def __eq__(self, f): 2172 '''bool QMediaPlayer.Flags.__eq__(QMediaPlayer.Flags f)''' 2173 return bool() 2174 def __invert__(self): 2175 '''QMediaPlayer.Flags QMediaPlayer.Flags.__invert__()''' 2176 return QMediaPlayer.Flags() 2177 def __and__(self, mask): 2178 '''QMediaPlayer.Flags QMediaPlayer.Flags.__and__(int mask)''' 2179 return QMediaPlayer.Flags() 2180 def __xor__(self, f): 2181 '''QMediaPlayer.Flags QMediaPlayer.Flags.__xor__(QMediaPlayer.Flags f)''' 2182 return QMediaPlayer.Flags() 2183 def __xor__(self, f): 2184 '''QMediaPlayer.Flags QMediaPlayer.Flags.__xor__(int f)''' 2185 return QMediaPlayer.Flags() 2186 def __or__(self, f): 2187 '''QMediaPlayer.Flags QMediaPlayer.Flags.__or__(QMediaPlayer.Flags f)''' 2188 return QMediaPlayer.Flags() 2189 def __or__(self, f): 2190 '''QMediaPlayer.Flags QMediaPlayer.Flags.__or__(int f)''' 2191 return QMediaPlayer.Flags() 2192 def __int__(self): 2193 '''int QMediaPlayer.Flags.__int__()''' 2194 return int() 2195 def __ixor__(self, f): 2196 '''QMediaPlayer.Flags QMediaPlayer.Flags.__ixor__(QMediaPlayer.Flags f)''' 2197 return QMediaPlayer.Flags() 2198 def __ior__(self, f): 2199 '''QMediaPlayer.Flags QMediaPlayer.Flags.__ior__(QMediaPlayer.Flags f)''' 2200 return QMediaPlayer.Flags() 2201 def __iand__(self, mask): 2202 '''QMediaPlayer.Flags QMediaPlayer.Flags.__iand__(int mask)''' 2203 return QMediaPlayer.Flags() 2204 2205 2206 class QMediaPlaylist(QObject, QMediaBindableInterface): 2207 """""" 2208 # Enum QMediaPlaylist.Error 2209 NoError = 0 2210 FormatError = 0 2211 FormatNotSupportedError = 0 2212 NetworkError = 0 2213 AccessDeniedError = 0 2214 2215 # Enum QMediaPlaylist.PlaybackMode 2216 CurrentItemOnce = 0 2217 CurrentItemInLoop = 0 2218 Sequential = 0 2219 Loop = 0 2220 Random = 0 2221 2222 def __init__(self, parent = None): 2223 '''void QMediaPlaylist.__init__(QObject parent = None)''' 2224 def setMediaObject(self, object): 2225 '''bool QMediaPlaylist.setMediaObject(QMediaObject object)''' 2226 return bool() 2227 loadFailed = pyqtSignal() # void loadFailed() - signal 2228 loaded = pyqtSignal() # void loaded() - signal 2229 mediaChanged = pyqtSignal() # void mediaChanged(int,int) - signal 2230 mediaRemoved = pyqtSignal() # void mediaRemoved(int,int) - signal 2231 mediaAboutToBeRemoved = pyqtSignal() # void mediaAboutToBeRemoved(int,int) - signal 2232 mediaInserted = pyqtSignal() # void mediaInserted(int,int) - signal 2233 mediaAboutToBeInserted = pyqtSignal() # void mediaAboutToBeInserted(int,int) - signal 2234 currentMediaChanged = pyqtSignal() # void currentMediaChanged(const QMediaContentamp;) - signal 2235 playbackModeChanged = pyqtSignal() # void playbackModeChanged(QMediaPlaylist::PlaybackMode) - signal 2236 currentIndexChanged = pyqtSignal() # void currentIndexChanged(int) - signal 2237 def setCurrentIndex(self, index): 2238 '''void QMediaPlaylist.setCurrentIndex(int index)''' 2239 def previous(self): 2240 '''void QMediaPlaylist.previous()''' 2241 def next(self): 2242 '''void QMediaPlaylist.next()''' 2243 def shuffle(self): 2244 '''void QMediaPlaylist.shuffle()''' 2245 def errorString(self): 2246 '''str QMediaPlaylist.errorString()''' 2247 return str() 2248 def error(self): 2249 '''QMediaPlaylist.Error QMediaPlaylist.error()''' 2250 return QMediaPlaylist.Error() 2251 def save(self, location, format = None): 2252 '''bool QMediaPlaylist.save(QUrl location, str format = None)''' 2253 return bool() 2254 def save(self, device, format): 2255 '''bool QMediaPlaylist.save(QIODevice device, str format)''' 2256 return bool() 2257 def load(self, request, format = None): 2258 '''void QMediaPlaylist.load(QNetworkRequest request, str format = None)''' 2259 def load(self, location, format = None): 2260 '''void QMediaPlaylist.load(QUrl location, str format = None)''' 2261 def load(self, device, format = None): 2262 '''void QMediaPlaylist.load(QIODevice device, str format = None)''' 2263 def clear(self): 2264 '''bool QMediaPlaylist.clear()''' 2265 return bool() 2266 def removeMedia(self, pos): 2267 '''bool QMediaPlaylist.removeMedia(int pos)''' 2268 return bool() 2269 def removeMedia(self, start, end): 2270 '''bool QMediaPlaylist.removeMedia(int start, int end)''' 2271 return bool() 2272 def insertMedia(self, index, content): 2273 '''bool QMediaPlaylist.insertMedia(int index, QMediaContent content)''' 2274 return bool() 2275 def insertMedia(self, index, items): 2276 '''bool QMediaPlaylist.insertMedia(int index, list-of-QMediaContent items)''' 2277 return bool() 2278 def addMedia(self, content): 2279 '''bool QMediaPlaylist.addMedia(QMediaContent content)''' 2280 return bool() 2281 def addMedia(self, items): 2282 '''bool QMediaPlaylist.addMedia(list-of-QMediaContent items)''' 2283 return bool() 2284 def isReadOnly(self): 2285 '''bool QMediaPlaylist.isReadOnly()''' 2286 return bool() 2287 def isEmpty(self): 2288 '''bool QMediaPlaylist.isEmpty()''' 2289 return bool() 2290 def mediaCount(self): 2291 '''int QMediaPlaylist.mediaCount()''' 2292 return int() 2293 def media(self, index): 2294 '''QMediaContent QMediaPlaylist.media(int index)''' 2295 return QMediaContent() 2296 def previousIndex(self, steps = 1): 2297 '''int QMediaPlaylist.previousIndex(int steps = 1)''' 2298 return int() 2299 def nextIndex(self, steps = 1): 2300 '''int QMediaPlaylist.nextIndex(int steps = 1)''' 2301 return int() 2302 def currentMedia(self): 2303 '''QMediaContent QMediaPlaylist.currentMedia()''' 2304 return QMediaContent() 2305 def currentIndex(self): 2306 '''int QMediaPlaylist.currentIndex()''' 2307 return int() 2308 def setPlaybackMode(self, mode): 2309 '''void QMediaPlaylist.setPlaybackMode(QMediaPlaylist.PlaybackMode mode)''' 2310 def playbackMode(self): 2311 '''QMediaPlaylist.PlaybackMode QMediaPlaylist.playbackMode()''' 2312 return QMediaPlaylist.PlaybackMode() 2313 def mediaObject(self): 2314 '''QMediaObject QMediaPlaylist.mediaObject()''' 2315 return QMediaObject() 2316 2317 2318 class QMediaResource(): 2319 """""" 2320 def __init__(self): 2321 '''void QMediaResource.__init__()''' 2322 def __init__(self, url, mimeType = str()): 2323 '''void QMediaResource.__init__(QUrl url, str mimeType = str())''' 2324 def __init__(self, request, mimeType = str()): 2325 '''void QMediaResource.__init__(QNetworkRequest request, str mimeType = str())''' 2326 def __init__(self, other): 2327 '''void QMediaResource.__init__(QMediaResource other)''' 2328 def setResolution(self, resolution): 2329 '''void QMediaResource.setResolution(QSize resolution)''' 2330 def setResolution(self, width, height): 2331 '''void QMediaResource.setResolution(int width, int height)''' 2332 def resolution(self): 2333 '''QSize QMediaResource.resolution()''' 2334 return QSize() 2335 def setVideoBitRate(self, rate): 2336 '''void QMediaResource.setVideoBitRate(int rate)''' 2337 def videoBitRate(self): 2338 '''int QMediaResource.videoBitRate()''' 2339 return int() 2340 def setChannelCount(self, channels): 2341 '''void QMediaResource.setChannelCount(int channels)''' 2342 def channelCount(self): 2343 '''int QMediaResource.channelCount()''' 2344 return int() 2345 def setSampleRate(self, frequency): 2346 '''void QMediaResource.setSampleRate(int frequency)''' 2347 def sampleRate(self): 2348 '''int QMediaResource.sampleRate()''' 2349 return int() 2350 def setAudioBitRate(self, rate): 2351 '''void QMediaResource.setAudioBitRate(int rate)''' 2352 def audioBitRate(self): 2353 '''int QMediaResource.audioBitRate()''' 2354 return int() 2355 def setDataSize(self, size): 2356 '''void QMediaResource.setDataSize(int size)''' 2357 def dataSize(self): 2358 '''int QMediaResource.dataSize()''' 2359 return int() 2360 def setVideoCodec(self, codec): 2361 '''void QMediaResource.setVideoCodec(str codec)''' 2362 def videoCodec(self): 2363 '''str QMediaResource.videoCodec()''' 2364 return str() 2365 def setAudioCodec(self, codec): 2366 '''void QMediaResource.setAudioCodec(str codec)''' 2367 def audioCodec(self): 2368 '''str QMediaResource.audioCodec()''' 2369 return str() 2370 def setLanguage(self, language): 2371 '''void QMediaResource.setLanguage(str language)''' 2372 def language(self): 2373 '''str QMediaResource.language()''' 2374 return str() 2375 def mimeType(self): 2376 '''str QMediaResource.mimeType()''' 2377 return str() 2378 def request(self): 2379 '''QNetworkRequest QMediaResource.request()''' 2380 return QNetworkRequest() 2381 def url(self): 2382 '''QUrl QMediaResource.url()''' 2383 return QUrl() 2384 def __ne__(self, other): 2385 '''bool QMediaResource.__ne__(QMediaResource other)''' 2386 return bool() 2387 def __eq__(self, other): 2388 '''bool QMediaResource.__eq__(QMediaResource other)''' 2389 return bool() 2390 def isNull(self): 2391 '''bool QMediaResource.isNull()''' 2392 return bool() 2393 2394 2395 class QMediaService(QObject): 2396 """""" 2397 def __init__(self, parent): 2398 '''void QMediaService.__init__(QObject parent)''' 2399 def releaseControl(self, control): 2400 '''abstract void QMediaService.releaseControl(QMediaControl control)''' 2401 def requestControl(self, name): 2402 '''abstract QMediaControl QMediaService.requestControl(str name)''' 2403 return QMediaControl() 2404 2405 2406 class QMediaTimeInterval(): 2407 """""" 2408 def __init__(self): 2409 '''void QMediaTimeInterval.__init__()''' 2410 def __init__(self, start, end): 2411 '''void QMediaTimeInterval.__init__(int start, int end)''' 2412 def __init__(self): 2413 '''QMediaTimeInterval QMediaTimeInterval.__init__()''' 2414 return QMediaTimeInterval() 2415 def __eq__(self): 2416 '''QMediaTimeInterval QMediaTimeInterval.__eq__()''' 2417 return QMediaTimeInterval() 2418 def __ne__(self): 2419 '''QMediaTimeInterval QMediaTimeInterval.__ne__()''' 2420 return QMediaTimeInterval() 2421 def translated(self, offset): 2422 '''QMediaTimeInterval QMediaTimeInterval.translated(int offset)''' 2423 return QMediaTimeInterval() 2424 def normalized(self): 2425 '''QMediaTimeInterval QMediaTimeInterval.normalized()''' 2426 return QMediaTimeInterval() 2427 def isNormal(self): 2428 '''bool QMediaTimeInterval.isNormal()''' 2429 return bool() 2430 def contains(self, time): 2431 '''bool QMediaTimeInterval.contains(int time)''' 2432 return bool() 2433 def end(self): 2434 '''int QMediaTimeInterval.end()''' 2435 return int() 2436 def start(self): 2437 '''int QMediaTimeInterval.start()''' 2438 return int() 2439 2440 2441 class QMediaTimeRange(): 2442 """""" 2443 def __init__(self): 2444 '''void QMediaTimeRange.__init__()''' 2445 def __init__(self, start, end): 2446 '''void QMediaTimeRange.__init__(int start, int end)''' 2447 def __init__(self): 2448 '''QMediaTimeInterval QMediaTimeRange.__init__()''' 2449 return QMediaTimeInterval() 2450 def __init__(self, range): 2451 '''void QMediaTimeRange.__init__(QMediaTimeRange range)''' 2452 def __eq__(self): 2453 '''QMediaTimeRange QMediaTimeRange.__eq__()''' 2454 return QMediaTimeRange() 2455 def __ne__(self): 2456 '''QMediaTimeRange QMediaTimeRange.__ne__()''' 2457 return QMediaTimeRange() 2458 def __add__(self): 2459 '''QMediaTimeRange QMediaTimeRange.__add__()''' 2460 return QMediaTimeRange() 2461 def __sub__(self): 2462 '''QMediaTimeRange QMediaTimeRange.__sub__()''' 2463 return QMediaTimeRange() 2464 def clear(self): 2465 '''void QMediaTimeRange.clear()''' 2466 def __isub__(self): 2467 '''QMediaTimeRange QMediaTimeRange.__isub__()''' 2468 return QMediaTimeRange() 2469 def __isub__(self): 2470 '''QMediaTimeInterval QMediaTimeRange.__isub__()''' 2471 return QMediaTimeInterval() 2472 def __iadd__(self): 2473 '''QMediaTimeRange QMediaTimeRange.__iadd__()''' 2474 return QMediaTimeRange() 2475 def __iadd__(self): 2476 '''QMediaTimeInterval QMediaTimeRange.__iadd__()''' 2477 return QMediaTimeInterval() 2478 def removeTimeRange(self): 2479 '''QMediaTimeRange QMediaTimeRange.removeTimeRange()''' 2480 return QMediaTimeRange() 2481 def removeInterval(self, start, end): 2482 '''void QMediaTimeRange.removeInterval(int start, int end)''' 2483 def removeInterval(self, interval): 2484 '''void QMediaTimeRange.removeInterval(QMediaTimeInterval interval)''' 2485 def addTimeRange(self): 2486 '''QMediaTimeRange QMediaTimeRange.addTimeRange()''' 2487 return QMediaTimeRange() 2488 def addInterval(self, start, end): 2489 '''void QMediaTimeRange.addInterval(int start, int end)''' 2490 def addInterval(self, interval): 2491 '''void QMediaTimeRange.addInterval(QMediaTimeInterval interval)''' 2492 def contains(self, time): 2493 '''bool QMediaTimeRange.contains(int time)''' 2494 return bool() 2495 def isContinuous(self): 2496 '''bool QMediaTimeRange.isContinuous()''' 2497 return bool() 2498 def isEmpty(self): 2499 '''bool QMediaTimeRange.isEmpty()''' 2500 return bool() 2501 def intervals(self): 2502 '''list-of-QMediaTimeInterval QMediaTimeRange.intervals()''' 2503 return [QMediaTimeInterval()] 2504 def latestTime(self): 2505 '''int QMediaTimeRange.latestTime()''' 2506 return int() 2507 def earliestTime(self): 2508 '''int QMediaTimeRange.earliestTime()''' 2509 return int() 2510 2511 2512 class QMultimedia(): 2513 """""" 2514 # Enum QMultimedia.AvailabilityStatus 2515 Available = 0 2516 ServiceMissing = 0 2517 Busy = 0 2518 ResourceError = 0 2519 2520 # Enum QMultimedia.EncodingMode 2521 ConstantQualityEncoding = 0 2522 ConstantBitRateEncoding = 0 2523 AverageBitRateEncoding = 0 2524 TwoPassEncoding = 0 2525 2526 # Enum QMultimedia.EncodingQuality 2527 VeryLowQuality = 0 2528 LowQuality = 0 2529 NormalQuality = 0 2530 HighQuality = 0 2531 VeryHighQuality = 0 2532 2533 # Enum QMultimedia.SupportEstimate 2534 NotSupported = 0 2535 MaybeSupported = 0 2536 ProbablySupported = 0 2537 PreferredService = 0 2538 2539 2540 2541 class QRadioData(QObject, QMediaBindableInterface): 2542 """""" 2543 # Enum QRadioData.ProgramType 2544 Undefined = 0 2545 News = 0 2546 CurrentAffairs = 0 2547 Information = 0 2548 Sport = 0 2549 Education = 0 2550 Drama = 0 2551 Culture = 0 2552 Science = 0 2553 Varied = 0 2554 PopMusic = 0 2555 RockMusic = 0 2556 EasyListening = 0 2557 LightClassical = 0 2558 SeriousClassical = 0 2559 OtherMusic = 0 2560 Weather = 0 2561 Finance = 0 2562 ChildrensProgrammes = 0 2563 SocialAffairs = 0 2564 Religion = 0 2565 PhoneIn = 0 2566 Travel = 0 2567 Leisure = 0 2568 JazzMusic = 0 2569 CountryMusic = 0 2570 NationalMusic = 0 2571 OldiesMusic = 0 2572 FolkMusic = 0 2573 Documentary = 0 2574 AlarmTest = 0 2575 Alarm = 0 2576 Talk = 0 2577 ClassicRock = 0 2578 AdultHits = 0 2579 SoftRock = 0 2580 Top40 = 0 2581 Soft = 0 2582 Nostalgia = 0 2583 Classical = 0 2584 RhythmAndBlues = 0 2585 SoftRhythmAndBlues = 0 2586 Language = 0 2587 ReligiousMusic = 0 2588 ReligiousTalk = 0 2589 Personality = 0 2590 Public = 0 2591 College = 0 2592 2593 # Enum QRadioData.Error 2594 NoError = 0 2595 ResourceError = 0 2596 OpenError = 0 2597 OutOfRangeError = 0 2598 2599 def __init__(self, mediaObject, parent = None): 2600 '''void QRadioData.__init__(QMediaObject mediaObject, QObject parent = None)''' 2601 def setMediaObject(self): 2602 '''QMediaObject QRadioData.setMediaObject()''' 2603 return QMediaObject() 2604 alternativeFrequenciesEnabledChanged = pyqtSignal() # void alternativeFrequenciesEnabledChanged(bool) - signal 2605 radioTextChanged = pyqtSignal() # void radioTextChanged(QString) - signal 2606 stationNameChanged = pyqtSignal() # void stationNameChanged(QString) - signal 2607 programTypeNameChanged = pyqtSignal() # void programTypeNameChanged(QString) - signal 2608 programTypeChanged = pyqtSignal() # void programTypeChanged(QRadioData::ProgramType) - signal 2609 stationIdChanged = pyqtSignal() # void stationIdChanged(QString) - signal 2610 def setAlternativeFrequenciesEnabled(self, enabled): 2611 '''void QRadioData.setAlternativeFrequenciesEnabled(bool enabled)''' 2612 def errorString(self): 2613 '''str QRadioData.errorString()''' 2614 return str() 2615 def error(self): 2616 '''QRadioData.Error QRadioData.error()''' 2617 return QRadioData.Error() 2618 error = pyqtSignal() # void error(QRadioData::Error) - signal 2619 def isAlternativeFrequenciesEnabled(self): 2620 '''bool QRadioData.isAlternativeFrequenciesEnabled()''' 2621 return bool() 2622 def radioText(self): 2623 '''str QRadioData.radioText()''' 2624 return str() 2625 def stationName(self): 2626 '''str QRadioData.stationName()''' 2627 return str() 2628 def programTypeName(self): 2629 '''str QRadioData.programTypeName()''' 2630 return str() 2631 def programType(self): 2632 '''QRadioData.ProgramType QRadioData.programType()''' 2633 return QRadioData.ProgramType() 2634 def stationId(self): 2635 '''str QRadioData.stationId()''' 2636 return str() 2637 def availability(self): 2638 '''QMultimedia.AvailabilityStatus QRadioData.availability()''' 2639 return QMultimedia.AvailabilityStatus() 2640 def mediaObject(self): 2641 '''QMediaObject QRadioData.mediaObject()''' 2642 return QMediaObject() 2643 2644 2645 class QRadioTuner(QMediaObject): 2646 """""" 2647 # Enum QRadioTuner.SearchMode 2648 SearchFast = 0 2649 SearchGetStationId = 0 2650 2651 # Enum QRadioTuner.StereoMode 2652 ForceStereo = 0 2653 ForceMono = 0 2654 Auto = 0 2655 2656 # Enum QRadioTuner.Error 2657 NoError = 0 2658 ResourceError = 0 2659 OpenError = 0 2660 OutOfRangeError = 0 2661 2662 # Enum QRadioTuner.Band 2663 AM = 0 2664 FM = 0 2665 SW = 0 2666 LW = 0 2667 FM2 = 0 2668 2669 # Enum QRadioTuner.State 2670 ActiveState = 0 2671 StoppedState = 0 2672 2673 def __init__(self, parent = None): 2674 '''void QRadioTuner.__init__(QObject parent = None)''' 2675 antennaConnectedChanged = pyqtSignal() # void antennaConnectedChanged(bool) - signal 2676 stationFound = pyqtSignal() # void stationFound(int,QString) - signal 2677 mutedChanged = pyqtSignal() # void mutedChanged(bool) - signal 2678 volumeChanged = pyqtSignal() # void volumeChanged(int) - signal 2679 signalStrengthChanged = pyqtSignal() # void signalStrengthChanged(int) - signal 2680 searchingChanged = pyqtSignal() # void searchingChanged(bool) - signal 2681 stereoStatusChanged = pyqtSignal() # void stereoStatusChanged(bool) - signal 2682 frequencyChanged = pyqtSignal() # void frequencyChanged(int) - signal 2683 bandChanged = pyqtSignal() # void bandChanged(QRadioTuner::Band) - signal 2684 stateChanged = pyqtSignal() # void stateChanged(QRadioTuner::State) - signal 2685 def stop(self): 2686 '''void QRadioTuner.stop()''' 2687 def start(self): 2688 '''void QRadioTuner.start()''' 2689 def setMuted(self, muted): 2690 '''void QRadioTuner.setMuted(bool muted)''' 2691 def setVolume(self, volume): 2692 '''void QRadioTuner.setVolume(int volume)''' 2693 def setFrequency(self, frequency): 2694 '''void QRadioTuner.setFrequency(int frequency)''' 2695 def setBand(self, band): 2696 '''void QRadioTuner.setBand(QRadioTuner.Band band)''' 2697 def cancelSearch(self): 2698 '''void QRadioTuner.cancelSearch()''' 2699 def searchAllStations(self, searchMode = None): 2700 '''void QRadioTuner.searchAllStations(QRadioTuner.SearchMode searchMode = QRadioTuner.SearchFast)''' 2701 def searchBackward(self): 2702 '''void QRadioTuner.searchBackward()''' 2703 def searchForward(self): 2704 '''void QRadioTuner.searchForward()''' 2705 def radioData(self): 2706 '''QRadioData QRadioTuner.radioData()''' 2707 return QRadioData() 2708 def errorString(self): 2709 '''str QRadioTuner.errorString()''' 2710 return str() 2711 def error(self): 2712 '''QRadioTuner.Error QRadioTuner.error()''' 2713 return QRadioTuner.Error() 2714 error = pyqtSignal() # void error(QRadioTuner::Error) - signal 2715 def isAntennaConnected(self): 2716 '''bool QRadioTuner.isAntennaConnected()''' 2717 return bool() 2718 def isSearching(self): 2719 '''bool QRadioTuner.isSearching()''' 2720 return bool() 2721 def isMuted(self): 2722 '''bool QRadioTuner.isMuted()''' 2723 return bool() 2724 def volume(self): 2725 '''int QRadioTuner.volume()''' 2726 return int() 2727 def signalStrength(self): 2728 '''int QRadioTuner.signalStrength()''' 2729 return int() 2730 def stereoMode(self): 2731 '''QRadioTuner.StereoMode QRadioTuner.stereoMode()''' 2732 return QRadioTuner.StereoMode() 2733 def setStereoMode(self, mode): 2734 '''void QRadioTuner.setStereoMode(QRadioTuner.StereoMode mode)''' 2735 def isStereo(self): 2736 '''bool QRadioTuner.isStereo()''' 2737 return bool() 2738 def frequencyRange(self, band): 2739 '''tuple-of-int-int QRadioTuner.frequencyRange(QRadioTuner.Band band)''' 2740 return tuple-of-int-int() 2741 def frequencyStep(self, band): 2742 '''int QRadioTuner.frequencyStep(QRadioTuner.Band band)''' 2743 return int() 2744 def frequency(self): 2745 '''int QRadioTuner.frequency()''' 2746 return int() 2747 def isBandSupported(self, b): 2748 '''bool QRadioTuner.isBandSupported(QRadioTuner.Band b)''' 2749 return bool() 2750 def band(self): 2751 '''QRadioTuner.Band QRadioTuner.band()''' 2752 return QRadioTuner.Band() 2753 def state(self): 2754 '''QRadioTuner.State QRadioTuner.state()''' 2755 return QRadioTuner.State() 2756 def availability(self): 2757 '''QMultimedia.AvailabilityStatus QRadioTuner.availability()''' 2758 return QMultimedia.AvailabilityStatus() 2759 2760 2761 class QSound(QObject): 2762 """""" 2763 # Enum QSound.Loop 2764 Infinite = 0 2765 2766 def __init__(self, filename, parent = None): 2767 '''void QSound.__init__(str filename, QObject parent = None)''' 2768 def stop(self): 2769 '''void QSound.stop()''' 2770 def isFinished(self): 2771 '''bool QSound.isFinished()''' 2772 return bool() 2773 def fileName(self): 2774 '''str QSound.fileName()''' 2775 return str() 2776 def setLoops(self): 2777 '''int QSound.setLoops()''' 2778 return int() 2779 def loopsRemaining(self): 2780 '''int QSound.loopsRemaining()''' 2781 return int() 2782 def loops(self): 2783 '''int QSound.loops()''' 2784 return int() 2785 def play(self, filename): 2786 '''static void QSound.play(str filename)''' 2787 def play(self): 2788 '''void QSound.play()''' 2789 2790 2791 class QSoundEffect(QObject): 2792 """""" 2793 # Enum QSoundEffect.Status 2794 Null = 0 2795 Loading = 0 2796 Ready = 0 2797 Error = 0 2798 2799 # Enum QSoundEffect.Loop 2800 Infinite = 0 2801 2802 def __init__(self, parent = None): 2803 '''void QSoundEffect.__init__(QObject parent = None)''' 2804 def stop(self): 2805 '''void QSoundEffect.stop()''' 2806 def play(self): 2807 '''void QSoundEffect.play()''' 2808 categoryChanged = pyqtSignal() # void categoryChanged() - signal 2809 statusChanged = pyqtSignal() # void statusChanged() - signal 2810 playingChanged = pyqtSignal() # void playingChanged() - signal 2811 loadedChanged = pyqtSignal() # void loadedChanged() - signal 2812 mutedChanged = pyqtSignal() # void mutedChanged() - signal 2813 volumeChanged = pyqtSignal() # void volumeChanged() - signal 2814 loopsRemainingChanged = pyqtSignal() # void loopsRemainingChanged() - signal 2815 loopCountChanged = pyqtSignal() # void loopCountChanged() - signal 2816 sourceChanged = pyqtSignal() # void sourceChanged() - signal 2817 def setCategory(self, category): 2818 '''void QSoundEffect.setCategory(str category)''' 2819 def category(self): 2820 '''str QSoundEffect.category()''' 2821 return str() 2822 def status(self): 2823 '''QSoundEffect.Status QSoundEffect.status()''' 2824 return QSoundEffect.Status() 2825 def isPlaying(self): 2826 '''bool QSoundEffect.isPlaying()''' 2827 return bool() 2828 def isLoaded(self): 2829 '''bool QSoundEffect.isLoaded()''' 2830 return bool() 2831 def setMuted(self, muted): 2832 '''void QSoundEffect.setMuted(bool muted)''' 2833 def isMuted(self): 2834 '''bool QSoundEffect.isMuted()''' 2835 return bool() 2836 def setVolume(self, volume): 2837 '''void QSoundEffect.setVolume(float volume)''' 2838 def volume(self): 2839 '''float QSoundEffect.volume()''' 2840 return float() 2841 def setLoopCount(self, loopCount): 2842 '''void QSoundEffect.setLoopCount(int loopCount)''' 2843 def loopsRemaining(self): 2844 '''int QSoundEffect.loopsRemaining()''' 2845 return int() 2846 def loopCount(self): 2847 '''int QSoundEffect.loopCount()''' 2848 return int() 2849 def setSource(self, url): 2850 '''void QSoundEffect.setSource(QUrl url)''' 2851 def source(self): 2852 '''QUrl QSoundEffect.source()''' 2853 return QUrl() 2854 def supportedMimeTypes(self): 2855 '''static list-of-str QSoundEffect.supportedMimeTypes()''' 2856 return [str()] 2857 2858 2859 class QVideoFrame(): 2860 """""" 2861 # Enum QVideoFrame.PixelFormat 2862 Format_Invalid = 0 2863 Format_ARGB32 = 0 2864 Format_ARGB32_Premultiplied = 0 2865 Format_RGB32 = 0 2866 Format_RGB24 = 0 2867 Format_RGB565 = 0 2868 Format_RGB555 = 0 2869 Format_ARGB8565_Premultiplied = 0 2870 Format_BGRA32 = 0 2871 Format_BGRA32_Premultiplied = 0 2872 Format_BGR32 = 0 2873 Format_BGR24 = 0 2874 Format_BGR565 = 0 2875 Format_BGR555 = 0 2876 Format_BGRA5658_Premultiplied = 0 2877 Format_AYUV444 = 0 2878 Format_AYUV444_Premultiplied = 0 2879 Format_YUV444 = 0 2880 Format_YUV420P = 0 2881 Format_YV12 = 0 2882 Format_UYVY = 0 2883 Format_YUYV = 0 2884 Format_NV12 = 0 2885 Format_NV21 = 0 2886 Format_IMC1 = 0 2887 Format_IMC2 = 0 2888 Format_IMC3 = 0 2889 Format_IMC4 = 0 2890 Format_Y8 = 0 2891 Format_Y16 = 0 2892 Format_Jpeg = 0 2893 Format_CameraRaw = 0 2894 Format_AdobeDng = 0 2895 Format_User = 0 2896 2897 # Enum QVideoFrame.FieldType 2898 ProgressiveFrame = 0 2899 TopField = 0 2900 BottomField = 0 2901 InterlacedFrame = 0 2902 2903 def __init__(self): 2904 '''void QVideoFrame.__init__()''' 2905 def __init__(self, buffer, size, format): 2906 '''void QVideoFrame.__init__(QAbstractVideoBuffer buffer, QSize size, QVideoFrame.PixelFormat format)''' 2907 def __init__(self, bytes, size, bytesPerLine, format): 2908 '''void QVideoFrame.__init__(int bytes, QSize size, int bytesPerLine, QVideoFrame.PixelFormat format)''' 2909 def __init__(self, image): 2910 '''void QVideoFrame.__init__(QImage image)''' 2911 def __init__(self, other): 2912 '''void QVideoFrame.__init__(QVideoFrame other)''' 2913 def __ne__(self, other): 2914 '''bool QVideoFrame.__ne__(QVideoFrame other)''' 2915 return bool() 2916 def __eq__(self, other): 2917 '''bool QVideoFrame.__eq__(QVideoFrame other)''' 2918 return bool() 2919 def planeCount(self): 2920 '''int QVideoFrame.planeCount()''' 2921 return int() 2922 def setMetaData(self, key, value): 2923 '''void QVideoFrame.setMetaData(str key, QVariant value)''' 2924 def metaData(self, key): 2925 '''QVariant QVideoFrame.metaData(str key)''' 2926 return QVariant() 2927 def availableMetaData(self): 2928 '''dict-of-str-object QVideoFrame.availableMetaData()''' 2929 return {str():object()} 2930 def imageFormatFromPixelFormat(self, format): 2931 '''static QImage.Format QVideoFrame.imageFormatFromPixelFormat(QVideoFrame.PixelFormat format)''' 2932 return QImage.Format() 2933 def pixelFormatFromImageFormat(self, format): 2934 '''static QVideoFrame.PixelFormat QVideoFrame.pixelFormatFromImageFormat(QImage.Format format)''' 2935 return QVideoFrame.PixelFormat() 2936 def setEndTime(self, time): 2937 '''void QVideoFrame.setEndTime(int time)''' 2938 def endTime(self): 2939 '''int QVideoFrame.endTime()''' 2940 return int() 2941 def setStartTime(self, time): 2942 '''void QVideoFrame.setStartTime(int time)''' 2943 def startTime(self): 2944 '''int QVideoFrame.startTime()''' 2945 return int() 2946 def handle(self): 2947 '''QVariant QVideoFrame.handle()''' 2948 return QVariant() 2949 def mappedBytes(self): 2950 '''int QVideoFrame.mappedBytes()''' 2951 return int() 2952 def bits(self): 2953 '''sip.voidptr QVideoFrame.bits()''' 2954 return sip.voidptr() 2955 def bits(self, plane): 2956 '''sip.voidptr QVideoFrame.bits(int plane)''' 2957 return sip.voidptr() 2958 def bytesPerLine(self): 2959 '''int QVideoFrame.bytesPerLine()''' 2960 return int() 2961 def bytesPerLine(self, plane): 2962 '''int QVideoFrame.bytesPerLine(int plane)''' 2963 return int() 2964 def unmap(self): 2965 '''void QVideoFrame.unmap()''' 2966 def map(self, mode): 2967 '''bool QVideoFrame.map(QAbstractVideoBuffer.MapMode mode)''' 2968 return bool() 2969 def mapMode(self): 2970 '''QAbstractVideoBuffer.MapMode QVideoFrame.mapMode()''' 2971 return QAbstractVideoBuffer.MapMode() 2972 def isWritable(self): 2973 '''bool QVideoFrame.isWritable()''' 2974 return bool() 2975 def isReadable(self): 2976 '''bool QVideoFrame.isReadable()''' 2977 return bool() 2978 def isMapped(self): 2979 '''bool QVideoFrame.isMapped()''' 2980 return bool() 2981 def setFieldType(self): 2982 '''QVideoFrame.FieldType QVideoFrame.setFieldType()''' 2983 return QVideoFrame.FieldType() 2984 def fieldType(self): 2985 '''QVideoFrame.FieldType QVideoFrame.fieldType()''' 2986 return QVideoFrame.FieldType() 2987 def height(self): 2988 '''int QVideoFrame.height()''' 2989 return int() 2990 def width(self): 2991 '''int QVideoFrame.width()''' 2992 return int() 2993 def size(self): 2994 '''QSize QVideoFrame.size()''' 2995 return QSize() 2996 def handleType(self): 2997 '''QAbstractVideoBuffer.HandleType QVideoFrame.handleType()''' 2998 return QAbstractVideoBuffer.HandleType() 2999 def pixelFormat(self): 3000 '''QVideoFrame.PixelFormat QVideoFrame.pixelFormat()''' 3001 return QVideoFrame.PixelFormat() 3002 def isValid(self): 3003 '''bool QVideoFrame.isValid()''' 3004 return bool() 3005 3006 3007 class QVideoProbe(QObject): 3008 """""" 3009 def __init__(self, parent = None): 3010 '''void QVideoProbe.__init__(QObject parent = None)''' 3011 flush = pyqtSignal() # void flush() - signal 3012 videoFrameProbed = pyqtSignal() # void videoFrameProbed(const QVideoFrameamp;) - signal 3013 def isActive(self): 3014 '''bool QVideoProbe.isActive()''' 3015 return bool() 3016 def setSource(self, source): 3017 '''bool QVideoProbe.setSource(QMediaObject source)''' 3018 return bool() 3019 def setSource(self, source): 3020 '''bool QVideoProbe.setSource(QMediaRecorder source)''' 3021 return bool() 3022 3023 3024 class QVideoSurfaceFormat(): 3025 """""" 3026 # Enum QVideoSurfaceFormat.YCbCrColorSpace 3027 YCbCr_Undefined = 0 3028 YCbCr_BT601 = 0 3029 YCbCr_BT709 = 0 3030 YCbCr_xvYCC601 = 0 3031 YCbCr_xvYCC709 = 0 3032 YCbCr_JPEG = 0 3033 3034 # Enum QVideoSurfaceFormat.Direction 3035 TopToBottom = 0 3036 BottomToTop = 0 3037 3038 def __init__(self): 3039 '''void QVideoSurfaceFormat.__init__()''' 3040 def __init__(self, size, format, type = None): 3041 '''void QVideoSurfaceFormat.__init__(QSize size, QVideoFrame.PixelFormat format, QAbstractVideoBuffer.HandleType type = QAbstractVideoBuffer.NoHandle)''' 3042 def __init__(self, format): 3043 '''void QVideoSurfaceFormat.__init__(QVideoSurfaceFormat format)''' 3044 def setProperty(self, name, value): 3045 '''void QVideoSurfaceFormat.setProperty(str name, QVariant value)''' 3046 def property(self, name): 3047 '''QVariant QVideoSurfaceFormat.property(str name)''' 3048 return QVariant() 3049 def propertyNames(self): 3050 '''list-of-QByteArray QVideoSurfaceFormat.propertyNames()''' 3051 return [QByteArray()] 3052 def sizeHint(self): 3053 '''QSize QVideoSurfaceFormat.sizeHint()''' 3054 return QSize() 3055 def setYCbCrColorSpace(self, colorSpace): 3056 '''void QVideoSurfaceFormat.setYCbCrColorSpace(QVideoSurfaceFormat.YCbCrColorSpace colorSpace)''' 3057 def yCbCrColorSpace(self): 3058 '''QVideoSurfaceFormat.YCbCrColorSpace QVideoSurfaceFormat.yCbCrColorSpace()''' 3059 return QVideoSurfaceFormat.YCbCrColorSpace() 3060 def setPixelAspectRatio(self, ratio): 3061 '''void QVideoSurfaceFormat.setPixelAspectRatio(QSize ratio)''' 3062 def setPixelAspectRatio(self, width, height): 3063 '''void QVideoSurfaceFormat.setPixelAspectRatio(int width, int height)''' 3064 def pixelAspectRatio(self): 3065 '''QSize QVideoSurfaceFormat.pixelAspectRatio()''' 3066 return QSize() 3067 def setFrameRate(self, rate): 3068 '''void QVideoSurfaceFormat.setFrameRate(float rate)''' 3069 def frameRate(self): 3070 '''float QVideoSurfaceFormat.frameRate()''' 3071 return float() 3072 def setScanLineDirection(self, direction): 3073 '''void QVideoSurfaceFormat.setScanLineDirection(QVideoSurfaceFormat.Direction direction)''' 3074 def scanLineDirection(self): 3075 '''QVideoSurfaceFormat.Direction QVideoSurfaceFormat.scanLineDirection()''' 3076 return QVideoSurfaceFormat.Direction() 3077 def setViewport(self, viewport): 3078 '''void QVideoSurfaceFormat.setViewport(QRect viewport)''' 3079 def viewport(self): 3080 '''QRect QVideoSurfaceFormat.viewport()''' 3081 return QRect() 3082 def frameHeight(self): 3083 '''int QVideoSurfaceFormat.frameHeight()''' 3084 return int() 3085 def frameWidth(self): 3086 '''int QVideoSurfaceFormat.frameWidth()''' 3087 return int() 3088 def setFrameSize(self, size): 3089 '''void QVideoSurfaceFormat.setFrameSize(QSize size)''' 3090 def setFrameSize(self, width, height): 3091 '''void QVideoSurfaceFormat.setFrameSize(int width, int height)''' 3092 def frameSize(self): 3093 '''QSize QVideoSurfaceFormat.frameSize()''' 3094 return QSize() 3095 def handleType(self): 3096 '''QAbstractVideoBuffer.HandleType QVideoSurfaceFormat.handleType()''' 3097 return QAbstractVideoBuffer.HandleType() 3098 def pixelFormat(self): 3099 '''QVideoFrame.PixelFormat QVideoSurfaceFormat.pixelFormat()''' 3100 return QVideoFrame.PixelFormat() 3101 def isValid(self): 3102 '''bool QVideoSurfaceFormat.isValid()''' 3103 return bool() 3104 def __ne__(self, format): 3105 '''bool QVideoSurfaceFormat.__ne__(QVideoSurfaceFormat format)''' 3106 return bool() 3107 def __eq__(self, format): 3108 '''bool QVideoSurfaceFormat.__eq__(QVideoSurfaceFormat format)''' 3109 return bool() 3110 3111