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