@overwolf/ow-electron-packages-types 1.1.14-beta.4 → 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 +47 -4
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
|
|