@overwolf/ow-electron-packages-types 1.1.14-beta.3 → 1.1.14-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types.d.ts +55 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overwolf/ow-electron-packages-types",
|
|
3
|
-
"version": "1.1.14-beta.
|
|
3
|
+
"version": "1.1.14-beta.5",
|
|
4
4
|
"description": "Type definition file for autocompletion and documentation purposes for ow-electron packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "types.d.ts",
|
package/types.d.ts
CHANGED
|
@@ -552,6 +552,37 @@ type kKnownAudioEncodersTypes =
|
|
|
552
552
|
*/
|
|
553
553
|
| string;
|
|
554
554
|
|
|
555
|
+
/**
|
|
556
|
+
* PCI vendor IDs of the GPU vendors that provide a hardware video encoder.
|
|
557
|
+
*
|
|
558
|
+
* Values arrive as plain numbers, not hex strings - `0x10DE` is reported (and
|
|
559
|
+
* logged) as `4318`. Comparing against either form works.
|
|
560
|
+
*
|
|
561
|
+
* | Value | Decimal | Vendor | Encoders |
|
|
562
|
+
* | -------- | ------- | ------ | --------------- |
|
|
563
|
+
* | `0x10DE` | `4318` | NVIDIA | `obs_nvenc_*` |
|
|
564
|
+
* | `0x1002` | `4098` | AMD | `*_texture_amf` |
|
|
565
|
+
* | `0x8086` | `32902` | Intel | `obs_qsv11_*` |
|
|
566
|
+
*
|
|
567
|
+
* @see {@link VideoEncoderInfo.vendorId}
|
|
568
|
+
*
|
|
569
|
+
* @example
|
|
570
|
+
* const isNvidia = encoder.vendorId === 0x10DE;
|
|
571
|
+
*/
|
|
572
|
+
type kGpuVendorId =
|
|
573
|
+
/**
|
|
574
|
+
* NVIDIA (4318).
|
|
575
|
+
*/
|
|
576
|
+
| 0x10DE
|
|
577
|
+
/**
|
|
578
|
+
* AMD (4098).
|
|
579
|
+
*/
|
|
580
|
+
| 0x1002
|
|
581
|
+
/**
|
|
582
|
+
* Intel (32902).
|
|
583
|
+
*/
|
|
584
|
+
| 0x8086;
|
|
585
|
+
|
|
555
586
|
/**
|
|
556
587
|
* Fixed audio sample rate of 48kHz.
|
|
557
588
|
*
|
|
@@ -987,8 +1018,8 @@ interface AudioEncoderInfo extends EncoderInfoBase {
|
|
|
987
1018
|
* Information for a supported video encoder.
|
|
988
1019
|
*
|
|
989
1020
|
* This interface extends `EncoderInfoBase` and adds the specific video encoder
|
|
990
|
-
* type identifier
|
|
991
|
-
* inherited `properties` map.
|
|
1021
|
+
* type identifier and, for hardware encoders, the GPU vendor. Configurable
|
|
1022
|
+
* encoder settings are reported through the inherited `properties` map.
|
|
992
1023
|
*
|
|
993
1024
|
* @extends EncoderInfoBase
|
|
994
1025
|
*
|
|
@@ -997,6 +1028,7 @@ interface AudioEncoderInfo extends EncoderInfoBase {
|
|
|
997
1028
|
* codec: 'h264',
|
|
998
1029
|
* name: 'NVIDIA NVENC H.264',
|
|
999
1030
|
* type: 'obs_nvenc_h264_tex',
|
|
1031
|
+
* vendorId: 0x10DE,
|
|
1000
1032
|
* properties: {
|
|
1001
1033
|
* bitrate: { default: 10000, description: 'Bitrate' },
|
|
1002
1034
|
* rate_control: {
|
|
@@ -1014,6 +1046,15 @@ interface VideoEncoderInfo extends EncoderInfoBase {
|
|
|
1014
1046
|
* @see {@link kSupportedEncodersTypes}
|
|
1015
1047
|
*/
|
|
1016
1048
|
readonly type: kSupportedEncodersTypes;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* The PCI vendor ID of the GPU this hardware encoder runs on, matching
|
|
1052
|
+
* {@link AdapterInfo.vendorId}. Absent for software (CPU) encoders such as
|
|
1053
|
+
* `obs_x264`.
|
|
1054
|
+
*
|
|
1055
|
+
* @see {@link kGpuVendorId}
|
|
1056
|
+
*/
|
|
1057
|
+
readonly vendorId?: kGpuVendorId;
|
|
1017
1058
|
}
|
|
1018
1059
|
|
|
1019
1060
|
|
|
@@ -1061,8 +1102,10 @@ interface AdapterInfo {
|
|
|
1061
1102
|
readonly hagsEnabledByDefault: boolean;
|
|
1062
1103
|
|
|
1063
1104
|
/**
|
|
1064
|
-
* The PCI vendor ID of the adapter.
|
|
1065
|
-
* Common values: 0x10DE (NVIDIA
|
|
1105
|
+
* The PCI vendor ID of the adapter, reported as a plain number.
|
|
1106
|
+
* Common values: 0x10DE (4318) NVIDIA, 0x1002 (4098) AMD, 0x8086 (32902) Intel.
|
|
1107
|
+
* Other vendors are possible (e.g. virtual display adapters), so this is a
|
|
1108
|
+
* `number` rather than {@link kGpuVendorId}.
|
|
1066
1109
|
*/
|
|
1067
1110
|
readonly vendorId: number;
|
|
1068
1111
|
|
|
@@ -4399,7 +4442,7 @@ interface RecordingAppOptions {
|
|
|
4399
4442
|
* | Code | Name | Description |
|
|
4400
4443
|
* | ------- | ---------------------------- | -------------------------------------------------------------------------------- |
|
|
4401
4444
|
* | `-1001` | `Unknown` | Generic unknown error. |
|
|
4402
|
-
* | `-1000` | `ProcessTerminated` | OBS process
|
|
4445
|
+
* | `-1000` | `ProcessTerminated` | OBS process ended: a crash, or a restart after a hung stop. |
|
|
4403
4446
|
* | `-999` | `MissingBinaries` | Missing binaries required for recording. |
|
|
4404
4447
|
* | `-998` | `ConnectionOBSError` | Failed to connect to the OBS process. |
|
|
4405
4448
|
* | `-997` | `AlreadyRunning` | Operation attempted while recording is already running. |
|
|
@@ -4430,7 +4473,7 @@ interface RecordingAppOptions {
|
|
|
4430
4473
|
*/
|
|
4431
4474
|
type ErrorCode =
|
|
4432
4475
|
| -1001 // Generic unknown error. 'Unknown'
|
|
4433
|
-
| -1000 // OBS process
|
|
4476
|
+
| -1000 // OBS process ended: a crash, or a restart after a hung stop. 'ProcessTerminated'
|
|
4434
4477
|
| -999 // Missing binaries required for recording. 'MissingBinaries'
|
|
4435
4478
|
| -998 // Failed to connect to the OBS process. 'ConnectionOBSError'
|
|
4436
4479
|
| -997 // Operation attempted while recording is already running. 'AlreadyRunning'
|
|
@@ -4777,6 +4820,7 @@ interface RecordStopEventArgs extends RecordEventArgs {
|
|
|
4777
4820
|
/**
|
|
4778
4821
|
* The total duration of the video in milliseconds,
|
|
4779
4822
|
* available when the recording ends successfully.
|
|
4823
|
+
* `0` when OBS ended before the recording stopped (`ProcessTerminated`).
|
|
4780
4824
|
*/
|
|
4781
4825
|
duration?: number;
|
|
4782
4826
|
|
|
@@ -4794,6 +4838,7 @@ interface RecordStopEventArgs extends RecordEventArgs {
|
|
|
4794
4838
|
/**
|
|
4795
4839
|
* The epoch timestamp (in milliseconds) representing
|
|
4796
4840
|
* when the recording started.
|
|
4841
|
+
* `0` when OBS ended before the recording stopped (`ProcessTerminated`).
|
|
4797
4842
|
*/
|
|
4798
4843
|
startTimeEpoch?: number;
|
|
4799
4844
|
}
|
|
@@ -4852,11 +4897,13 @@ interface SplitRecordArgs extends RecordEventArgs {
|
|
|
4852
4897
|
interface ReplayVideo extends RecordEventArgs {
|
|
4853
4898
|
/**
|
|
4854
4899
|
* Duration of the replay video in milliseconds.
|
|
4900
|
+
* `0` when OBS ended before the replay was saved (`ProcessTerminated`).
|
|
4855
4901
|
*/
|
|
4856
4902
|
duration: number;
|
|
4857
4903
|
|
|
4858
4904
|
/**
|
|
4859
4905
|
* Epoch UTC timestamp (in milliseconds) of when the replay started (first frame).
|
|
4906
|
+
* `0` when OBS ended before the replay was saved (`ProcessTerminated`).
|
|
4860
4907
|
*/
|
|
4861
4908
|
startTimeEpoch: number;
|
|
4862
4909
|
}
|
|
@@ -4994,7 +5041,8 @@ interface PerformanceWarningArgs {
|
|
|
4994
5041
|
skippedFrames: number;
|
|
4995
5042
|
|
|
4996
5043
|
/**
|
|
4997
|
-
* Number of frames measured
|
|
5044
|
+
* Number of frames measured: frames sent to the encoder for `encoding-lag`,
|
|
5045
|
+
* rendered frames for `rendering-lag`.
|
|
4998
5046
|
*/
|
|
4999
5047
|
totalFrames: number;
|
|
5000
5048
|
}
|