From a159f31bc5fca06a19858ac4c49d2f4781adfc6c Mon Sep 17 00:00:00 2001 From: yaruno Date: Wed, 21 May 2025 20:08:40 +0200 Subject: [PATCH 1/2] VideoEncoderConfig interface should have hevc attribute see https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/2025 --- inputfiles/removedTypes.jsonc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index d474423d2..a980d5504 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -862,13 +862,6 @@ } } }, - "VideoEncoderConfig": { - "members": { - "member": { - "hevc": null // Blink only as of 2023-03 - } - } - }, "VideoEncoderEncodeOptions": { "members": { "member": { From 18812c5ad8a45f31708dbf14a3790b5b897d2357 Mon Sep 17 00:00:00 2001 From: Jarno Marttila Date: Wed, 21 May 2025 20:32:34 +0200 Subject: [PATCH 2/2] regenerated baseline & types --- baselines/dom.generated.d.ts | 6 ++++++ baselines/ts5.5/dom.generated.d.ts | 6 ++++++ baselines/ts5.5/webworker.generated.d.ts | 6 ++++++ baselines/ts5.6/dom.generated.d.ts | 6 ++++++ baselines/ts5.6/webworker.generated.d.ts | 6 ++++++ baselines/webworker.generated.d.ts | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index d3b64fd20..7e80f8f2c 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -771,6 +771,10 @@ interface HashChangeEventInit extends EventInit { oldURL?: string; } +interface HevcEncoderConfig { + format?: HevcBitstreamFormat; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -2374,6 +2378,7 @@ interface VideoEncoderConfig { framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; + hevc?: HevcEncoderConfig; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; @@ -30881,6 +30886,7 @@ type GamepadMappingType = "" | "standard" | "xr-standard"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HevcBitstreamFormat = "annexb" | "hevc"; type HighlightType = "grammar-error" | "highlight" | "spelling-error"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 31829ff26..9af12c7c4 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -771,6 +771,10 @@ interface HashChangeEventInit extends EventInit { oldURL?: string; } +interface HevcEncoderConfig { + format?: HevcBitstreamFormat; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -2374,6 +2378,7 @@ interface VideoEncoderConfig { framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; + hevc?: HevcEncoderConfig; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; @@ -30859,6 +30864,7 @@ type GamepadMappingType = "" | "standard" | "xr-standard"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HevcBitstreamFormat = "annexb" | "hevc"; type HighlightType = "grammar-error" | "highlight" | "spelling-error"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 2f5543684..6c69803a3 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -356,6 +356,10 @@ interface GetNotificationOptions { tag?: string; } +interface HevcEncoderConfig { + format?: HevcBitstreamFormat; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -922,6 +926,7 @@ interface VideoEncoderConfig { framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; + hevc?: HevcEncoderConfig; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; @@ -10409,6 +10414,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HevcBitstreamFormat = "annexb" | "hevc"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; type IDBTransactionDurability = "default" | "relaxed" | "strict"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 435ce4c60..2323f76f0 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -771,6 +771,10 @@ interface HashChangeEventInit extends EventInit { oldURL?: string; } +interface HevcEncoderConfig { + format?: HevcBitstreamFormat; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -2374,6 +2378,7 @@ interface VideoEncoderConfig { framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; + hevc?: HevcEncoderConfig; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; @@ -30881,6 +30886,7 @@ type GamepadMappingType = "" | "standard" | "xr-standard"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HevcBitstreamFormat = "annexb" | "hevc"; type HighlightType = "grammar-error" | "highlight" | "spelling-error"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 2f5543684..6c69803a3 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -356,6 +356,10 @@ interface GetNotificationOptions { tag?: string; } +interface HevcEncoderConfig { + format?: HevcBitstreamFormat; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -922,6 +926,7 @@ interface VideoEncoderConfig { framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; + hevc?: HevcEncoderConfig; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; @@ -10409,6 +10414,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HevcBitstreamFormat = "annexb" | "hevc"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; type IDBTransactionDurability = "default" | "relaxed" | "strict"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 95e743c50..77646d0ba 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -356,6 +356,10 @@ interface GetNotificationOptions { tag?: string; } +interface HevcEncoderConfig { + format?: HevcBitstreamFormat; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -922,6 +926,7 @@ interface VideoEncoderConfig { framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; + hevc?: HevcEncoderConfig; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; @@ -10409,6 +10414,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HevcBitstreamFormat = "annexb" | "hevc"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; type IDBTransactionDurability = "default" | "relaxed" | "strict";