@overwolf/ow-electron-packages-types 1.1.5 → 1.1.6-beta.0
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 +104 -3
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@overwolf/ow-electron';
|
|
1
2
|
import type {
|
|
2
3
|
BrowserWindow,
|
|
3
4
|
BrowserWindowConstructorOptions,
|
|
@@ -3070,6 +3071,18 @@ interface EncoderSettingsNVENC extends VideoEncoderSettingsBase {
|
|
|
3070
3071
|
*/
|
|
3071
3072
|
rate_control?: kNVENCEncoderRateControl;
|
|
3072
3073
|
|
|
3074
|
+
/**
|
|
3075
|
+
* Constant Quantization Parameter (CQP) level.
|
|
3076
|
+
*
|
|
3077
|
+
* Sets a fixed quality level for the entire stream. Only applies when
|
|
3078
|
+
* {@link rate_control} is `'CQP'`.
|
|
3079
|
+
*
|
|
3080
|
+
* Range: `1`–`51` (`1`–`63` for AV1).
|
|
3081
|
+
*
|
|
3082
|
+
* @default 20
|
|
3083
|
+
*/
|
|
3084
|
+
cqp?: number;
|
|
3085
|
+
|
|
3073
3086
|
/**
|
|
3074
3087
|
* Encoding quality preset.
|
|
3075
3088
|
*
|
|
@@ -3253,11 +3266,21 @@ interface EncoderSettingsAMF extends VideoEncoderSettingsBase {
|
|
|
3253
3266
|
ffmpeg_opts?: string;
|
|
3254
3267
|
|
|
3255
3268
|
/**
|
|
3256
|
-
* Constant
|
|
3257
|
-
*
|
|
3269
|
+
* Constant Quantization Parameter (CQP) level.
|
|
3270
|
+
*
|
|
3271
|
+
* Determines the quality level for quantizer-based rate control. Only applies
|
|
3272
|
+
* when {@link rate_control} is `'CQP'` or `'QVBR'`.
|
|
3273
|
+
*
|
|
3274
|
+
* Range: `0`–`51` (`0`–`63` for AV1).
|
|
3258
3275
|
*
|
|
3259
3276
|
* @default 20
|
|
3260
3277
|
*/
|
|
3278
|
+
cqp?: number;
|
|
3279
|
+
|
|
3280
|
+
/**
|
|
3281
|
+
* @deprecated Use {@link cqp} instead. Retained for backward compatibility;
|
|
3282
|
+
* this value is ignored by the encoder.
|
|
3283
|
+
*/
|
|
3261
3284
|
cpq?: number;
|
|
3262
3285
|
|
|
3263
3286
|
/**
|
|
@@ -3363,6 +3386,30 @@ interface EncoderSettingsQuickSync extends VideoEncoderSettingsBase {
|
|
|
3363
3386
|
*/
|
|
3364
3387
|
rate_control?: kQuickSyncEncoderRateControl;
|
|
3365
3388
|
|
|
3389
|
+
/**
|
|
3390
|
+
* Constant Quantization Parameter (CQP) level.
|
|
3391
|
+
*
|
|
3392
|
+
* Sets a fixed quantizer for the entire stream. Only applies when
|
|
3393
|
+
* {@link rate_control} is `'CQP'`.
|
|
3394
|
+
*
|
|
3395
|
+
* Range: `1`–`51` (`1`–`63` for AV1).
|
|
3396
|
+
*
|
|
3397
|
+
* @default 23
|
|
3398
|
+
*/
|
|
3399
|
+
cqp?: number;
|
|
3400
|
+
|
|
3401
|
+
/**
|
|
3402
|
+
* Intelligent Constant Quality (ICQ) level.
|
|
3403
|
+
*
|
|
3404
|
+
* Lower values yield higher quality. Only applies when
|
|
3405
|
+
* {@link rate_control} is `'ICQ'`.
|
|
3406
|
+
*
|
|
3407
|
+
* Range: `1`–`51`.
|
|
3408
|
+
*
|
|
3409
|
+
* @default 23
|
|
3410
|
+
*/
|
|
3411
|
+
icq_quality?: number;
|
|
3412
|
+
|
|
3366
3413
|
/**
|
|
3367
3414
|
* Target usage or encoding preset that balances performance and quality.
|
|
3368
3415
|
*
|
|
@@ -3454,6 +3501,18 @@ interface EncoderSettingsX264 extends VideoEncoderSettingsBase {
|
|
|
3454
3501
|
*/
|
|
3455
3502
|
rate_control?: kX264EncoderRateControl;
|
|
3456
3503
|
|
|
3504
|
+
/**
|
|
3505
|
+
* Constant Rate Factor (CRF) quality level.
|
|
3506
|
+
*
|
|
3507
|
+
* Lower values yield higher quality and larger files. Only applies when
|
|
3508
|
+
* {@link rate_control} is `'CRF'` or `'VBR'`.
|
|
3509
|
+
*
|
|
3510
|
+
* Range: `0`–`51`.
|
|
3511
|
+
*
|
|
3512
|
+
* @default 23
|
|
3513
|
+
*/
|
|
3514
|
+
crf?: number;
|
|
3515
|
+
|
|
3457
3516
|
/**
|
|
3458
3517
|
* Specifies the encoding speed/quality trade-off preset.
|
|
3459
3518
|
* A slower preset provides better compression (quality per bitrate).
|
|
@@ -3767,6 +3826,7 @@ interface EncoderInformation {
|
|
|
3767
3826
|
* const options: RecordingAppOptions = {
|
|
3768
3827
|
* showDebugWindow: true,
|
|
3769
3828
|
* enableDebugLogs: true,
|
|
3829
|
+
* maxLogFiles: 20,
|
|
3770
3830
|
* };
|
|
3771
3831
|
* ```
|
|
3772
3832
|
*/
|
|
@@ -3782,6 +3842,14 @@ interface RecordingAppOptions {
|
|
|
3782
3842
|
* Can be used to troubleshoot issues during recording.
|
|
3783
3843
|
*/
|
|
3784
3844
|
enableDebugLogs?: boolean;
|
|
3845
|
+
|
|
3846
|
+
/**
|
|
3847
|
+
* Maximum number of OBS log files to retain under the recorder's
|
|
3848
|
+
* `ow-obs/logs` folder. Once the number of logs exceeds this value, the
|
|
3849
|
+
* oldest logs are gradually pruned.
|
|
3850
|
+
* Must be a positive integer. Defaults to `10`.
|
|
3851
|
+
*/
|
|
3852
|
+
maxLogFiles?: number;
|
|
3785
3853
|
}
|
|
3786
3854
|
|
|
3787
3855
|
|
|
@@ -4984,6 +5052,33 @@ interface OverlayWindowOptions
|
|
|
4984
5052
|
*/
|
|
4985
5053
|
disableHardwareAcceleration?: boolean;
|
|
4986
5054
|
|
|
5055
|
+
/**
|
|
5056
|
+
* ⚠️ BETA — this option is experimental and its behavior may change in
|
|
5057
|
+
* a future release.
|
|
5058
|
+
*
|
|
5059
|
+
* `true`—renders this overlay window through a GPU shared texture
|
|
5060
|
+
* instead of copying pixels through shared memory on every paint. The overlay
|
|
5061
|
+
* forwards the GPU texture handle directly to the injected game process, which
|
|
5062
|
+
* composites it without any CPU-side pixel copy, significantly lowering
|
|
5063
|
+
* per-frame CPU overhead.
|
|
5064
|
+
*
|
|
5065
|
+
* Requires hardware acceleration to be enabled and the current game to report
|
|
5066
|
+
* shared-texture support (see {@link GameWindowInfo.isSharedTextureSupported}).
|
|
5067
|
+
* The flag is silently ignored when either condition is not met, falling back
|
|
5068
|
+
* to the shared-memory (CPU copy) path.
|
|
5069
|
+
*
|
|
5070
|
+
* The rendering path follows the active game: when the overlay moves to a
|
|
5071
|
+
* different game, a shared-texture window automatically falls back to the
|
|
5072
|
+
* shared-memory (CPU copy) path on a game that does not support shared
|
|
5073
|
+
* texture, and restores the shared-texture path on a game that does — so the
|
|
5074
|
+
* window stays visible on every game.
|
|
5075
|
+
*
|
|
5076
|
+
* @default false
|
|
5077
|
+
*
|
|
5078
|
+
* @since 2.0.2
|
|
5079
|
+
*/
|
|
5080
|
+
useSharedTexture?: boolean;
|
|
5081
|
+
|
|
4987
5082
|
/**
|
|
4988
5083
|
* Enables Chromium process isolation (sandboxing).
|
|
4989
5084
|
* Used to enforce stricter security policies or prevent resource sharing between renderer processes.
|
|
@@ -5332,11 +5427,17 @@ interface GameWindowInfo {
|
|
|
5332
5427
|
|
|
5333
5428
|
/**
|
|
5334
5429
|
* Indicates if fullscreen rendering is disabled.
|
|
5335
|
-
*
|
|
5430
|
+
*
|
|
5336
5431
|
* Relevant only for OOPO games.
|
|
5337
5432
|
* @since 1.9.0
|
|
5338
5433
|
*/
|
|
5339
5434
|
readonly isOOPOFullscreenRenderingDisabled?: boolean;
|
|
5435
|
+
|
|
5436
|
+
/**
|
|
5437
|
+
* Indicates if the game supports shared-texture (GPU) overlay rendering.
|
|
5438
|
+
* @since 2.0.0
|
|
5439
|
+
*/
|
|
5440
|
+
readonly isSharedTextureSupported?: boolean;
|
|
5340
5441
|
}
|
|
5341
5442
|
|
|
5342
5443
|
/**
|