QtMultimedia.pyi 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630
  1. # Copyright (C) 2022 The Qt Company Ltd.
  2. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. """
  4. This file contains the exact signatures for all functions in module
  5. PySide6.QtMultimedia, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtMultimedia`
  9. import PySide6.QtMultimedia
  10. import PySide6.QtCore
  11. import PySide6.QtGui
  12. import os
  13. import enum
  14. import typing
  15. import collections.abc
  16. from PySide6.QtCore import Signal
  17. from shiboken6 import Shiboken
  18. class QAbstractVideoBuffer(Shiboken.Object):
  19. class MapData(Shiboken.Object):
  20. @typing.overload
  21. def __init__(self, /) -> None: ...
  22. @typing.overload
  23. def __init__(self, MapData: PySide6.QtMultimedia.QAbstractVideoBuffer.MapData, /) -> None: ...
  24. def __copy__(self, /) -> typing.Self: ...
  25. def __init__(self, /) -> None: ...
  26. def format(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat: ...
  27. def map(self, mode: PySide6.QtMultimedia.QVideoFrame.MapMode, /) -> PySide6.QtMultimedia.QAbstractVideoBuffer.MapData: ...
  28. def unmap(self, /) -> None: ...
  29. class QAudio(Shiboken.Object):
  30. class Error(enum.Enum):
  31. NoError = 0x0
  32. OpenError = 0x1
  33. IOError = 0x2
  34. UnderrunError = 0x3
  35. FatalError = 0x4
  36. class State(enum.Enum):
  37. ActiveState = 0x0
  38. SuspendedState = 0x1
  39. StoppedState = 0x2
  40. IdleState = 0x3
  41. class VolumeScale(enum.Enum):
  42. LinearVolumeScale = 0x0
  43. CubicVolumeScale = 0x1
  44. LogarithmicVolumeScale = 0x2
  45. DecibelVolumeScale = 0x3
  46. @staticmethod
  47. def convertVolume(volume: float, from_: PySide6.QtMultimedia.QAudio.VolumeScale, to: PySide6.QtMultimedia.QAudio.VolumeScale, /) -> float: ...
  48. class QAudioBuffer(Shiboken.Object):
  49. @typing.overload
  50. def __init__(self, /) -> None: ...
  51. @typing.overload
  52. def __init__(self, other: PySide6.QtMultimedia.QAudioBuffer, /) -> None: ...
  53. @typing.overload
  54. def __init__(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, format: PySide6.QtMultimedia.QAudioFormat, /, startTime: int = ...) -> None: ...
  55. @typing.overload
  56. def __init__(self, numFrames: int, format: PySide6.QtMultimedia.QAudioFormat, /, startTime: int = ...) -> None: ...
  57. def __copy__(self, /) -> typing.Self: ...
  58. def byteCount(self, /) -> int: ...
  59. def constData(self, /) -> bytes | bytearray | memoryview: ...
  60. def data(self, /) -> bytes | bytearray | memoryview: ...
  61. def duration(self, /) -> int: ...
  62. def format(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  63. def frameCount(self, /) -> int: ...
  64. def isValid(self, /) -> bool: ...
  65. def sampleCount(self, /) -> int: ...
  66. def startTime(self, /) -> int: ...
  67. def swap(self, other: PySide6.QtMultimedia.QAudioBuffer, /) -> None: ...
  68. class QAudioBufferInput(PySide6.QtCore.QObject):
  69. readyToSendAudioBuffer : typing.ClassVar[Signal] = ... # readyToSendAudioBuffer()
  70. @typing.overload
  71. def __init__(self, format: PySide6.QtMultimedia.QAudioFormat, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  72. @typing.overload
  73. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  74. def captureSession(self, /) -> PySide6.QtMultimedia.QMediaCaptureSession: ...
  75. def format(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  76. def sendAudioBuffer(self, audioBuffer: PySide6.QtMultimedia.QAudioBuffer, /) -> bool: ...
  77. class QAudioBufferOutput(PySide6.QtCore.QObject):
  78. audioBufferReceived : typing.ClassVar[Signal] = ... # audioBufferReceived(QAudioBuffer)
  79. @typing.overload
  80. def __init__(self, format: PySide6.QtMultimedia.QAudioFormat, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  81. @typing.overload
  82. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  83. def format(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  84. class QAudioDecoder(PySide6.QtCore.QObject):
  85. bufferAvailableChanged : typing.ClassVar[Signal] = ... # bufferAvailableChanged(bool)
  86. bufferReady : typing.ClassVar[Signal] = ... # bufferReady()
  87. durationChanged : typing.ClassVar[Signal] = ... # durationChanged(qlonglong)
  88. error : typing.ClassVar[Signal] = ... # error(QAudioDecoder::Error)
  89. finished : typing.ClassVar[Signal] = ... # finished()
  90. formatChanged : typing.ClassVar[Signal] = ... # formatChanged(QAudioFormat)
  91. isDecodingChanged : typing.ClassVar[Signal] = ... # isDecodingChanged(bool)
  92. positionChanged : typing.ClassVar[Signal] = ... # positionChanged(qlonglong)
  93. sourceChanged : typing.ClassVar[Signal] = ... # sourceChanged()
  94. class Error(enum.Enum):
  95. NoError = 0x0
  96. ResourceError = 0x1
  97. FormatError = 0x2
  98. AccessDeniedError = 0x3
  99. NotSupportedError = 0x4
  100. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, source: PySide6.QtCore.QUrl | None = ..., isDecoding: bool | None = ..., error: str | None = ..., bufferAvailable: bool | None = ...) -> None: ...
  101. def audioFormat(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  102. def bufferAvailable(self, /) -> bool: ...
  103. def duration(self, /) -> int: ...
  104. def errorString(self, /) -> str: ...
  105. def isDecoding(self, /) -> bool: ...
  106. def isSupported(self, /) -> bool: ...
  107. def position(self, /) -> int: ...
  108. def read(self, /) -> PySide6.QtMultimedia.QAudioBuffer: ...
  109. def setAudioFormat(self, format: PySide6.QtMultimedia.QAudioFormat, /) -> None: ...
  110. def setSource(self, fileName: PySide6.QtCore.QUrl | str, /) -> None: ...
  111. def setSourceDevice(self, device: PySide6.QtCore.QIODevice, /) -> None: ...
  112. def source(self, /) -> PySide6.QtCore.QUrl: ...
  113. def sourceDevice(self, /) -> PySide6.QtCore.QIODevice: ...
  114. def start(self, /) -> None: ...
  115. def stop(self, /) -> None: ...
  116. class QAudioDevice(Shiboken.Object):
  117. class Mode(enum.Enum):
  118. Null = 0x0
  119. Input = 0x1
  120. Output = 0x2
  121. @typing.overload
  122. def __init__(self, other: PySide6.QtMultimedia.QAudioDevice, /, *, id: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview | None = ..., description: str | None = ..., isDefault: bool | None = ..., mode: PySide6.QtMultimedia.QAudioDevice.Mode | None = ...) -> None: ...
  123. @typing.overload
  124. def __init__(self, /, *, id: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview | None = ..., description: str | None = ..., isDefault: bool | None = ..., mode: PySide6.QtMultimedia.QAudioDevice.Mode | None = ...) -> None: ...
  125. def __copy__(self, /) -> typing.Self: ...
  126. def __eq__(self, other: PySide6.QtMultimedia.QAudioDevice, /) -> bool: ...
  127. def __ne__(self, other: PySide6.QtMultimedia.QAudioDevice, /) -> bool: ...
  128. def channelConfiguration(self, /) -> PySide6.QtMultimedia.QAudioFormat.ChannelConfig: ...
  129. def description(self, /) -> str: ...
  130. def id(self, /) -> PySide6.QtCore.QByteArray: ...
  131. def isDefault(self, /) -> bool: ...
  132. def isFormatSupported(self, format: PySide6.QtMultimedia.QAudioFormat, /) -> bool: ...
  133. def isNull(self, /) -> bool: ...
  134. def maximumChannelCount(self, /) -> int: ...
  135. def maximumSampleRate(self, /) -> int: ...
  136. def minimumChannelCount(self, /) -> int: ...
  137. def minimumSampleRate(self, /) -> int: ...
  138. def mode(self, /) -> PySide6.QtMultimedia.QAudioDevice.Mode: ...
  139. def preferredFormat(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  140. def supportedSampleFormats(self, /) -> typing.List[PySide6.QtMultimedia.QAudioFormat.SampleFormat]: ...
  141. def swap(self, other: PySide6.QtMultimedia.QAudioDevice, /) -> None: ...
  142. class QAudioFormat(Shiboken.Object):
  143. class AudioChannelPosition(enum.Enum):
  144. UnknownPosition = 0x0
  145. FrontLeft = 0x1
  146. FrontRight = 0x2
  147. FrontCenter = 0x3
  148. LFE = 0x4
  149. BackLeft = 0x5
  150. BackRight = 0x6
  151. FrontLeftOfCenter = 0x7
  152. FrontRightOfCenter = 0x8
  153. BackCenter = 0x9
  154. SideLeft = 0xa
  155. SideRight = 0xb
  156. TopCenter = 0xc
  157. TopFrontLeft = 0xd
  158. TopFrontCenter = 0xe
  159. TopFrontRight = 0xf
  160. TopBackLeft = 0x10
  161. TopBackCenter = 0x11
  162. TopBackRight = 0x12
  163. LFE2 = 0x13
  164. TopSideLeft = 0x14
  165. TopSideRight = 0x15
  166. BottomFrontCenter = 0x16
  167. BottomFrontLeft = 0x17
  168. BottomFrontRight = 0x18
  169. class ChannelConfig(enum.Enum):
  170. ChannelConfigUnknown = 0x0
  171. ChannelConfigStereo = 0x6
  172. ChannelConfigMono = 0x8
  173. ChannelConfig3Dot0 = 0xe
  174. ChannelConfig2Dot1 = 0x16
  175. ChannelConfig3Dot1 = 0x1e
  176. ChannelConfigSurround5Dot0 = 0x6e
  177. ChannelConfigSurround5Dot1 = 0x7e
  178. ChannelConfigSurround7Dot0 = 0xc6e
  179. ChannelConfigSurround7Dot1 = 0xc7e
  180. class SampleFormat(enum.Enum):
  181. Unknown = 0x0
  182. UInt8 = 0x1
  183. Int16 = 0x2
  184. Int32 = 0x3
  185. Float = 0x4
  186. NSampleFormats = 0x5
  187. @typing.overload
  188. def __init__(self, /) -> None: ...
  189. @typing.overload
  190. def __init__(self, QAudioFormat: PySide6.QtMultimedia.QAudioFormat, /) -> None: ...
  191. def __copy__(self, /) -> typing.Self: ...
  192. def __eq__(self, b: PySide6.QtMultimedia.QAudioFormat, /) -> bool: ...
  193. def __ne__(self, b: PySide6.QtMultimedia.QAudioFormat, /) -> bool: ...
  194. def __repr__(self, /) -> str: ...
  195. def bytesForDuration(self, microseconds: int, /) -> int: ...
  196. def bytesForFrames(self, frameCount: int, /) -> int: ...
  197. def bytesPerFrame(self, /) -> int: ...
  198. def bytesPerSample(self, /) -> int: ...
  199. def channelConfig(self, /) -> PySide6.QtMultimedia.QAudioFormat.ChannelConfig: ...
  200. def channelCount(self, /) -> int: ...
  201. def channelOffset(self, channel: PySide6.QtMultimedia.QAudioFormat.AudioChannelPosition, /) -> int: ...
  202. @staticmethod
  203. def defaultChannelConfigForChannelCount(channelCount: int, /) -> PySide6.QtMultimedia.QAudioFormat.ChannelConfig: ...
  204. def durationForBytes(self, byteCount: int, /) -> int: ...
  205. def durationForFrames(self, frameCount: int, /) -> int: ...
  206. def framesForBytes(self, byteCount: int, /) -> int: ...
  207. def framesForDuration(self, microseconds: int, /) -> int: ...
  208. def isValid(self, /) -> bool: ...
  209. def normalizedSampleValue(self, sample: bytes | bytearray | memoryview, /) -> float: ...
  210. def sampleFormat(self, /) -> PySide6.QtMultimedia.QAudioFormat.SampleFormat: ...
  211. def sampleRate(self, /) -> int: ...
  212. def setChannelConfig(self, config: PySide6.QtMultimedia.QAudioFormat.ChannelConfig, /) -> None: ...
  213. def setChannelCount(self, channelCount: int, /) -> None: ...
  214. def setSampleFormat(self, f: PySide6.QtMultimedia.QAudioFormat.SampleFormat, /) -> None: ...
  215. def setSampleRate(self, sampleRate: int, /) -> None: ...
  216. class QAudioInput(PySide6.QtCore.QObject):
  217. deviceChanged : typing.ClassVar[Signal] = ... # deviceChanged()
  218. mutedChanged : typing.ClassVar[Signal] = ... # mutedChanged(bool)
  219. volumeChanged : typing.ClassVar[Signal] = ... # volumeChanged(float)
  220. @typing.overload
  221. def __init__(self, deviceInfo: PySide6.QtMultimedia.QAudioDevice, /, parent: PySide6.QtCore.QObject | None = ..., *, device: PySide6.QtMultimedia.QAudioDevice | None = ..., volume: float | None = ..., muted: bool | None = ...) -> None: ...
  222. @typing.overload
  223. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, device: PySide6.QtMultimedia.QAudioDevice | None = ..., volume: float | None = ..., muted: bool | None = ...) -> None: ...
  224. def device(self, /) -> PySide6.QtMultimedia.QAudioDevice: ...
  225. def isMuted(self, /) -> bool: ...
  226. def setDevice(self, device: PySide6.QtMultimedia.QAudioDevice, /) -> None: ...
  227. def setMuted(self, muted: bool, /) -> None: ...
  228. def setVolume(self, volume: float, /) -> None: ...
  229. def volume(self, /) -> float: ...
  230. class QAudioOutput(PySide6.QtCore.QObject):
  231. deviceChanged : typing.ClassVar[Signal] = ... # deviceChanged()
  232. mutedChanged : typing.ClassVar[Signal] = ... # mutedChanged(bool)
  233. volumeChanged : typing.ClassVar[Signal] = ... # volumeChanged(float)
  234. @typing.overload
  235. def __init__(self, device: PySide6.QtMultimedia.QAudioDevice, /, parent: PySide6.QtCore.QObject | None = ..., *, volume: float | None = ..., muted: bool | None = ...) -> None: ...
  236. @typing.overload
  237. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, device: PySide6.QtMultimedia.QAudioDevice | None = ..., volume: float | None = ..., muted: bool | None = ...) -> None: ...
  238. def device(self, /) -> PySide6.QtMultimedia.QAudioDevice: ...
  239. def isMuted(self, /) -> bool: ...
  240. def setDevice(self, device: PySide6.QtMultimedia.QAudioDevice, /) -> None: ...
  241. def setMuted(self, muted: bool, /) -> None: ...
  242. def setVolume(self, volume: float, /) -> None: ...
  243. def volume(self, /) -> float: ...
  244. class QAudioSink(PySide6.QtCore.QObject):
  245. stateChanged : typing.ClassVar[Signal] = ... # stateChanged(QAudio::State)
  246. @typing.overload
  247. def __init__(self, audioDeviceInfo: PySide6.QtMultimedia.QAudioDevice, /, format: PySide6.QtMultimedia.QAudioFormat = ..., parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  248. @typing.overload
  249. def __init__(self, /, format: PySide6.QtMultimedia.QAudioFormat = ..., parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  250. def bufferFrameCount(self, /) -> int: ...
  251. def bufferSize(self, /) -> int: ...
  252. def bytesFree(self, /) -> int: ...
  253. def elapsedUSecs(self, /) -> int: ...
  254. def error(self, /) -> PySide6.QtMultimedia.QtAudio.Error: ...
  255. def format(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  256. def framesFree(self, /) -> int: ...
  257. def isNull(self, /) -> bool: ...
  258. def processedUSecs(self, /) -> int: ...
  259. def reset(self, /) -> None: ...
  260. def resume(self, /) -> None: ...
  261. def setBufferFrameCount(self, framesCount: int, /) -> None: ...
  262. def setBufferSize(self, bytes: int, /) -> None: ...
  263. def setVolume(self, arg__1: float, /) -> None: ...
  264. @typing.overload
  265. def start(self, /) -> PySide6.QtCore.QIODevice: ...
  266. @typing.overload
  267. def start(self, device: PySide6.QtCore.QIODevice, /) -> None: ...
  268. def state(self, /) -> PySide6.QtMultimedia.QtAudio.State: ...
  269. def stop(self, /) -> None: ...
  270. def suspend(self, /) -> None: ...
  271. def volume(self, /) -> float: ...
  272. class QAudioSource(PySide6.QtCore.QObject):
  273. stateChanged : typing.ClassVar[Signal] = ... # stateChanged(QAudio::State)
  274. @typing.overload
  275. def __init__(self, audioDeviceInfo: PySide6.QtMultimedia.QAudioDevice, /, format: PySide6.QtMultimedia.QAudioFormat = ..., parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  276. @typing.overload
  277. def __init__(self, /, format: PySide6.QtMultimedia.QAudioFormat = ..., parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  278. def bufferFrameCount(self, /) -> int: ...
  279. def bufferSize(self, /) -> int: ...
  280. def bytesAvailable(self, /) -> int: ...
  281. def elapsedUSecs(self, /) -> int: ...
  282. def error(self, /) -> PySide6.QtMultimedia.QtAudio.Error: ...
  283. def format(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  284. def framesAvailable(self, /) -> int: ...
  285. def isNull(self, /) -> bool: ...
  286. def processedUSecs(self, /) -> int: ...
  287. def reset(self, /) -> None: ...
  288. def resume(self, /) -> None: ...
  289. def setBufferFrameCount(self, frames: int, /) -> None: ...
  290. def setBufferSize(self, bytes: int, /) -> None: ...
  291. def setVolume(self, volume: float, /) -> None: ...
  292. @typing.overload
  293. def start(self, /) -> PySide6.QtCore.QIODevice: ...
  294. @typing.overload
  295. def start(self, device: PySide6.QtCore.QIODevice, /) -> None: ...
  296. def state(self, /) -> PySide6.QtMultimedia.QtAudio.State: ...
  297. def stop(self, /) -> None: ...
  298. def suspend(self, /) -> None: ...
  299. def volume(self, /) -> float: ...
  300. class QCamera(PySide6.QtCore.QObject):
  301. activeChanged : typing.ClassVar[Signal] = ... # activeChanged(bool)
  302. brightnessChanged : typing.ClassVar[Signal] = ... # brightnessChanged()
  303. cameraDeviceChanged : typing.ClassVar[Signal] = ... # cameraDeviceChanged()
  304. cameraFormatChanged : typing.ClassVar[Signal] = ... # cameraFormatChanged()
  305. colorTemperatureChanged : typing.ClassVar[Signal] = ... # colorTemperatureChanged()
  306. contrastChanged : typing.ClassVar[Signal] = ... # contrastChanged()
  307. customFocusPointChanged : typing.ClassVar[Signal] = ... # customFocusPointChanged()
  308. errorChanged : typing.ClassVar[Signal] = ... # errorChanged()
  309. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QCamera::Error,QString)
  310. exposureCompensationChanged: typing.ClassVar[Signal] = ... # exposureCompensationChanged(float)
  311. exposureModeChanged : typing.ClassVar[Signal] = ... # exposureModeChanged()
  312. exposureTimeChanged : typing.ClassVar[Signal] = ... # exposureTimeChanged(float)
  313. flashModeChanged : typing.ClassVar[Signal] = ... # flashModeChanged()
  314. flashReady : typing.ClassVar[Signal] = ... # flashReady(bool)
  315. focusDistanceChanged : typing.ClassVar[Signal] = ... # focusDistanceChanged(float)
  316. focusModeChanged : typing.ClassVar[Signal] = ... # focusModeChanged()
  317. focusPointChanged : typing.ClassVar[Signal] = ... # focusPointChanged()
  318. hueChanged : typing.ClassVar[Signal] = ... # hueChanged()
  319. isoSensitivityChanged : typing.ClassVar[Signal] = ... # isoSensitivityChanged(int)
  320. manualExposureTimeChanged: typing.ClassVar[Signal] = ... # manualExposureTimeChanged(float)
  321. manualIsoSensitivityChanged: typing.ClassVar[Signal] = ... # manualIsoSensitivityChanged(int)
  322. maximumZoomFactorChanged : typing.ClassVar[Signal] = ... # maximumZoomFactorChanged(float)
  323. minimumZoomFactorChanged : typing.ClassVar[Signal] = ... # minimumZoomFactorChanged(float)
  324. saturationChanged : typing.ClassVar[Signal] = ... # saturationChanged()
  325. supportedFeaturesChanged : typing.ClassVar[Signal] = ... # supportedFeaturesChanged()
  326. torchModeChanged : typing.ClassVar[Signal] = ... # torchModeChanged()
  327. whiteBalanceModeChanged : typing.ClassVar[Signal] = ... # whiteBalanceModeChanged()
  328. zoomFactorChanged : typing.ClassVar[Signal] = ... # zoomFactorChanged(float)
  329. class Error(enum.Enum):
  330. NoError = 0x0
  331. CameraError = 0x1
  332. class ExposureMode(enum.Enum):
  333. ExposureAuto = 0x0
  334. ExposureManual = 0x1
  335. ExposurePortrait = 0x2
  336. ExposureNight = 0x3
  337. ExposureSports = 0x4
  338. ExposureSnow = 0x5
  339. ExposureBeach = 0x6
  340. ExposureAction = 0x7
  341. ExposureLandscape = 0x8
  342. ExposureNightPortrait = 0x9
  343. ExposureTheatre = 0xa
  344. ExposureSunset = 0xb
  345. ExposureSteadyPhoto = 0xc
  346. ExposureFireworks = 0xd
  347. ExposureParty = 0xe
  348. ExposureCandlelight = 0xf
  349. ExposureBarcode = 0x10
  350. class Feature(enum.Flag):
  351. ColorTemperature = 0x1
  352. ExposureCompensation = 0x2
  353. IsoSensitivity = 0x4
  354. ManualExposureTime = 0x8
  355. CustomFocusPoint = 0x10
  356. FocusDistance = 0x20
  357. class FlashMode(enum.Enum):
  358. FlashOff = 0x0
  359. FlashOn = 0x1
  360. FlashAuto = 0x2
  361. class FocusMode(enum.Enum):
  362. FocusModeAuto = 0x0
  363. FocusModeAutoNear = 0x1
  364. FocusModeAutoFar = 0x2
  365. FocusModeHyperfocal = 0x3
  366. FocusModeInfinity = 0x4
  367. FocusModeManual = 0x5
  368. class TorchMode(enum.Enum):
  369. TorchOff = 0x0
  370. TorchOn = 0x1
  371. TorchAuto = 0x2
  372. class WhiteBalanceMode(enum.Enum):
  373. WhiteBalanceAuto = 0x0
  374. WhiteBalanceManual = 0x1
  375. WhiteBalanceSunlight = 0x2
  376. WhiteBalanceCloudy = 0x3
  377. WhiteBalanceShade = 0x4
  378. WhiteBalanceTungsten = 0x5
  379. WhiteBalanceFluorescent = 0x6
  380. WhiteBalanceFlash = 0x7
  381. WhiteBalanceSunset = 0x8
  382. @typing.overload
  383. def __init__(self, position: PySide6.QtMultimedia.QCameraDevice.Position, /, parent: PySide6.QtCore.QObject | None = ..., *, active: bool | None = ..., cameraDevice: PySide6.QtMultimedia.QCameraDevice | None = ..., error: PySide6.QtMultimedia.QCamera.Error | None = ..., errorString: str | None = ..., cameraFormat: PySide6.QtMultimedia.QCameraFormat | None = ..., focusMode: PySide6.QtMultimedia.QCamera.FocusMode | None = ..., focusPoint: PySide6.QtCore.QPointF | None = ..., customFocusPoint: PySide6.QtCore.QPointF | None = ..., focusDistance: float | None = ..., minimumZoomFactor: float | None = ..., maximumZoomFactor: float | None = ..., zoomFactor: float | None = ..., exposureTime: float | None = ..., manualExposureTime: float | None = ..., isoSensitivity: int | None = ..., manualIsoSensitivity: int | None = ..., exposureCompensation: float | None = ..., exposureMode: PySide6.QtMultimedia.QCamera.ExposureMode | None = ..., flashReady: bool | None = ..., flashMode: PySide6.QtMultimedia.QCamera.FlashMode | None = ..., torchMode: PySide6.QtMultimedia.QCamera.TorchMode | None = ..., whiteBalanceMode: PySide6.QtMultimedia.QCamera.WhiteBalanceMode | None = ..., colorTemperature: int | None = ..., supportedFeatures: PySide6.QtMultimedia.QCamera.Feature | None = ...) -> None: ...
  384. @typing.overload
  385. def __init__(self, cameraDevice: PySide6.QtMultimedia.QCameraDevice, /, parent: PySide6.QtCore.QObject | None = ..., *, active: bool | None = ..., error: PySide6.QtMultimedia.QCamera.Error | None = ..., errorString: str | None = ..., cameraFormat: PySide6.QtMultimedia.QCameraFormat | None = ..., focusMode: PySide6.QtMultimedia.QCamera.FocusMode | None = ..., focusPoint: PySide6.QtCore.QPointF | None = ..., customFocusPoint: PySide6.QtCore.QPointF | None = ..., focusDistance: float | None = ..., minimumZoomFactor: float | None = ..., maximumZoomFactor: float | None = ..., zoomFactor: float | None = ..., exposureTime: float | None = ..., manualExposureTime: float | None = ..., isoSensitivity: int | None = ..., manualIsoSensitivity: int | None = ..., exposureCompensation: float | None = ..., exposureMode: PySide6.QtMultimedia.QCamera.ExposureMode | None = ..., flashReady: bool | None = ..., flashMode: PySide6.QtMultimedia.QCamera.FlashMode | None = ..., torchMode: PySide6.QtMultimedia.QCamera.TorchMode | None = ..., whiteBalanceMode: PySide6.QtMultimedia.QCamera.WhiteBalanceMode | None = ..., colorTemperature: int | None = ..., supportedFeatures: PySide6.QtMultimedia.QCamera.Feature | None = ...) -> None: ...
  386. @typing.overload
  387. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, active: bool | None = ..., cameraDevice: PySide6.QtMultimedia.QCameraDevice | None = ..., error: PySide6.QtMultimedia.QCamera.Error | None = ..., errorString: str | None = ..., cameraFormat: PySide6.QtMultimedia.QCameraFormat | None = ..., focusMode: PySide6.QtMultimedia.QCamera.FocusMode | None = ..., focusPoint: PySide6.QtCore.QPointF | None = ..., customFocusPoint: PySide6.QtCore.QPointF | None = ..., focusDistance: float | None = ..., minimumZoomFactor: float | None = ..., maximumZoomFactor: float | None = ..., zoomFactor: float | None = ..., exposureTime: float | None = ..., manualExposureTime: float | None = ..., isoSensitivity: int | None = ..., manualIsoSensitivity: int | None = ..., exposureCompensation: float | None = ..., exposureMode: PySide6.QtMultimedia.QCamera.ExposureMode | None = ..., flashReady: bool | None = ..., flashMode: PySide6.QtMultimedia.QCamera.FlashMode | None = ..., torchMode: PySide6.QtMultimedia.QCamera.TorchMode | None = ..., whiteBalanceMode: PySide6.QtMultimedia.QCamera.WhiteBalanceMode | None = ..., colorTemperature: int | None = ..., supportedFeatures: PySide6.QtMultimedia.QCamera.Feature | None = ...) -> None: ...
  388. def cameraDevice(self, /) -> PySide6.QtMultimedia.QCameraDevice: ...
  389. def cameraFormat(self, /) -> PySide6.QtMultimedia.QCameraFormat: ...
  390. def captureSession(self, /) -> PySide6.QtMultimedia.QMediaCaptureSession: ...
  391. def colorTemperature(self, /) -> int: ...
  392. def customFocusPoint(self, /) -> PySide6.QtCore.QPointF: ...
  393. def error(self, /) -> PySide6.QtMultimedia.QCamera.Error: ...
  394. def errorString(self, /) -> str: ...
  395. def exposureCompensation(self, /) -> float: ...
  396. def exposureMode(self, /) -> PySide6.QtMultimedia.QCamera.ExposureMode: ...
  397. def exposureTime(self, /) -> float: ...
  398. def flashMode(self, /) -> PySide6.QtMultimedia.QCamera.FlashMode: ...
  399. def focusDistance(self, /) -> float: ...
  400. def focusMode(self, /) -> PySide6.QtMultimedia.QCamera.FocusMode: ...
  401. def focusPoint(self, /) -> PySide6.QtCore.QPointF: ...
  402. def isActive(self, /) -> bool: ...
  403. def isAvailable(self, /) -> bool: ...
  404. def isExposureModeSupported(self, mode: PySide6.QtMultimedia.QCamera.ExposureMode, /) -> bool: ...
  405. def isFlashModeSupported(self, mode: PySide6.QtMultimedia.QCamera.FlashMode, /) -> bool: ...
  406. def isFlashReady(self, /) -> bool: ...
  407. def isFocusModeSupported(self, mode: PySide6.QtMultimedia.QCamera.FocusMode, /) -> bool: ...
  408. def isTorchModeSupported(self, mode: PySide6.QtMultimedia.QCamera.TorchMode, /) -> bool: ...
  409. def isWhiteBalanceModeSupported(self, mode: PySide6.QtMultimedia.QCamera.WhiteBalanceMode, /) -> bool: ...
  410. def isoSensitivity(self, /) -> int: ...
  411. def manualExposureTime(self, /) -> float: ...
  412. def manualIsoSensitivity(self, /) -> int: ...
  413. def maximumExposureTime(self, /) -> float: ...
  414. def maximumIsoSensitivity(self, /) -> int: ...
  415. def maximumZoomFactor(self, /) -> float: ...
  416. def minimumExposureTime(self, /) -> float: ...
  417. def minimumIsoSensitivity(self, /) -> int: ...
  418. def minimumZoomFactor(self, /) -> float: ...
  419. def setActive(self, active: bool, /) -> None: ...
  420. def setAutoExposureTime(self, /) -> None: ...
  421. def setAutoIsoSensitivity(self, /) -> None: ...
  422. def setCameraDevice(self, cameraDevice: PySide6.QtMultimedia.QCameraDevice, /) -> None: ...
  423. def setCameraFormat(self, format: PySide6.QtMultimedia.QCameraFormat, /) -> None: ...
  424. def setColorTemperature(self, colorTemperature: int, /) -> None: ...
  425. def setCustomFocusPoint(self, point: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, /) -> None: ...
  426. def setExposureCompensation(self, ev: float, /) -> None: ...
  427. def setExposureMode(self, mode: PySide6.QtMultimedia.QCamera.ExposureMode, /) -> None: ...
  428. def setFlashMode(self, mode: PySide6.QtMultimedia.QCamera.FlashMode, /) -> None: ...
  429. def setFocusDistance(self, d: float, /) -> None: ...
  430. def setFocusMode(self, mode: PySide6.QtMultimedia.QCamera.FocusMode, /) -> None: ...
  431. def setManualExposureTime(self, seconds: float, /) -> None: ...
  432. def setManualIsoSensitivity(self, iso: int, /) -> None: ...
  433. def setTorchMode(self, mode: PySide6.QtMultimedia.QCamera.TorchMode, /) -> None: ...
  434. def setWhiteBalanceMode(self, mode: PySide6.QtMultimedia.QCamera.WhiteBalanceMode, /) -> None: ...
  435. def setZoomFactor(self, factor: float, /) -> None: ...
  436. def start(self, /) -> None: ...
  437. def stop(self, /) -> None: ...
  438. def supportedFeatures(self, /) -> PySide6.QtMultimedia.QCamera.Feature: ...
  439. def torchMode(self, /) -> PySide6.QtMultimedia.QCamera.TorchMode: ...
  440. def whiteBalanceMode(self, /) -> PySide6.QtMultimedia.QCamera.WhiteBalanceMode: ...
  441. def zoomFactor(self, /) -> float: ...
  442. def zoomTo(self, zoom: float, rate: float, /) -> None: ...
  443. class QCameraDevice(Shiboken.Object):
  444. class Position(enum.Enum):
  445. UnspecifiedPosition = 0x0
  446. BackFace = 0x1
  447. FrontFace = 0x2
  448. @typing.overload
  449. def __init__(self, other: PySide6.QtMultimedia.QCameraDevice, /, *, id: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview | None = ..., description: str | None = ..., isDefault: bool | None = ..., position: PySide6.QtMultimedia.QCameraDevice.Position | None = ..., videoFormats: collections.abc.Sequence[PySide6.QtMultimedia.QCameraFormat] | None = ..., correctionAngle: PySide6.QtMultimedia.QtVideo.Rotation | None = ...) -> None: ...
  450. @typing.overload
  451. def __init__(self, /, *, id: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview | None = ..., description: str | None = ..., isDefault: bool | None = ..., position: PySide6.QtMultimedia.QCameraDevice.Position | None = ..., videoFormats: collections.abc.Sequence[PySide6.QtMultimedia.QCameraFormat] | None = ..., correctionAngle: PySide6.QtMultimedia.QtVideo.Rotation | None = ...) -> None: ...
  452. def __copy__(self, /) -> typing.Self: ...
  453. def __eq__(self, other: PySide6.QtMultimedia.QCameraDevice, /) -> bool: ...
  454. def __ne__(self, other: PySide6.QtMultimedia.QCameraDevice, /) -> bool: ...
  455. def __repr__(self, /) -> str: ...
  456. def correctionAngle(self, /) -> PySide6.QtMultimedia.QtVideo.Rotation: ...
  457. def description(self, /) -> str: ...
  458. def id(self, /) -> PySide6.QtCore.QByteArray: ...
  459. def isDefault(self, /) -> bool: ...
  460. def isNull(self, /) -> bool: ...
  461. def photoResolutions(self, /) -> typing.List[PySide6.QtCore.QSize]: ...
  462. def position(self, /) -> PySide6.QtMultimedia.QCameraDevice.Position: ...
  463. def videoFormats(self, /) -> typing.List[PySide6.QtMultimedia.QCameraFormat]: ...
  464. class QCameraFormat(Shiboken.Object):
  465. @typing.overload
  466. def __init__(self, other: PySide6.QtMultimedia.QCameraFormat, /, *, resolution: PySide6.QtCore.QSize | None = ..., pixelFormat: PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat | None = ..., minFrameRate: float | None = ..., maxFrameRate: float | None = ...) -> None: ...
  467. @typing.overload
  468. def __init__(self, /, *, resolution: PySide6.QtCore.QSize | None = ..., pixelFormat: PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat | None = ..., minFrameRate: float | None = ..., maxFrameRate: float | None = ...) -> None: ...
  469. def __copy__(self, /) -> typing.Self: ...
  470. def __eq__(self, other: PySide6.QtMultimedia.QCameraFormat, /) -> bool: ...
  471. def __ne__(self, other: PySide6.QtMultimedia.QCameraFormat, /) -> bool: ...
  472. def isNull(self, /) -> bool: ...
  473. def maxFrameRate(self, /) -> float: ...
  474. def minFrameRate(self, /) -> float: ...
  475. def pixelFormat(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat: ...
  476. def resolution(self, /) -> PySide6.QtCore.QSize: ...
  477. class QCapturableWindow(Shiboken.Object):
  478. @typing.overload
  479. def __init__(self, window: PySide6.QtGui.QWindow, /, *, description: str | None = ..., isValid: bool | None = ...) -> None: ...
  480. @typing.overload
  481. def __init__(self, other: PySide6.QtMultimedia.QCapturableWindow, /, *, description: str | None = ..., isValid: bool | None = ...) -> None: ...
  482. @typing.overload
  483. def __init__(self, /, *, description: str | None = ..., isValid: bool | None = ...) -> None: ...
  484. def __copy__(self, /) -> typing.Self: ...
  485. def __ne__(self, rhs: PySide6.QtMultimedia.QCapturableWindow, /) -> bool: ...
  486. def description(self, /) -> str: ...
  487. def isValid(self, /) -> bool: ...
  488. def swap(self, other: PySide6.QtMultimedia.QCapturableWindow, /) -> None: ...
  489. class QImageCapture(PySide6.QtCore.QObject):
  490. errorChanged : typing.ClassVar[Signal] = ... # errorChanged()
  491. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(int,QImageCapture::Error,QString)
  492. fileFormatChanged : typing.ClassVar[Signal] = ... # fileFormatChanged()
  493. imageAvailable : typing.ClassVar[Signal] = ... # imageAvailable(int,QVideoFrame)
  494. imageCaptured : typing.ClassVar[Signal] = ... # imageCaptured(int,QImage)
  495. imageExposed : typing.ClassVar[Signal] = ... # imageExposed(int)
  496. imageMetadataAvailable : typing.ClassVar[Signal] = ... # imageMetadataAvailable(int,QMediaMetaData)
  497. imageSaved : typing.ClassVar[Signal] = ... # imageSaved(int,QString)
  498. metaDataChanged : typing.ClassVar[Signal] = ... # metaDataChanged()
  499. qualityChanged : typing.ClassVar[Signal] = ... # qualityChanged()
  500. readyForCaptureChanged : typing.ClassVar[Signal] = ... # readyForCaptureChanged(bool)
  501. resolutionChanged : typing.ClassVar[Signal] = ... # resolutionChanged()
  502. class Error(enum.Enum):
  503. NoError = 0x0
  504. NotReadyError = 0x1
  505. ResourceError = 0x2
  506. OutOfSpaceError = 0x3
  507. NotSupportedFeatureError = 0x4
  508. FormatError = 0x5
  509. class FileFormat(enum.Enum):
  510. UnspecifiedFormat = 0x0
  511. JPEG = 0x1
  512. PNG = 0x2
  513. WebP = 0x3
  514. LastFileFormat = 0x4
  515. Tiff = 0x4
  516. class Quality(enum.Enum):
  517. VeryLowQuality = 0x0
  518. LowQuality = 0x1
  519. NormalQuality = 0x2
  520. HighQuality = 0x3
  521. VeryHighQuality = 0x4
  522. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, readyForCapture: bool | None = ..., metaData: PySide6.QtMultimedia.QMediaMetaData | None = ..., error: PySide6.QtMultimedia.QImageCapture.Error | None = ..., errorString: str | None = ..., fileFormat: PySide6.QtMultimedia.QImageCapture.FileFormat | None = ..., quality: PySide6.QtMultimedia.QImageCapture.Quality | None = ..., supportedFormats: collections.abc.Sequence[PySide6.QtMultimedia.QImageCapture.FileFormat] | None = ...) -> None: ...
  523. def addMetaData(self, metaData: PySide6.QtMultimedia.QMediaMetaData, /) -> None: ...
  524. def capture(self, /) -> int: ...
  525. def captureSession(self, /) -> PySide6.QtMultimedia.QMediaCaptureSession: ...
  526. def captureToFile(self, /, location: str = ...) -> int: ...
  527. def error(self, /) -> PySide6.QtMultimedia.QImageCapture.Error: ...
  528. def errorString(self, /) -> str: ...
  529. def fileFormat(self, /) -> PySide6.QtMultimedia.QImageCapture.FileFormat: ...
  530. @staticmethod
  531. def fileFormatDescription(c: PySide6.QtMultimedia.QImageCapture.FileFormat, /) -> str: ...
  532. @staticmethod
  533. def fileFormatName(c: PySide6.QtMultimedia.QImageCapture.FileFormat, /) -> str: ...
  534. def isAvailable(self, /) -> bool: ...
  535. def isReadyForCapture(self, /) -> bool: ...
  536. def metaData(self, /) -> PySide6.QtMultimedia.QMediaMetaData: ...
  537. def quality(self, /) -> PySide6.QtMultimedia.QImageCapture.Quality: ...
  538. def resolution(self, /) -> PySide6.QtCore.QSize: ...
  539. def setFileFormat(self, format: PySide6.QtMultimedia.QImageCapture.FileFormat, /) -> None: ...
  540. def setMetaData(self, metaData: PySide6.QtMultimedia.QMediaMetaData, /) -> None: ...
  541. def setQuality(self, quality: PySide6.QtMultimedia.QImageCapture.Quality, /) -> None: ...
  542. @typing.overload
  543. def setResolution(self, arg__1: PySide6.QtCore.QSize, /) -> None: ...
  544. @typing.overload
  545. def setResolution(self, width: int, height: int, /) -> None: ...
  546. @staticmethod
  547. def supportedFormats() -> typing.List[PySide6.QtMultimedia.QImageCapture.FileFormat]: ...
  548. class QIntList: ...
  549. class QMediaCaptureSession(PySide6.QtCore.QObject):
  550. audioBufferInputChanged : typing.ClassVar[Signal] = ... # audioBufferInputChanged()
  551. audioInputChanged : typing.ClassVar[Signal] = ... # audioInputChanged()
  552. audioOutputChanged : typing.ClassVar[Signal] = ... # audioOutputChanged()
  553. cameraChanged : typing.ClassVar[Signal] = ... # cameraChanged()
  554. imageCaptureChanged : typing.ClassVar[Signal] = ... # imageCaptureChanged()
  555. recorderChanged : typing.ClassVar[Signal] = ... # recorderChanged()
  556. screenCaptureChanged : typing.ClassVar[Signal] = ... # screenCaptureChanged()
  557. videoFrameInputChanged : typing.ClassVar[Signal] = ... # videoFrameInputChanged()
  558. videoOutputChanged : typing.ClassVar[Signal] = ... # videoOutputChanged()
  559. windowCaptureChanged : typing.ClassVar[Signal] = ... # windowCaptureChanged()
  560. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, audioInput: PySide6.QtMultimedia.QAudioInput | None = ..., audioBufferInput: PySide6.QtMultimedia.QAudioBufferInput | None = ..., audioOutput: PySide6.QtMultimedia.QAudioOutput | None = ..., camera: PySide6.QtMultimedia.QCamera | None = ..., screenCapture: PySide6.QtMultimedia.QScreenCapture | None = ..., windowCapture: PySide6.QtMultimedia.QWindowCapture | None = ..., videoFrameInput: PySide6.QtMultimedia.QVideoFrameInput | None = ..., imageCapture: PySide6.QtMultimedia.QImageCapture | None = ..., recorder: PySide6.QtMultimedia.QMediaRecorder | None = ..., videoOutput: PySide6.QtCore.QObject | None = ...) -> None: ...
  561. def audioBufferInput(self, /) -> PySide6.QtMultimedia.QAudioBufferInput: ...
  562. def audioInput(self, /) -> PySide6.QtMultimedia.QAudioInput: ...
  563. def audioOutput(self, /) -> PySide6.QtMultimedia.QAudioOutput: ...
  564. def camera(self, /) -> PySide6.QtMultimedia.QCamera: ...
  565. def imageCapture(self, /) -> PySide6.QtMultimedia.QImageCapture: ...
  566. def recorder(self, /) -> PySide6.QtMultimedia.QMediaRecorder: ...
  567. def screenCapture(self, /) -> PySide6.QtMultimedia.QScreenCapture: ...
  568. def setAudioBufferInput(self, input: PySide6.QtMultimedia.QAudioBufferInput, /) -> None: ...
  569. def setAudioInput(self, input: PySide6.QtMultimedia.QAudioInput, /) -> None: ...
  570. def setAudioOutput(self, output: PySide6.QtMultimedia.QAudioOutput, /) -> None: ...
  571. def setCamera(self, camera: PySide6.QtMultimedia.QCamera, /) -> None: ...
  572. def setImageCapture(self, imageCapture: PySide6.QtMultimedia.QImageCapture, /) -> None: ...
  573. def setRecorder(self, recorder: PySide6.QtMultimedia.QMediaRecorder, /) -> None: ...
  574. def setScreenCapture(self, screenCapture: PySide6.QtMultimedia.QScreenCapture, /) -> None: ...
  575. def setVideoFrameInput(self, input: PySide6.QtMultimedia.QVideoFrameInput, /) -> None: ...
  576. def setVideoOutput(self, output: PySide6.QtCore.QObject, /) -> None: ...
  577. def setVideoSink(self, sink: PySide6.QtMultimedia.QVideoSink, /) -> None: ...
  578. def setWindowCapture(self, windowCapture: PySide6.QtMultimedia.QWindowCapture, /) -> None: ...
  579. def videoFrameInput(self, /) -> PySide6.QtMultimedia.QVideoFrameInput: ...
  580. def videoOutput(self, /) -> PySide6.QtCore.QObject: ...
  581. def videoSink(self, /) -> PySide6.QtMultimedia.QVideoSink: ...
  582. def windowCapture(self, /) -> PySide6.QtMultimedia.QWindowCapture: ...
  583. class QMediaDevices(PySide6.QtCore.QObject):
  584. audioInputsChanged : typing.ClassVar[Signal] = ... # audioInputsChanged()
  585. audioOutputsChanged : typing.ClassVar[Signal] = ... # audioOutputsChanged()
  586. videoInputsChanged : typing.ClassVar[Signal] = ... # videoInputsChanged()
  587. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, audioInputs: collections.abc.Sequence[PySide6.QtMultimedia.QAudioDevice] | None = ..., audioOutputs: collections.abc.Sequence[PySide6.QtMultimedia.QAudioDevice] | None = ..., videoInputs: collections.abc.Sequence[PySide6.QtMultimedia.QCameraDevice] | None = ..., defaultAudioInput: PySide6.QtMultimedia.QAudioDevice | None = ..., defaultAudioOutput: PySide6.QtMultimedia.QAudioDevice | None = ..., defaultVideoInput: PySide6.QtMultimedia.QCameraDevice | None = ...) -> None: ...
  588. @staticmethod
  589. def audioInputs() -> typing.List[PySide6.QtMultimedia.QAudioDevice]: ...
  590. @staticmethod
  591. def audioOutputs() -> typing.List[PySide6.QtMultimedia.QAudioDevice]: ...
  592. def connectNotify(self, signal: PySide6.QtCore.QMetaMethod, /) -> None: ...
  593. @staticmethod
  594. def defaultAudioInput() -> PySide6.QtMultimedia.QAudioDevice: ...
  595. @staticmethod
  596. def defaultAudioOutput() -> PySide6.QtMultimedia.QAudioDevice: ...
  597. @staticmethod
  598. def defaultVideoInput() -> PySide6.QtMultimedia.QCameraDevice: ...
  599. @staticmethod
  600. def videoInputs() -> typing.List[PySide6.QtMultimedia.QCameraDevice]: ...
  601. class QMediaFormat(Shiboken.Object):
  602. class AudioCodec(enum.Enum):
  603. Unspecified = -1
  604. MP3 = 0x0
  605. AAC = 0x1
  606. AC3 = 0x2
  607. EAC3 = 0x3
  608. FLAC = 0x4
  609. DolbyTrueHD = 0x5
  610. Opus = 0x6
  611. Vorbis = 0x7
  612. Wave = 0x8
  613. WMA = 0x9
  614. ALAC = 0xa
  615. LastAudioCodec = 0xa
  616. class ConversionMode(enum.Enum):
  617. Encode = 0x0
  618. Decode = 0x1
  619. class FileFormat(enum.Enum):
  620. UnspecifiedFormat = -1
  621. WMV = 0x0
  622. AVI = 0x1
  623. Matroska = 0x2
  624. MPEG4 = 0x3
  625. Ogg = 0x4
  626. QuickTime = 0x5
  627. WebM = 0x6
  628. Mpeg4Audio = 0x7
  629. AAC = 0x8
  630. WMA = 0x9
  631. MP3 = 0xa
  632. FLAC = 0xb
  633. LastFileFormat = 0xc
  634. Wave = 0xc
  635. class ResolveFlags(enum.Enum):
  636. NoFlags = 0x0
  637. RequiresVideo = 0x1
  638. class VideoCodec(enum.Enum):
  639. Unspecified = -1
  640. MPEG1 = 0x0
  641. MPEG2 = 0x1
  642. MPEG4 = 0x2
  643. H264 = 0x3
  644. H265 = 0x4
  645. VP8 = 0x5
  646. VP9 = 0x6
  647. AV1 = 0x7
  648. Theora = 0x8
  649. WMV = 0x9
  650. LastVideoCodec = 0xa
  651. MotionJPEG = 0xa
  652. @typing.overload
  653. def __init__(self, /, format: PySide6.QtMultimedia.QMediaFormat.FileFormat = ..., *, fileFormat: PySide6.QtMultimedia.QMediaFormat.FileFormat | None = ..., audioCodec: PySide6.QtMultimedia.QMediaFormat.AudioCodec | None = ..., videoCodec: PySide6.QtMultimedia.QMediaFormat.VideoCodec | None = ...) -> None: ...
  654. @typing.overload
  655. def __init__(self, other: PySide6.QtMultimedia.QMediaFormat, /, *, fileFormat: PySide6.QtMultimedia.QMediaFormat.FileFormat | None = ..., audioCodec: PySide6.QtMultimedia.QMediaFormat.AudioCodec | None = ..., videoCodec: PySide6.QtMultimedia.QMediaFormat.VideoCodec | None = ...) -> None: ...
  656. def __copy__(self, /) -> typing.Self: ...
  657. def __eq__(self, other: PySide6.QtMultimedia.QMediaFormat | PySide6.QtMultimedia.QMediaFormat.FileFormat, /) -> bool: ...
  658. def __ne__(self, other: PySide6.QtMultimedia.QMediaFormat | PySide6.QtMultimedia.QMediaFormat.FileFormat, /) -> bool: ...
  659. def audioCodec(self, /) -> PySide6.QtMultimedia.QMediaFormat.AudioCodec: ...
  660. @staticmethod
  661. def audioCodecDescription(codec: PySide6.QtMultimedia.QMediaFormat.AudioCodec, /) -> str: ...
  662. @staticmethod
  663. def audioCodecName(codec: PySide6.QtMultimedia.QMediaFormat.AudioCodec, /) -> str: ...
  664. def fileFormat(self, /) -> PySide6.QtMultimedia.QMediaFormat.FileFormat: ...
  665. @staticmethod
  666. def fileFormatDescription(fileFormat: PySide6.QtMultimedia.QMediaFormat.FileFormat, /) -> str: ...
  667. @staticmethod
  668. def fileFormatName(fileFormat: PySide6.QtMultimedia.QMediaFormat.FileFormat, /) -> str: ...
  669. def isSupported(self, mode: PySide6.QtMultimedia.QMediaFormat.ConversionMode, /) -> bool: ...
  670. def mimeType(self, /) -> PySide6.QtCore.QMimeType: ...
  671. def resolveForEncoding(self, flags: PySide6.QtMultimedia.QMediaFormat.ResolveFlags, /) -> None: ...
  672. def setAudioCodec(self, codec: PySide6.QtMultimedia.QMediaFormat.AudioCodec, /) -> None: ...
  673. def setFileFormat(self, f: PySide6.QtMultimedia.QMediaFormat.FileFormat, /) -> None: ...
  674. def setVideoCodec(self, codec: PySide6.QtMultimedia.QMediaFormat.VideoCodec, /) -> None: ...
  675. def supportedAudioCodecs(self, m: PySide6.QtMultimedia.QMediaFormat.ConversionMode, /) -> typing.List[PySide6.QtMultimedia.QMediaFormat.AudioCodec]: ...
  676. def supportedFileFormats(self, m: PySide6.QtMultimedia.QMediaFormat.ConversionMode, /) -> typing.List[PySide6.QtMultimedia.QMediaFormat.FileFormat]: ...
  677. def supportedVideoCodecs(self, m: PySide6.QtMultimedia.QMediaFormat.ConversionMode, /) -> typing.List[PySide6.QtMultimedia.QMediaFormat.VideoCodec]: ...
  678. def swap(self, other: PySide6.QtMultimedia.QMediaFormat | PySide6.QtMultimedia.QMediaFormat.FileFormat, /) -> None: ...
  679. def videoCodec(self, /) -> PySide6.QtMultimedia.QMediaFormat.VideoCodec: ...
  680. @staticmethod
  681. def videoCodecDescription(codec: PySide6.QtMultimedia.QMediaFormat.VideoCodec, /) -> str: ...
  682. @staticmethod
  683. def videoCodecName(codec: PySide6.QtMultimedia.QMediaFormat.VideoCodec, /) -> str: ...
  684. class QMediaMetaData(Shiboken.Object):
  685. class Key(enum.Enum):
  686. Title = 0x0
  687. Author = 0x1
  688. Comment = 0x2
  689. Description = 0x3
  690. Genre = 0x4
  691. Date = 0x5
  692. Language = 0x6
  693. Publisher = 0x7
  694. Copyright = 0x8
  695. Url = 0x9
  696. Duration = 0xa
  697. MediaType = 0xb
  698. FileFormat = 0xc
  699. AudioBitRate = 0xd
  700. AudioCodec = 0xe
  701. VideoBitRate = 0xf
  702. VideoCodec = 0x10
  703. VideoFrameRate = 0x11
  704. AlbumTitle = 0x12
  705. AlbumArtist = 0x13
  706. ContributingArtist = 0x14
  707. TrackNumber = 0x15
  708. Composer = 0x16
  709. LeadPerformer = 0x17
  710. ThumbnailImage = 0x18
  711. CoverArtImage = 0x19
  712. Orientation = 0x1a
  713. Resolution = 0x1b
  714. HasHdrContent = 0x1c
  715. @typing.overload
  716. def __init__(self, /) -> None: ...
  717. @typing.overload
  718. def __init__(self, QMediaMetaData: PySide6.QtMultimedia.QMediaMetaData, /) -> None: ...
  719. def __copy__(self, /) -> typing.Self: ...
  720. def __eq__(self, b: PySide6.QtMultimedia.QMediaMetaData, /) -> bool: ...
  721. def __ne__(self, b: PySide6.QtMultimedia.QMediaMetaData, /) -> bool: ...
  722. def clear(self, /) -> None: ...
  723. def insert(self, k: PySide6.QtMultimedia.QMediaMetaData.Key, value: typing.Any, /) -> None: ...
  724. def isEmpty(self, /) -> bool: ...
  725. @staticmethod
  726. def keyType(key: PySide6.QtMultimedia.QMediaMetaData.Key, /) -> PySide6.QtCore.QMetaType: ...
  727. def keys(self, /) -> typing.List[PySide6.QtMultimedia.QMediaMetaData.Key]: ...
  728. @staticmethod
  729. def metaDataKeyToString(k: PySide6.QtMultimedia.QMediaMetaData.Key, /) -> str: ...
  730. def remove(self, k: PySide6.QtMultimedia.QMediaMetaData.Key, /) -> None: ...
  731. def stringValue(self, k: PySide6.QtMultimedia.QMediaMetaData.Key, /) -> str: ...
  732. def value(self, k: PySide6.QtMultimedia.QMediaMetaData.Key, /) -> typing.Any: ...
  733. class QMediaPlayer(PySide6.QtCore.QObject):
  734. activeTracksChanged : typing.ClassVar[Signal] = ... # activeTracksChanged()
  735. audioBufferOutputChanged : typing.ClassVar[Signal] = ... # audioBufferOutputChanged()
  736. audioOutputChanged : typing.ClassVar[Signal] = ... # audioOutputChanged()
  737. bufferProgressChanged : typing.ClassVar[Signal] = ... # bufferProgressChanged(float)
  738. durationChanged : typing.ClassVar[Signal] = ... # durationChanged(qlonglong)
  739. errorChanged : typing.ClassVar[Signal] = ... # errorChanged()
  740. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QMediaPlayer::Error,QString)
  741. hasAudioChanged : typing.ClassVar[Signal] = ... # hasAudioChanged(bool)
  742. hasVideoChanged : typing.ClassVar[Signal] = ... # hasVideoChanged(bool)
  743. loopsChanged : typing.ClassVar[Signal] = ... # loopsChanged()
  744. mediaStatusChanged : typing.ClassVar[Signal] = ... # mediaStatusChanged(QMediaPlayer::MediaStatus)
  745. metaDataChanged : typing.ClassVar[Signal] = ... # metaDataChanged()
  746. pitchCompensationChanged : typing.ClassVar[Signal] = ... # pitchCompensationChanged(bool)
  747. playbackOptionsChanged : typing.ClassVar[Signal] = ... # playbackOptionsChanged()
  748. playbackRateChanged : typing.ClassVar[Signal] = ... # playbackRateChanged(double)
  749. playbackStateChanged : typing.ClassVar[Signal] = ... # playbackStateChanged(QMediaPlayer::PlaybackState)
  750. playingChanged : typing.ClassVar[Signal] = ... # playingChanged(bool)
  751. positionChanged : typing.ClassVar[Signal] = ... # positionChanged(qlonglong)
  752. seekableChanged : typing.ClassVar[Signal] = ... # seekableChanged(bool)
  753. sourceChanged : typing.ClassVar[Signal] = ... # sourceChanged(QUrl)
  754. tracksChanged : typing.ClassVar[Signal] = ... # tracksChanged()
  755. videoOutputChanged : typing.ClassVar[Signal] = ... # videoOutputChanged()
  756. class Error(enum.Enum):
  757. NoError = 0x0
  758. ResourceError = 0x1
  759. FormatError = 0x2
  760. NetworkError = 0x3
  761. AccessDeniedError = 0x4
  762. class Loops(enum.IntEnum):
  763. Infinite = -1
  764. Once = 0x1
  765. class MediaStatus(enum.Enum):
  766. NoMedia = 0x0
  767. LoadingMedia = 0x1
  768. LoadedMedia = 0x2
  769. StalledMedia = 0x3
  770. BufferingMedia = 0x4
  771. BufferedMedia = 0x5
  772. EndOfMedia = 0x6
  773. InvalidMedia = 0x7
  774. class PitchCompensationAvailability(enum.Enum):
  775. AlwaysOn = 0x0
  776. Available = 0x1
  777. Unavailable = 0x2
  778. class PlaybackState(enum.Enum):
  779. StoppedState = 0x0
  780. PlayingState = 0x1
  781. PausedState = 0x2
  782. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, source: PySide6.QtCore.QUrl | None = ..., duration: int | None = ..., position: int | None = ..., bufferProgress: float | None = ..., hasAudio: bool | None = ..., hasVideo: bool | None = ..., seekable: bool | None = ..., playing: bool | None = ..., playbackRate: float | None = ..., loops: int | None = ..., playbackState: PySide6.QtMultimedia.QMediaPlayer.PlaybackState | None = ..., mediaStatus: PySide6.QtMultimedia.QMediaPlayer.MediaStatus | None = ..., metaData: PySide6.QtMultimedia.QMediaMetaData | None = ..., error: PySide6.QtMultimedia.QMediaPlayer.Error | None = ..., errorString: str | None = ..., videoOutput: PySide6.QtCore.QObject | None = ..., audioOutput: PySide6.QtMultimedia.QAudioOutput | None = ..., audioBufferOutput: PySide6.QtMultimedia.QAudioBufferOutput | None = ..., audioTracks: collections.abc.Sequence[PySide6.QtMultimedia.QMediaMetaData] | None = ..., videoTracks: collections.abc.Sequence[PySide6.QtMultimedia.QMediaMetaData] | None = ..., subtitleTracks: collections.abc.Sequence[PySide6.QtMultimedia.QMediaMetaData] | None = ..., activeAudioTrack: int | None = ..., activeVideoTrack: int | None = ..., activeSubtitleTrack: int | None = ..., pitchCompensationAvailability: PySide6.QtMultimedia.QMediaPlayer.PitchCompensationAvailability | None = ..., pitchCompensation: bool | None = ..., playbackOptions: PySide6.QtMultimedia.QPlaybackOptions | None = ...) -> None: ...
  783. def activeAudioTrack(self, /) -> int: ...
  784. def activeSubtitleTrack(self, /) -> int: ...
  785. def activeVideoTrack(self, /) -> int: ...
  786. def audioBufferOutput(self, /) -> PySide6.QtMultimedia.QAudioBufferOutput: ...
  787. def audioOutput(self, /) -> PySide6.QtMultimedia.QAudioOutput: ...
  788. def audioTracks(self, /) -> typing.List[PySide6.QtMultimedia.QMediaMetaData]: ...
  789. def bufferProgress(self, /) -> float: ...
  790. def bufferedTimeRange(self, /) -> PySide6.QtMultimedia.QMediaTimeRange: ...
  791. def duration(self, /) -> int: ...
  792. def error(self, /) -> PySide6.QtMultimedia.QMediaPlayer.Error: ...
  793. def errorString(self, /) -> str: ...
  794. def hasAudio(self, /) -> bool: ...
  795. def hasVideo(self, /) -> bool: ...
  796. def isAvailable(self, /) -> bool: ...
  797. def isPlaying(self, /) -> bool: ...
  798. def isSeekable(self, /) -> bool: ...
  799. def loops(self, /) -> int: ...
  800. def mediaStatus(self, /) -> PySide6.QtMultimedia.QMediaPlayer.MediaStatus: ...
  801. def metaData(self, /) -> PySide6.QtMultimedia.QMediaMetaData: ...
  802. def pause(self, /) -> None: ...
  803. def pitchCompensation(self, /) -> bool: ...
  804. def pitchCompensationAvailability(self, /) -> PySide6.QtMultimedia.QMediaPlayer.PitchCompensationAvailability: ...
  805. def play(self, /) -> None: ...
  806. def playbackOptions(self, /) -> PySide6.QtMultimedia.QPlaybackOptions: ...
  807. def playbackRate(self, /) -> float: ...
  808. def playbackState(self, /) -> PySide6.QtMultimedia.QMediaPlayer.PlaybackState: ...
  809. def position(self, /) -> int: ...
  810. def resetPlaybackOptions(self, /) -> None: ...
  811. def setActiveAudioTrack(self, index: int, /) -> None: ...
  812. def setActiveSubtitleTrack(self, index: int, /) -> None: ...
  813. def setActiveVideoTrack(self, index: int, /) -> None: ...
  814. def setAudioBufferOutput(self, output: PySide6.QtMultimedia.QAudioBufferOutput, /) -> None: ...
  815. def setAudioOutput(self, output: PySide6.QtMultimedia.QAudioOutput, /) -> None: ...
  816. def setLoops(self, loops: int, /) -> None: ...
  817. def setPitchCompensation(self, arg__1: bool, /) -> None: ...
  818. def setPlaybackOptions(self, options: PySide6.QtMultimedia.QPlaybackOptions, /) -> None: ...
  819. def setPlaybackRate(self, rate: float, /) -> None: ...
  820. def setPosition(self, position: int, /) -> None: ...
  821. def setSource(self, source: PySide6.QtCore.QUrl | str, /) -> None: ...
  822. def setSourceDevice(self, device: PySide6.QtCore.QIODevice, /, sourceUrl: PySide6.QtCore.QUrl | str = ...) -> None: ...
  823. def setVideoOutput(self, arg__1: PySide6.QtCore.QObject, /) -> None: ...
  824. def setVideoSink(self, sink: PySide6.QtMultimedia.QVideoSink, /) -> None: ...
  825. def source(self, /) -> PySide6.QtCore.QUrl: ...
  826. def sourceDevice(self, /) -> PySide6.QtCore.QIODevice: ...
  827. def stop(self, /) -> None: ...
  828. def subtitleTracks(self, /) -> typing.List[PySide6.QtMultimedia.QMediaMetaData]: ...
  829. def videoOutput(self, /) -> PySide6.QtCore.QObject: ...
  830. def videoSink(self, /) -> PySide6.QtMultimedia.QVideoSink: ...
  831. def videoTracks(self, /) -> typing.List[PySide6.QtMultimedia.QMediaMetaData]: ...
  832. class QMediaRecorder(PySide6.QtCore.QObject):
  833. actualLocationChanged : typing.ClassVar[Signal] = ... # actualLocationChanged(QUrl)
  834. audioBitRateChanged : typing.ClassVar[Signal] = ... # audioBitRateChanged()
  835. audioChannelCountChanged : typing.ClassVar[Signal] = ... # audioChannelCountChanged()
  836. audioSampleRateChanged : typing.ClassVar[Signal] = ... # audioSampleRateChanged()
  837. autoStopChanged : typing.ClassVar[Signal] = ... # autoStopChanged()
  838. durationChanged : typing.ClassVar[Signal] = ... # durationChanged(qlonglong)
  839. encoderSettingsChanged : typing.ClassVar[Signal] = ... # encoderSettingsChanged()
  840. encodingModeChanged : typing.ClassVar[Signal] = ... # encodingModeChanged()
  841. errorChanged : typing.ClassVar[Signal] = ... # errorChanged()
  842. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(Error,QString)
  843. mediaFormatChanged : typing.ClassVar[Signal] = ... # mediaFormatChanged()
  844. metaDataChanged : typing.ClassVar[Signal] = ... # metaDataChanged()
  845. qualityChanged : typing.ClassVar[Signal] = ... # qualityChanged()
  846. recorderStateChanged : typing.ClassVar[Signal] = ... # recorderStateChanged(RecorderState)
  847. videoBitRateChanged : typing.ClassVar[Signal] = ... # videoBitRateChanged()
  848. videoFrameRateChanged : typing.ClassVar[Signal] = ... # videoFrameRateChanged()
  849. videoResolutionChanged : typing.ClassVar[Signal] = ... # videoResolutionChanged()
  850. class EncodingMode(enum.Enum):
  851. ConstantQualityEncoding = 0x0
  852. ConstantBitRateEncoding = 0x1
  853. AverageBitRateEncoding = 0x2
  854. TwoPassEncoding = 0x3
  855. class Error(enum.Enum):
  856. NoError = 0x0
  857. ResourceError = 0x1
  858. FormatError = 0x2
  859. OutOfSpaceError = 0x3
  860. LocationNotWritable = 0x4
  861. class Quality(enum.Enum):
  862. VeryLowQuality = 0x0
  863. LowQuality = 0x1
  864. NormalQuality = 0x2
  865. HighQuality = 0x3
  866. VeryHighQuality = 0x4
  867. class RecorderState(enum.Enum):
  868. StoppedState = 0x0
  869. RecordingState = 0x1
  870. PausedState = 0x2
  871. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, recorderState: PySide6.QtMultimedia.QMediaRecorder.RecorderState | None = ..., duration: int | None = ..., outputLocation: PySide6.QtCore.QUrl | None = ..., actualLocation: PySide6.QtCore.QUrl | None = ..., metaData: PySide6.QtMultimedia.QMediaMetaData | None = ..., error: PySide6.QtMultimedia.QMediaRecorder.Error | None = ..., errorString: str | None = ..., mediaFormat: PySide6.QtMultimedia.QMediaFormat | None = ..., quality: PySide6.QtMultimedia.QMediaRecorder.Quality | None = ..., encodingMode: PySide6.QtMultimedia.QMediaRecorder.EncodingMode | None = ..., videoResolution: PySide6.QtCore.QSize | None = ..., videoFrameRate: float | None = ..., videoBitRate: int | None = ..., audioBitRate: int | None = ..., audioChannelCount: int | None = ..., audioSampleRate: int | None = ..., autoStop: bool | None = ...) -> None: ...
  872. def actualLocation(self, /) -> PySide6.QtCore.QUrl: ...
  873. def addMetaData(self, metaData: PySide6.QtMultimedia.QMediaMetaData, /) -> None: ...
  874. def audioBitRate(self, /) -> int: ...
  875. def audioChannelCount(self, /) -> int: ...
  876. def audioSampleRate(self, /) -> int: ...
  877. def autoStop(self, /) -> bool: ...
  878. def captureSession(self, /) -> PySide6.QtMultimedia.QMediaCaptureSession: ...
  879. def duration(self, /) -> int: ...
  880. def encodingMode(self, /) -> PySide6.QtMultimedia.QMediaRecorder.EncodingMode: ...
  881. def error(self, /) -> PySide6.QtMultimedia.QMediaRecorder.Error: ...
  882. def errorString(self, /) -> str: ...
  883. def isAvailable(self, /) -> bool: ...
  884. def mediaFormat(self, /) -> PySide6.QtMultimedia.QMediaFormat: ...
  885. def metaData(self, /) -> PySide6.QtMultimedia.QMediaMetaData: ...
  886. def outputDevice(self, /) -> PySide6.QtCore.QIODevice: ...
  887. def outputLocation(self, /) -> PySide6.QtCore.QUrl: ...
  888. def pause(self, /) -> None: ...
  889. def quality(self, /) -> PySide6.QtMultimedia.QMediaRecorder.Quality: ...
  890. def record(self, /) -> None: ...
  891. def recorderState(self, /) -> PySide6.QtMultimedia.QMediaRecorder.RecorderState: ...
  892. def setAudioBitRate(self, bitRate: int, /) -> None: ...
  893. def setAudioChannelCount(self, channels: int, /) -> None: ...
  894. def setAudioSampleRate(self, sampleRate: int, /) -> None: ...
  895. def setAutoStop(self, autoStop: bool, /) -> None: ...
  896. def setEncodingMode(self, arg__1: PySide6.QtMultimedia.QMediaRecorder.EncodingMode, /) -> None: ...
  897. def setMediaFormat(self, format: PySide6.QtMultimedia.QMediaFormat | PySide6.QtMultimedia.QMediaFormat.FileFormat, /) -> None: ...
  898. def setMetaData(self, metaData: PySide6.QtMultimedia.QMediaMetaData, /) -> None: ...
  899. def setOutputDevice(self, device: PySide6.QtCore.QIODevice, /) -> None: ...
  900. def setOutputLocation(self, location: PySide6.QtCore.QUrl | str, /) -> None: ...
  901. def setQuality(self, quality: PySide6.QtMultimedia.QMediaRecorder.Quality, /) -> None: ...
  902. def setVideoBitRate(self, bitRate: int, /) -> None: ...
  903. def setVideoFrameRate(self, frameRate: float, /) -> None: ...
  904. @typing.overload
  905. def setVideoResolution(self, arg__1: PySide6.QtCore.QSize, /) -> None: ...
  906. @typing.overload
  907. def setVideoResolution(self, width: int, height: int, /) -> None: ...
  908. def stop(self, /) -> None: ...
  909. def videoBitRate(self, /) -> int: ...
  910. def videoFrameRate(self, /) -> float: ...
  911. def videoResolution(self, /) -> PySide6.QtCore.QSize: ...
  912. class QMediaTimeRange(Shiboken.Object):
  913. class Interval(Shiboken.Object):
  914. @typing.overload
  915. def __init__(self, /) -> None: ...
  916. @typing.overload
  917. def __init__(self, Interval: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> None: ...
  918. @typing.overload
  919. def __init__(self, start: int, end: int, /) -> None: ...
  920. def __copy__(self, /) -> typing.Self: ...
  921. def __eq__(self, rhs: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> bool: ...
  922. def __ne__(self, rhs: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> bool: ...
  923. def __repr__(self, /) -> str: ...
  924. def contains(self, time: int, /) -> bool: ...
  925. def end(self, /) -> int: ...
  926. def isNormal(self, /) -> bool: ...
  927. def normalized(self, /) -> PySide6.QtMultimedia.QMediaTimeRange.Interval: ...
  928. def start(self, /) -> int: ...
  929. def translated(self, offset: int, /) -> PySide6.QtMultimedia.QMediaTimeRange.Interval: ...
  930. @typing.overload
  931. def __init__(self, /) -> None: ...
  932. @typing.overload
  933. def __init__(self, arg__1: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> None: ...
  934. @typing.overload
  935. def __init__(self, range: PySide6.QtMultimedia.QMediaTimeRange, /) -> None: ...
  936. @typing.overload
  937. def __init__(self, start: int, end: int, /) -> None: ...
  938. def __add__(self, r2: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> PySide6.QtMultimedia.QMediaTimeRange: ...
  939. def __copy__(self, /) -> typing.Self: ...
  940. def __eq__(self, rhs: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> bool: ...
  941. @typing.overload # type: ignore[misc]
  942. def __iadd__(self, arg__1: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> PySide6.QtMultimedia.QMediaTimeRange: ...
  943. @typing.overload
  944. def __iadd__(self, arg__1: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> PySide6.QtMultimedia.QMediaTimeRange: ...
  945. @typing.overload # type: ignore[misc]
  946. def __isub__(self, arg__1: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> PySide6.QtMultimedia.QMediaTimeRange: ...
  947. @typing.overload
  948. def __isub__(self, arg__1: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> PySide6.QtMultimedia.QMediaTimeRange: ...
  949. def __ne__(self, rhs: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> bool: ...
  950. def __repr__(self, /) -> str: ...
  951. def __sub__(self, r2: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> PySide6.QtMultimedia.QMediaTimeRange: ...
  952. @typing.overload
  953. def addInterval(self, interval: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> None: ...
  954. @typing.overload
  955. def addInterval(self, start: int, end: int, /) -> None: ...
  956. def addTimeRange(self, arg__1: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> None: ...
  957. def clear(self, /) -> None: ...
  958. def contains(self, time: int, /) -> bool: ...
  959. def earliestTime(self, /) -> int: ...
  960. def intervals(self, /) -> typing.List[PySide6.QtMultimedia.QMediaTimeRange.Interval]: ...
  961. def isContinuous(self, /) -> bool: ...
  962. def isEmpty(self, /) -> bool: ...
  963. def latestTime(self, /) -> int: ...
  964. @typing.overload
  965. def removeInterval(self, interval: PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> None: ...
  966. @typing.overload
  967. def removeInterval(self, start: int, end: int, /) -> None: ...
  968. def removeTimeRange(self, arg__1: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> None: ...
  969. def swap(self, other: PySide6.QtMultimedia.QMediaTimeRange | PySide6.QtMultimedia.QMediaTimeRange.Interval, /) -> None: ...
  970. class QPlaybackOptions(Shiboken.Object):
  971. class PlaybackIntent(enum.Enum):
  972. Playback = 0x0
  973. LowLatencyStreaming = 0x1
  974. @typing.overload
  975. def __init__(self, arg__1: PySide6.QtMultimedia.QPlaybackOptions, /, *, networkTimeout: int | None = ..., playbackIntent: PySide6.QtMultimedia.QPlaybackOptions.PlaybackIntent | None = ..., probeSize: int | None = ...) -> None: ...
  976. @typing.overload
  977. def __init__(self, /, *, networkTimeout: int | None = ..., playbackIntent: PySide6.QtMultimedia.QPlaybackOptions.PlaybackIntent | None = ..., probeSize: int | None = ...) -> None: ...
  978. def __copy__(self, /) -> typing.Self: ...
  979. def __eq__(self, rhs: PySide6.QtMultimedia.QPlaybackOptions, /) -> bool: ...
  980. def __ge__(self, rhs: PySide6.QtMultimedia.QPlaybackOptions, /) -> bool: ...
  981. def __gt__(self, rhs: PySide6.QtMultimedia.QPlaybackOptions, /) -> bool: ...
  982. def __le__(self, rhs: PySide6.QtMultimedia.QPlaybackOptions, /) -> bool: ...
  983. def __lt__(self, rhs: PySide6.QtMultimedia.QPlaybackOptions, /) -> bool: ...
  984. def __ne__(self, rhs: PySide6.QtMultimedia.QPlaybackOptions, /) -> bool: ...
  985. def networkTimeout(self, /) -> int: ...
  986. def playbackIntent(self, /) -> PySide6.QtMultimedia.QPlaybackOptions.PlaybackIntent: ...
  987. def probeSize(self, /) -> int: ...
  988. def resetNetworkTimeout(self, /) -> None: ...
  989. def resetPlaybackIntent(self, /) -> None: ...
  990. def resetProbeSize(self, /) -> None: ...
  991. def setNetworkTimeout(self, timeout: int, /) -> None: ...
  992. def setPlaybackIntent(self, intent: PySide6.QtMultimedia.QPlaybackOptions.PlaybackIntent, /) -> None: ...
  993. def setProbeSize(self, probeSizeBytes: int, /) -> None: ...
  994. def swap(self, other: PySide6.QtMultimedia.QPlaybackOptions, /) -> None: ...
  995. class QScreenCapture(PySide6.QtCore.QObject):
  996. activeChanged : typing.ClassVar[Signal] = ... # activeChanged(bool)
  997. errorChanged : typing.ClassVar[Signal] = ... # errorChanged()
  998. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QScreenCapture::Error,QString)
  999. screenChanged : typing.ClassVar[Signal] = ... # screenChanged(QScreen*)
  1000. class Error(enum.Enum):
  1001. NoError = 0x0
  1002. InternalError = 0x1
  1003. CapturingNotSupported = 0x2
  1004. CaptureFailed = 0x4
  1005. NotFound = 0x5
  1006. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, active: bool | None = ..., screen: PySide6.QtGui.QScreen | None = ..., error: PySide6.QtMultimedia.QScreenCapture.Error | None = ..., errorString: str | None = ...) -> None: ...
  1007. def captureSession(self, /) -> PySide6.QtMultimedia.QMediaCaptureSession: ...
  1008. def error(self, /) -> PySide6.QtMultimedia.QScreenCapture.Error: ...
  1009. def errorString(self, /) -> str: ...
  1010. def isActive(self, /) -> bool: ...
  1011. def screen(self, /) -> PySide6.QtGui.QScreen: ...
  1012. def setActive(self, active: bool, /) -> None: ...
  1013. def setScreen(self, screen: PySide6.QtGui.QScreen, /) -> None: ...
  1014. def start(self, /) -> None: ...
  1015. def stop(self, /) -> None: ...
  1016. class QSoundEffect(PySide6.QtCore.QObject):
  1017. audioDeviceChanged : typing.ClassVar[Signal] = ... # audioDeviceChanged()
  1018. loadedChanged : typing.ClassVar[Signal] = ... # loadedChanged()
  1019. loopCountChanged : typing.ClassVar[Signal] = ... # loopCountChanged()
  1020. loopsRemainingChanged : typing.ClassVar[Signal] = ... # loopsRemainingChanged()
  1021. mutedChanged : typing.ClassVar[Signal] = ... # mutedChanged()
  1022. playingChanged : typing.ClassVar[Signal] = ... # playingChanged()
  1023. sourceChanged : typing.ClassVar[Signal] = ... # sourceChanged()
  1024. statusChanged : typing.ClassVar[Signal] = ... # statusChanged()
  1025. volumeChanged : typing.ClassVar[Signal] = ... # volumeChanged()
  1026. class Loop(enum.Enum):
  1027. Infinite = -2
  1028. class Status(enum.Enum):
  1029. Null = 0x0
  1030. Loading = 0x1
  1031. Ready = 0x2
  1032. Error = 0x3
  1033. @typing.overload
  1034. def __init__(self, audioDevice: PySide6.QtMultimedia.QAudioDevice, /, parent: PySide6.QtCore.QObject | None = ..., *, source: PySide6.QtCore.QUrl | None = ..., loops: int | None = ..., loopsRemaining: int | None = ..., volume: float | None = ..., muted: bool | None = ..., playing: bool | None = ..., status: PySide6.QtMultimedia.QSoundEffect.Status | None = ...) -> None: ...
  1035. @typing.overload
  1036. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, source: PySide6.QtCore.QUrl | None = ..., loops: int | None = ..., loopsRemaining: int | None = ..., volume: float | None = ..., muted: bool | None = ..., playing: bool | None = ..., status: PySide6.QtMultimedia.QSoundEffect.Status | None = ..., audioDevice: PySide6.QtMultimedia.QAudioDevice | None = ...) -> None: ...
  1037. def audioDevice(self, /) -> PySide6.QtMultimedia.QAudioDevice: ...
  1038. def isLoaded(self, /) -> bool: ...
  1039. def isMuted(self, /) -> bool: ...
  1040. def isPlaying(self, /) -> bool: ...
  1041. def loopCount(self, /) -> int: ...
  1042. def loopsRemaining(self, /) -> int: ...
  1043. def play(self, /) -> None: ...
  1044. def setAudioDevice(self, device: PySide6.QtMultimedia.QAudioDevice, /) -> None: ...
  1045. def setLoopCount(self, loopCount: int, /) -> None: ...
  1046. def setMuted(self, muted: bool, /) -> None: ...
  1047. def setSource(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  1048. def setVolume(self, volume: float, /) -> None: ...
  1049. def source(self, /) -> PySide6.QtCore.QUrl: ...
  1050. def status(self, /) -> PySide6.QtMultimedia.QSoundEffect.Status: ...
  1051. def stop(self, /) -> None: ...
  1052. @staticmethod
  1053. def supportedMimeTypes() -> typing.List[str]: ...
  1054. def volume(self, /) -> float: ...
  1055. class QVideoFrame(Shiboken.Object):
  1056. class HandleType(enum.Enum):
  1057. NoHandle = 0x0
  1058. RhiTextureHandle = 0x1
  1059. class MapMode(enum.Enum):
  1060. NotMapped = 0x0
  1061. ReadOnly = 0x1
  1062. WriteOnly = 0x2
  1063. ReadWrite = 0x3
  1064. class PaintOptions(Shiboken.Object):
  1065. class PaintFlag(enum.Flag):
  1066. DontDrawSubtitles = 0x1
  1067. @typing.overload
  1068. def __init__(self, /) -> None: ...
  1069. @typing.overload
  1070. def __init__(self, PaintOptions: PySide6.QtMultimedia.QVideoFrame.PaintOptions, /) -> None: ...
  1071. def __copy__(self, /) -> typing.Self: ...
  1072. class RotationAngle(enum.Enum):
  1073. Rotation0 = 0x0
  1074. Rotation90 = 0x5a
  1075. Rotation180 = 0xb4
  1076. Rotation270 = 0x10e
  1077. @typing.overload
  1078. def __init__(self, /) -> None: ...
  1079. @typing.overload
  1080. def __init__(self, image: PySide6.QtGui.QImage, /) -> None: ...
  1081. @typing.overload
  1082. def __init__(self, buffer: PySide6.QtMultimedia.QAbstractVideoBuffer, format: PySide6.QtMultimedia.QVideoFrameFormat, /) -> None: ...
  1083. @typing.overload
  1084. def __init__(self, other: PySide6.QtMultimedia.QVideoFrame, /) -> None: ...
  1085. @typing.overload
  1086. def __init__(self, format: PySide6.QtMultimedia.QVideoFrameFormat, /) -> None: ...
  1087. def __copy__(self, /) -> typing.Self: ...
  1088. def __eq__(self, other: PySide6.QtMultimedia.QVideoFrame | PySide6.QtMultimedia.QVideoFrameFormat, /) -> bool: ...
  1089. def __ne__(self, other: PySide6.QtMultimedia.QVideoFrame | PySide6.QtMultimedia.QVideoFrameFormat, /) -> bool: ...
  1090. def __repr__(self, /) -> str: ...
  1091. def bits(self, plane: int, /) -> bytes | bytearray | memoryview: ...
  1092. def bytesPerLine(self, plane: int, /) -> int: ...
  1093. def endTime(self, /) -> int: ...
  1094. def handleType(self, /) -> PySide6.QtMultimedia.QVideoFrame.HandleType: ...
  1095. def height(self, /) -> int: ...
  1096. def isMapped(self, /) -> bool: ...
  1097. def isReadable(self, /) -> bool: ...
  1098. def isValid(self, /) -> bool: ...
  1099. def isWritable(self, /) -> bool: ...
  1100. def map(self, mode: PySide6.QtMultimedia.QVideoFrame.MapMode, /) -> bool: ...
  1101. def mapMode(self, /) -> PySide6.QtMultimedia.QVideoFrame.MapMode: ...
  1102. def mappedBytes(self, plane: int, /) -> int: ...
  1103. def mirrored(self, /) -> bool: ...
  1104. def paint(self, painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect, options: PySide6.QtMultimedia.QVideoFrame.PaintOptions, /) -> None: ...
  1105. def pixelFormat(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat: ...
  1106. def planeCount(self, /) -> int: ...
  1107. def rotation(self, /) -> PySide6.QtMultimedia.QtVideo.Rotation: ...
  1108. def rotationAngle(self, /) -> PySide6.QtMultimedia.QVideoFrame.RotationAngle: ...
  1109. def setEndTime(self, time: int, /) -> None: ...
  1110. def setMirrored(self, arg__1: bool, /) -> None: ...
  1111. def setRotation(self, angle: PySide6.QtMultimedia.QtVideo.Rotation, /) -> None: ...
  1112. def setRotationAngle(self, angle: PySide6.QtMultimedia.QVideoFrame.RotationAngle, /) -> None: ...
  1113. def setStartTime(self, time: int, /) -> None: ...
  1114. def setStreamFrameRate(self, rate: float, /) -> None: ...
  1115. def setSubtitleText(self, text: str, /) -> None: ...
  1116. def size(self, /) -> PySide6.QtCore.QSize: ...
  1117. def startTime(self, /) -> int: ...
  1118. def streamFrameRate(self, /) -> float: ...
  1119. def subtitleText(self, /) -> str: ...
  1120. def surfaceFormat(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat: ...
  1121. def swap(self, other: PySide6.QtMultimedia.QVideoFrame | PySide6.QtMultimedia.QVideoFrameFormat, /) -> None: ...
  1122. def toImage(self, /) -> PySide6.QtGui.QImage: ...
  1123. def unmap(self, /) -> None: ...
  1124. def videoBuffer(self, /) -> PySide6.QtMultimedia.QAbstractVideoBuffer: ...
  1125. def width(self, /) -> int: ...
  1126. class QVideoFrameFormat(Shiboken.Object):
  1127. class ColorRange(enum.Enum):
  1128. ColorRange_Unknown = 0x0
  1129. ColorRange_Video = 0x1
  1130. ColorRange_Full = 0x2
  1131. class ColorSpace(enum.Enum):
  1132. ColorSpace_Undefined = 0x0
  1133. ColorSpace_BT601 = 0x1
  1134. ColorSpace_BT709 = 0x2
  1135. ColorSpace_AdobeRgb = 0x5
  1136. ColorSpace_BT2020 = 0x6
  1137. class ColorTransfer(enum.Enum):
  1138. ColorTransfer_Unknown = 0x0
  1139. ColorTransfer_BT709 = 0x1
  1140. ColorTransfer_BT601 = 0x2
  1141. ColorTransfer_Linear = 0x3
  1142. ColorTransfer_Gamma22 = 0x4
  1143. ColorTransfer_Gamma28 = 0x5
  1144. ColorTransfer_ST2084 = 0x6
  1145. ColorTransfer_STD_B67 = 0x7
  1146. class Direction(enum.Enum):
  1147. TopToBottom = 0x0
  1148. BottomToTop = 0x1
  1149. class PixelFormat(enum.Enum):
  1150. Format_Invalid = 0x0
  1151. Format_ARGB8888 = 0x1
  1152. Format_ARGB8888_Premultiplied = 0x2
  1153. Format_XRGB8888 = 0x3
  1154. Format_BGRA8888 = 0x4
  1155. Format_BGRA8888_Premultiplied = 0x5
  1156. Format_BGRX8888 = 0x6
  1157. Format_ABGR8888 = 0x7
  1158. Format_XBGR8888 = 0x8
  1159. Format_RGBA8888 = 0x9
  1160. Format_RGBX8888 = 0xa
  1161. Format_AYUV = 0xb
  1162. Format_AYUV_Premultiplied = 0xc
  1163. Format_YUV420P = 0xd
  1164. Format_YUV422P = 0xe
  1165. Format_YV12 = 0xf
  1166. Format_UYVY = 0x10
  1167. Format_YUYV = 0x11
  1168. Format_NV12 = 0x12
  1169. Format_NV21 = 0x13
  1170. Format_IMC1 = 0x14
  1171. Format_IMC2 = 0x15
  1172. Format_IMC3 = 0x16
  1173. Format_IMC4 = 0x17
  1174. Format_Y8 = 0x18
  1175. Format_Y16 = 0x19
  1176. Format_P010 = 0x1a
  1177. Format_P016 = 0x1b
  1178. Format_SamplerExternalOES = 0x1c
  1179. Format_Jpeg = 0x1d
  1180. Format_SamplerRect = 0x1e
  1181. Format_YUV420P10 = 0x1f
  1182. class YCbCrColorSpace(enum.Enum):
  1183. YCbCr_Undefined = 0x0
  1184. YCbCr_BT601 = 0x1
  1185. YCbCr_BT709 = 0x2
  1186. YCbCr_xvYCC601 = 0x3
  1187. YCbCr_xvYCC709 = 0x4
  1188. YCbCr_JPEG = 0x5
  1189. YCbCr_BT2020 = 0x6
  1190. @typing.overload
  1191. def __init__(self, /) -> None: ...
  1192. @typing.overload
  1193. def __init__(self, size: PySide6.QtCore.QSize, pixelFormat: PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat, /) -> None: ...
  1194. @typing.overload
  1195. def __init__(self, format: PySide6.QtMultimedia.QVideoFrameFormat, /) -> None: ...
  1196. def __copy__(self, /) -> typing.Self: ...
  1197. def __eq__(self, format: PySide6.QtMultimedia.QVideoFrameFormat, /) -> bool: ...
  1198. def __ne__(self, format: PySide6.QtMultimedia.QVideoFrameFormat, /) -> bool: ...
  1199. def __repr__(self, /) -> str: ...
  1200. def colorRange(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.ColorRange: ...
  1201. def colorSpace(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.ColorSpace: ...
  1202. def colorTransfer(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.ColorTransfer: ...
  1203. def fragmentShaderFileName(self, /) -> str: ...
  1204. def frameHeight(self, /) -> int: ...
  1205. def frameRate(self, /) -> float: ...
  1206. def frameSize(self, /) -> PySide6.QtCore.QSize: ...
  1207. def frameWidth(self, /) -> int: ...
  1208. @staticmethod
  1209. def imageFormatFromPixelFormat(format: PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat, /) -> PySide6.QtGui.QImage.Format: ...
  1210. def isMirrored(self, /) -> bool: ...
  1211. def isValid(self, /) -> bool: ...
  1212. def maxLuminance(self, /) -> float: ...
  1213. def pixelFormat(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat: ...
  1214. @staticmethod
  1215. def pixelFormatFromImageFormat(format: PySide6.QtGui.QImage.Format, /) -> PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat: ...
  1216. @staticmethod
  1217. def pixelFormatToString(pixelFormat: PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat, /) -> str: ...
  1218. def planeCount(self, /) -> int: ...
  1219. def rotation(self, /) -> PySide6.QtMultimedia.QtVideo.Rotation: ...
  1220. def scanLineDirection(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.Direction: ...
  1221. def setColorRange(self, range: PySide6.QtMultimedia.QVideoFrameFormat.ColorRange, /) -> None: ...
  1222. def setColorSpace(self, colorSpace: PySide6.QtMultimedia.QVideoFrameFormat.ColorSpace, /) -> None: ...
  1223. def setColorTransfer(self, colorTransfer: PySide6.QtMultimedia.QVideoFrameFormat.ColorTransfer, /) -> None: ...
  1224. def setFrameRate(self, rate: float, /) -> None: ...
  1225. @typing.overload
  1226. def setFrameSize(self, size: PySide6.QtCore.QSize, /) -> None: ...
  1227. @typing.overload
  1228. def setFrameSize(self, width: int, height: int, /) -> None: ...
  1229. def setMaxLuminance(self, lum: float, /) -> None: ...
  1230. def setMirrored(self, mirrored: bool, /) -> None: ...
  1231. def setRotation(self, rotation: PySide6.QtMultimedia.QtVideo.Rotation, /) -> None: ...
  1232. def setScanLineDirection(self, direction: PySide6.QtMultimedia.QVideoFrameFormat.Direction, /) -> None: ...
  1233. def setStreamFrameRate(self, rate: float, /) -> None: ...
  1234. def setViewport(self, viewport: PySide6.QtCore.QRect, /) -> None: ...
  1235. def setYCbCrColorSpace(self, colorSpace: PySide6.QtMultimedia.QVideoFrameFormat.YCbCrColorSpace, /) -> None: ...
  1236. def streamFrameRate(self, /) -> float: ...
  1237. def swap(self, other: PySide6.QtMultimedia.QVideoFrameFormat, /) -> None: ...
  1238. def updateUniformData(self, dst: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, frame: PySide6.QtMultimedia.QVideoFrame | PySide6.QtMultimedia.QVideoFrameFormat, transform: PySide6.QtGui.QMatrix4x4 | PySide6.QtGui.QTransform, opacity: float, /) -> None: ...
  1239. def vertexShaderFileName(self, /) -> str: ...
  1240. def viewport(self, /) -> PySide6.QtCore.QRect: ...
  1241. def yCbCrColorSpace(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat.YCbCrColorSpace: ...
  1242. class QVideoFrameInput(PySide6.QtCore.QObject):
  1243. readyToSendVideoFrame : typing.ClassVar[Signal] = ... # readyToSendVideoFrame()
  1244. @typing.overload
  1245. def __init__(self, format: PySide6.QtMultimedia.QVideoFrameFormat, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  1246. @typing.overload
  1247. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  1248. def captureSession(self, /) -> PySide6.QtMultimedia.QMediaCaptureSession: ...
  1249. def format(self, /) -> PySide6.QtMultimedia.QVideoFrameFormat: ...
  1250. def sendVideoFrame(self, frame: PySide6.QtMultimedia.QVideoFrame | PySide6.QtMultimedia.QVideoFrameFormat, /) -> bool: ...
  1251. class QVideoSink(PySide6.QtCore.QObject):
  1252. subtitleTextChanged : typing.ClassVar[Signal] = ... # subtitleTextChanged(QString)
  1253. videoFrameChanged : typing.ClassVar[Signal] = ... # videoFrameChanged(QVideoFrame)
  1254. videoSizeChanged : typing.ClassVar[Signal] = ... # videoSizeChanged()
  1255. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, subtitleText: str | None = ..., videoSize: PySide6.QtCore.QSize | None = ...) -> None: ...
  1256. def rhi(self, /) -> PySide6.QtGui.QRhi: ...
  1257. def setRhi(self, rhi: PySide6.QtGui.QRhi, /) -> None: ...
  1258. def setSubtitleText(self, subtitle: str, /) -> None: ...
  1259. def setVideoFrame(self, frame: PySide6.QtMultimedia.QVideoFrame | PySide6.QtMultimedia.QVideoFrameFormat, /) -> None: ...
  1260. def subtitleText(self, /) -> str: ...
  1261. def videoFrame(self, /) -> PySide6.QtMultimedia.QVideoFrame: ...
  1262. def videoSize(self, /) -> PySide6.QtCore.QSize: ...
  1263. class QWaveDecoder(PySide6.QtCore.QIODevice):
  1264. formatKnown : typing.ClassVar[Signal] = ... # formatKnown()
  1265. parsingError : typing.ClassVar[Signal] = ... # parsingError()
  1266. @typing.overload
  1267. def __init__(self, device: PySide6.QtCore.QIODevice, format: PySide6.QtMultimedia.QAudioFormat, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  1268. @typing.overload
  1269. def __init__(self, device: PySide6.QtCore.QIODevice, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  1270. def audioFormat(self, /) -> PySide6.QtMultimedia.QAudioFormat: ...
  1271. def bytesAvailable(self, /) -> int: ...
  1272. def close(self, /) -> None: ...
  1273. def duration(self, /) -> int: ...
  1274. def getDevice(self, /) -> PySide6.QtCore.QIODevice: ...
  1275. @staticmethod
  1276. def headerLength() -> int: ...
  1277. def isSequential(self, /) -> bool: ...
  1278. def open(self, mode: PySide6.QtCore.QIODeviceBase.OpenModeFlag, /) -> bool: ...
  1279. def pos(self, /) -> int: ...
  1280. def readData(self, maxlen: int, /) -> object: ...
  1281. def seek(self, pos: int, /) -> bool: ...
  1282. def size(self, /) -> int: ...
  1283. def writeData(self, data: bytes | bytearray | memoryview, len: int, /) -> int: ...
  1284. class QWindowCapture(PySide6.QtCore.QObject):
  1285. activeChanged : typing.ClassVar[Signal] = ... # activeChanged(bool)
  1286. errorChanged : typing.ClassVar[Signal] = ... # errorChanged()
  1287. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QWindowCapture::Error,QString)
  1288. windowChanged : typing.ClassVar[Signal] = ... # windowChanged(QCapturableWindow)
  1289. class Error(enum.Enum):
  1290. NoError = 0x0
  1291. InternalError = 0x1
  1292. CapturingNotSupported = 0x2
  1293. CaptureFailed = 0x4
  1294. NotFound = 0x5
  1295. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, active: bool | None = ..., window: PySide6.QtMultimedia.QCapturableWindow | None = ..., error: PySide6.QtMultimedia.QWindowCapture.Error | None = ..., errorString: str | None = ...) -> None: ...
  1296. @staticmethod
  1297. def capturableWindows() -> typing.List[PySide6.QtMultimedia.QCapturableWindow]: ...
  1298. def captureSession(self, /) -> PySide6.QtMultimedia.QMediaCaptureSession: ...
  1299. def error(self, /) -> PySide6.QtMultimedia.QWindowCapture.Error: ...
  1300. def errorString(self, /) -> str: ...
  1301. def isActive(self, /) -> bool: ...
  1302. def setActive(self, active: bool, /) -> None: ...
  1303. def setWindow(self, window: PySide6.QtMultimedia.QCapturableWindow, /) -> None: ...
  1304. def start(self, /) -> None: ...
  1305. def stop(self, /) -> None: ...
  1306. def window(self, /) -> PySide6.QtMultimedia.QCapturableWindow: ...
  1307. class QtAudio(Shiboken.Object):
  1308. class Error(enum.Enum):
  1309. NoError = 0x0
  1310. OpenError = 0x1
  1311. IOError = 0x2
  1312. UnderrunError = 0x3
  1313. FatalError = 0x4
  1314. class State(enum.Enum):
  1315. ActiveState = 0x0
  1316. SuspendedState = 0x1
  1317. StoppedState = 0x2
  1318. IdleState = 0x3
  1319. class VolumeScale(enum.Enum):
  1320. LinearVolumeScale = 0x0
  1321. CubicVolumeScale = 0x1
  1322. LogarithmicVolumeScale = 0x2
  1323. DecibelVolumeScale = 0x3
  1324. @staticmethod
  1325. def convertVolume(volume: float, from_: PySide6.QtMultimedia.QtAudio.VolumeScale, to: PySide6.QtMultimedia.QtAudio.VolumeScale, /) -> float: ...
  1326. class QtVideo(Shiboken.Object):
  1327. class Rotation(enum.Enum):
  1328. None_ = 0x0
  1329. Clockwise90 = 0x5a
  1330. Clockwise180 = 0xb4
  1331. Clockwise270 = 0x10e
  1332. # eof