QtMultimedia.pyi 64 KB

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